E4SRec: An Elegant Effective Efficient Extensible Solution of Large Language Models for Sequential Recommendation

Xinhang Li, Chong Chen, Xiangyu Zhao, Yong Zhang, Chunxiao XingarXiv 2023 · DOI

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 E4SRec framework architecture, illustrating the training and inference pipelines.

The architecture is defined by four key components:

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Performance comparison (nDCG@5) between SASRec and E4SRec across different user groups, highlighting gains in sparse data scenarios.

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

BibTeX
@misc{li2023e,
  author = {Xinhang Li and Chong Chen and Xiangyu Zhao and Yong Zhang and Chunxiao Xing},
  title = {{E4SRec: An Elegant Effective Efficient Extensible Solution of Large Language Models for Sequential Recommendation}},
  year = {2023},
  eprint = {2312.02443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.02443},
}
Figure