Abstract
Recent advancements in Large Language Models (LLMs) have led to their integration into sequential recommendation systems. However, this study reveals a critical limitation: existing LLM-based recommenders often fail to perceive the chronological order of user interactions, treating sequences as unordered "bags of items." To address this, we present LLM-SRec, a lightweight framework that distills sequential knowledge from traditional collaborative filtering models into LLMs. By aligning LLM representations with those of order-aware models like SASRec, LLM-SRec achieves state-of-the-art performance and restores sequence sensitivity without the need for intensive LLM fine-tuning.
1. Introduction
Sequential recommendation is a cornerstone of modern personalized services, aiming to predict a user's next interaction based on their historical trajectory. While traditional models like SASRec and GRU4Rec have long dominated this field by capturing temporal patterns, the recent "LLM4Rec" trend attempts to leverage the reasoning and linguistic capabilities of Large Language Models. Despite their success in zero-shot and cross-domain scenarios, a fundamental question remains: do these models actually understand the sequence of interactions, or are they merely relying on textual patterns and item popularity?
2. The Sequence Awareness Gap
To investigate the temporal understanding of LLMs, the authors conducted a "shuffle test." In this experiment, the chronological order of items in a user's history was randomly scrambled before being fed into the model.
The results were revealing. Traditional sequential models like SASRec experienced a significant performance drop (approximately 7-11%) when the sequence was disrupted, confirming their reliance on temporal order. In contrast, existing LLM-based recommenders showed negligible changes in performance—often less than 1%. This suggests that these models operate as "bag-of-items" recommenders, failing to distinguish between a user who bought a camera after a lens and one who bought them in the reverse order. This "bag-of-items fallacy" indicates that LLMs may be relying on textual co-occurrence rather than capturing the temporal evolution of user interests.
3. The LLM-SRec Framework
Rather than attempting to teach an LLM sequential logic through expensive fine-tuning (e.g., LoRA), the researchers proposed LLM-SRec. This framework focuses on Representation Distillation, leveraging the strengths of both traditional collaborative filtering and modern LLMs.
3.1 Sequential Distillation
LLM-SRec utilizes a pre-trained, frozen Collaborative Filtering Sequential Recommender (CF-SRec), such as SASRec. Since these models are already experts at encoding temporal dependencies, they serve as a "teacher." Small Multi-Layer Perceptrons (MLPs) are trained to align the LLM’s latent user representations with the teacher’s representations.
3.2 Uniformity Loss
A common pitfall in representation distillation is "over-smoothing," where the distilled embeddings become too similar, losing their discriminative power. To counter this, LLM-SRec incorporates a uniformity loss. This ensures that the latent space remains well-distributed, preserving the unique characteristics of different users.
3.3 Lightweight Architecture
Efficiency is a core design principle of LLM-SRec. The LLM itself remains frozen throughout the process. Training is restricted to the projection MLPs and two specialized tokens: [UserOut] and [ItemOut]. This approach significantly reduces computational overhead and inference latency compared to full-parameter or LoRA-based fine-tuning, while avoiding the "prompt bloat" associated with injecting raw embeddings into text prompts.
4. Experimental Evaluation
The framework was evaluated using four widely used "five-core" Amazon datasets:
- Movies and TV
- Scientific
- Electronics
- CDs and Vinyl
Performance was measured using standard metrics, including Normalized Discounted Cumulative Gain (NDCG@10) and Hit Rate (HR@10).
5. Key Results and Insights
- State-of-the-Art Performance: LLM-SRec consistently outperformed established baselines like TALLRec, LLaRA, and A-LLMRec across all four datasets.
- Restored Sequence Sensitivity: Unlike its predecessors, LLM-SRec demonstrated a significant performance drop during shuffle tests. This indicates that the model successfully internalized the importance of item order from the teacher model.
- Model Efficiency: A 3B-parameter Llama model equipped with LLM-SRec outperformed an 8B-parameter model using standard LLM4Rec techniques, proving that structural knowledge is more valuable than raw parameter count in this context.
- Robustness in Cold-Start and Cross-Domain Scenarios: By combining the LLM's semantic understanding of item titles with the teacher's sequential logic, LLM-SRec excelled in scenarios where interaction data was sparse or when transferring knowledge across different domains.
6. Conclusion and Future Work
LLM-SRec demonstrates that the reasoning power of LLMs can be effectively combined with the "sequence-sense" of traditional models through lightweight distillation. This approach avoids the high costs of fine-tuning while fixing a major structural flaw in current LLM-based recommendation systems.
Future research may explore distilling more granular information, such as attention maps or intermediate layer states, to provide even deeper temporal context. Additionally, while LLM-SRec currently relies on the quality of the base CF-SRec model, future iterations could investigate hybrid training objectives to further decouple performance from the teacher's limitations.
Summary updated