Introduction
Sequential recommendation aims to predict a user's future preferences based on their historical interaction sequence. While traditional models rely on unique item IDs, Large Language Models (LLMs) offer vast world knowledge and reasoning capabilities. However, integrating LLMs into recommendation systems faces three primary hurdles: the ID Gap (LLMs struggle with abstract IDs vs. natural language), Hallucination (generating non-existent items), and Efficiency (token-by-token generation is too slow for real-time ranking).
Methodology: The E4SRec Framework
E4SRec (Elegant, Effective, Efficient, Extensible) addresses these challenges by treating the LLM as a reasoning backbone while offloading ID management to specialized layers.
The architecture is defined by four key components:
- ID Injection: High-quality item embeddings from pre-trained traditional models (e.g., SASRec) are mapped into the LLM's input space via a trainable Linear Projection layer.
- Backbone Tuning: A LLaMA2-13B model serves as the core. Instruction tuning is performed using Low-Rank Adaptation (LoRA), modifying only a small fraction of parameters to align the LLM with recommendation logic.
- Discriminative Prediction Layer: Instead of generative text output, E4SRec uses an Item Linear Projection head. This allows the model to score the entire item catalog in a single forward pass, eliminating hallucinations and significantly reducing latency.
- Frozen LLM Strategy: During dataset-specific training, the massive LLM backbone remains frozen. Only the lightweight "pluggable" components (projections and LoRA adapters) are updated.
Experimental Evaluation
The model was evaluated on four public benchmarks: Amazon Reviews (Beauty, Sports, Toys) and Yelp. Data was pre-processed using "5-core" filtering to ensure evaluation robustness.
Key Results
E4SRec demonstrates significant performance gains over state-of-the-art baselines like SASRec and CL4SRec. On average, it achieved a 12% improvement in Hit Ratio (HR@k) and a 21% improvement in nDCG@k.
A critical insight is the model's performance on sparse data. As shown in the figure above, E4SRec significantly outperforms SASRec for users with fewer interactions, suggesting that the LLM's internal knowledge effectively compensates for limited historical data—a classic "cold-start" advantage.
Efficiency and Deployment
By avoiding autoregressive token generation, E4SRec achieves an inference time of approximately 0.23s per instance. Furthermore, the pluggable parameters constitute only about 1% of the total model size, allowing for efficient multi-task deployment where a single backbone serves multiple datasets via quickly swappable adapters.
Conclusion
E4SRec provides a scalable bridge between LLMs and ID-based recommendation. By combining the reasoning power of LLMs with efficient discriminative heads, it achieves state-of-the-art accuracy without the typical overhead of generative models. Future research will explore extending this framework to Click-Through Rate (CTR) prediction and utilizing smaller backbone models for further optimization.
Summary updated