Skip to main content
QUICK REVIEW

[Paper Review] Length-Adaptive Interest Network for Balancing Long and Short Sequence Modeling in CTR Prediction

Zhicheng Zhang, Zhaocheng Du|arXiv (Cornell University)|Jan 27, 2026
Recommender Systems and TechniquesComputer Science0 citations
TL;DR

LAIN introduces length-aware conditioning to CTR models, using a Spectral Length Encoder, Length-Conditioned Prompting, and Length-Modulated Attention, improving both overall CTR and short-sequence user performance with minimal overhead.

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-Adaptive 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 across five strong CTR backbones show that LAIN consistently improves overall performance, achieving up to 1.15% AUC gain and 2.25% log loss reduction. Notably, our method significantly improves accuracy for short-sequence users without sacrificing longsequence effectiveness. Our work offers a general, efficient, and deployable solution to mitigate length-induced bias in sequential recommendation.

Motivation & Objective

  • Identify the performance imbalance between long- and short-sequence users in current CTR models.
  • Propose a length-adaptive framework to balance interest modeling across sequence lengths.
  • Show that length-aware conditioning improves short-sequence accuracy without sacrificing long-sequence performance.
  • Demonstrate robustness and deployability of LAIN across multiple backbones and datasets.

Proposed method

  • Introduce Spectral Length Encoder to map raw sequence length to continuous embeddings using trainable Fourier bases.
  • Develop Length-Conditioned Prompting to prepend length-aware prompts to both short- and long-term behavior sequences.
  • Implement Length-Modulated Attention that conditions queries/keys and adjusts softmax temperature based on length priors.
  • Decouple shared and length-specific parameters via prompts, enabling length-dependent inductive biases.
  • Provide end-to-end training with minor parameter/compute overhead.
  • Evaluate LAIN across three real-world datasets with five strong CTR backbones.

Experimental results

Research questions

  • RQ1Can explicit conditioning on sequence length alleviate attention polarization and length signal deficiency in CTR models?
  • RQ2Does LAIN improve short-sequence user CTR without harming long-sequence performance across diverse backbones and datasets?
  • RQ3What is the empirical impact of each LAIN component (SLE, LCP, LMA) and their interactions?
  • RQ4How robust is LAIN to hyperparameter choices and varying sequence-length distributions?

Key findings

  • LAIN consistently improves overall CTR performance across backbones and datasets, with GAUC up to +1.2% and logloss reductions up to -1.6%.
  • LAIN notably improves accuracy for short-sequence users (less than 100) by up to +1.08% in AUC and -2.17% in logloss for TWIN on MicroVideo1.7M.
  • Attention polarization is mitigated by LAIN, yielding substantially lower Gini coefficients than baselines across short, medium, and long sequences.
  • Ablation shows all components contribute; removing LMA causes the largest performance drop.
  • Hyperparameter sensitivity analysis shows robust gains across configurations (selected setup: Fourier dim 64, hidden 512, prompts 4).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.