Rethinking Large Language Model Architectures for Sequential Recommendations
Hanbing Wang, Xiaorui Liu, Wenqi Fan, Xiangyu Zhao, Venkataramana Kini, Devendra Yadav, Fei Wang, Zhen Wen, Jiliang Tang, Hui Liu
TL;DR
The paper tackles the inefficiency of LLM-based sequential recommendations, pinpointing beam search and long input lengths as major bottlenecks. It proposes Lite-LLM4Rec, a hierarchical LLM framework that encodes long item context into compact embeddings (Item LLM) and processes sequences with a specialized Recommendation LLM, replacing decoder-based decoding with a simple item projection head. This design yields substantial gains in both accuracy and inference speed on three real-world datasets, outperforming strong LLM baselines by large margins (e.g., Recall@10 improvements up to 46.8% and NDCG@20 improvements up to 51.4% on ML-1m) and achieving near-100% efficiency improvements over prior methods. The work also validates the robustness of the approach through ablations and cross-backbone experiments, and it provides practical insights into reducing input length and avoiding beam search for sequential recommendation tasks, with plans for open-sourcing the implementation.
Abstract
Recently, sequential recommendation has been adapted to the LLM paradigm to enjoy the power of LLMs. LLM-based methods usually formulate recommendation information into natural language and the model is trained to predict the next item in an auto-regressive manner. Despite their notable success, the substantial computational overhead of inference poses a significant obstacle to their real-world applicability. In this work, we endeavor to streamline existing LLM-based recommendation models and propose a simple yet highly effective model Lite-LLM4Rec. The primary goal of Lite-LLM4Rec is to achieve efficient inference for the sequential recommendation task. Lite-LLM4Rec circumvents the beam search decoding by using a straight item projection head for ranking scores generation. This design stems from our empirical observation that beam search decoding is ultimately unnecessary for sequential recommendations. Additionally, Lite-LLM4Rec introduces a hierarchical LLM structure tailored to efficiently handle the extensive contextual information associated with items, thereby reducing computational overhead while enjoying the capabilities of LLMs. Experiments on three publicly available datasets corroborate the effectiveness of Lite-LLM4Rec in both performance and inference efficiency (notably 46.8% performance improvement and 97.28% efficiency improvement on ML-1m) over existing LLM-based methods. Our implementations will be open sourced.
