TL;DR
Sequential recommendation models suffer a massive performance drop when forced to make predictions using only a user's recent interactions instead of their full history. This paper identifies two geometric and structural flaws causing this "long-short view gap" and introduces a two-stage, cache-free framework that fixes these flaws during pretraining and adapts the model using only LayerNorm and bias parameters. The result is a model that delivers long-history performance at inference time without any of the infrastructure overhead or storage costs of traditional history-caching methods.
What Problem Does This Paper Address?
Modern sequential recommenders are typically trained on long sequences of user behavior to capture deep, long-term preferences. However, in production environments, strict real-time latency requirements make it impractical to process hundreds of past interactions for every single request. Consequently, engineering teams often truncate the input to a short window of recent interactions (e.g., the last 20 items).
This truncation triggers a severe drop in recommendation quality, known as the long-short view gap. To combat this, existing paradigms compress and cache long user histories into persistent per-user states (like KV caches or summary tokens). While effective, this approach introduces massive infrastructure complexity: states must be materialized, stored, and constantly updated. Furthermore, it completely fails for cold-start scenarios or users returning after a long absence where no cache exists. This paper asks: Can we train a model on long histories that remains highly effective when evaluated strictly on a short recent window, without caching anything?
Methods
The authors propose a backbone-agnostic, two-stage framework to eliminate the reliance on cached histories:
- Long-View Backbone Learning (Stage 1): The authors modify the base model's architecture to eliminate structural flaws discovered during their empirical analysis:
- Angular Similarity Scoring: Instead of standard dot-product scoring (which entangles directional alignment with embedding magnitude and creates a popularity shortcut), they use temperature-scaled cosine similarity to force the model to rely purely on angular alignment.
- Bounded Attention Aggregation ($\text{softmax}_1$): To prevent the model from dumping residual attention weights onto early "sinking" prefix tokens, they replace standard softmax with $\text{softmax}_1$, which adds a constant term to the denominator, allowing the model to assign near-zero total attention when no visible tokens are relevant.
- Short-View Adaptation (Stage 2): To close the remaining length-induced distribution shift, the model undergoes a parameter-efficient fine-tuning stage on short sequences. Crucially, only pre-existing bias and LayerNorm parameters are updated (inspired by BitFit), introducing zero new parameters. This adaptation is guided by a dual-supervision objective combining binary cross-entropy (BCE) with cross-view Kullback-Leibler (KL) distillation from the long-view teacher model.
Datasets
The framework was evaluated using three public datasets processed via a leave-one-out protocol, filtered specifically to retain long-context user histories:
- Taobao: An industrial e-commerce dataset (filtered to sequences > 200 interactions).
- XLong: A large-scale e-commerce dataset (filtered to sequences > 400 interactions).
- MovieLens-10M (ML-10M): A popular movie recommendation dataset (filtered to sequences > 200 interactions).
Key Insights and Ideas
- The "Sinking Effect" in Recommenders: The authors discovered that standard softmax attention forces models to dump residual attention weights onto the earliest prefix tokens. When these early tokens are abruptly truncated during short-view inference, it breaks the learned attention patterns and tanks performance, even if those early items carry no real semantic meaning.
- The Dot-Product Popularity Shortcut: In sparse datasets, dot-product scoring heavily correlates embedding magnitude with item frequency. High-frequency items develop massive norms, creating a "popularity shortcut" that overrides actual directional alignment and miscalibrates under input truncation.
- LayerNorm and Bias are All You Need: Instead of full-parameter fine-tuning or adding complex adapter modules, simply adjusting the native LayerNorm scales and bias parameters is enough to absorb the massive distribution shift caused by sequence truncation.
Key Results
- Zero-Shot Superiority: Remarkably, models trained with the authors' long-view recipe (Ours Short) without any adaptation outperformed or matched standard models evaluated on full-length sequences (Original Full) across almost all datasets.
- Reclaiming Full-View Performance: After the lightweight bias/LayerNorm adaptation (Ours Adapted), the model fully closed the long-short view gap, achieving up to a +9.5% absolute increase in NDCG@10 on the XLong dataset compared to the baseline.
- Massive Efficiency Gains: Compared to state-of-the-art token-caching methods like PersRec, the proposed method achieved 95.9% of its recommendation quality while updating 109,000× fewer parameters, training 7.8× faster, and requiring zero long-term memory storage or prefill compute overhead at serving time.
Limitations and Future Work
- Information Loss: While the method successfully adapts the model to short-view inputs, it inherently cannot recover highly specific, long-term historical details that are completely missing from the short window if a user's immediate context changes entirely.
- Future Directions: The authors plan to scale this framework to even longer sequence lengths, explore how multimodal and semantic signals can help bridge the view gap, and investigate its application within LLM-augmented and generative recommendation systems.
Summary updated