Length-Adaptive Interest Network for Balancing Long and Short Sequence Modeling in CTR Prediction

Read full text
Authors: Association for Artificial Intelligence 2026, Zhenhua Dong, Zhaocheng Du, Wang Jiaheng, jingyu li, Fengyuan Lu, Jiwei Tang, Song-Li Wu, Zhicheng Zhang, Hai-Tao Zheng, Jieming Zhu, Qianhui Zhu
Cited by: 0

Abstract

User behavior sequences in modern recommendation systems exhibit significant length heterogeneity, ranging from sparse short-term interactions to rich long-term histories. While longer sequences provide more context, we observe that increasing the maximum input sequence length in existing CTR models paradoxically degrades performance for short-sequence users due to attention polarization and length imbalance in training data. To address this, we propose LAIN (Length-Aware Interest Network), a plug-and-play framework that explicitly incorporates sequence length as a conditioning signal to balance long- and short-sequence modeling. LAIN consists of three lightweight components: a Spectral Length Encoder that maps length into continuous representations, Length-Conditioned Prompting that injects global contextual cues into both long- and short-term behavior branches, and Length-Modulated Attention that adaptively adjusts attention sharpness based on sequence length. Extensive experiments on three real-world benchmarks and five strong CTR backbones show that LAIN consistently improves overall performance, achieving up to +1.15% AUC gain and 1.63% log loss reduction. Notably, our method significantly improves accuracy for short-sequence users without sacrificing long-sequence effectiveness. Our contributions offer a general, efficient, and deployable solution to mitigate length-induced bias in sequential recommendation.

Fields of Study & Subjects

Recommender Systems and Techniques Information Retrieval and Search Behavior Advanced Bandit Algorithms Research

Publication details

Journal / source
Underline Science Inc.
Publication date
7 January 2026
Language
EN