TL;DR
This paper introduces LITE-LLM4REC, a novel LLM-based sequential recommendation framework that significantly boosts inference efficiency and performance. By eliminating unnecessary beam search decoding and introducing a hierarchical LLM structure, it tackles the computational overhead that hinders real-world LLM recommendation applications.
What Problem Does This Paper Address?
Sequential recommendation aims to predict a user's next interaction based on their historical behavior. While Large Language Models (LLMs) have shown great promise in capturing complex user preferences and contextual information, their application to recommendation systems often results in substantial computational overhead during inference. This is primarily due to the auto-regressive nature of LLMs and the way item information is encoded, leading to slow response times that are impractical for real-time applications. The paper addresses this critical gap by proposing a streamlined and efficient LLM architecture for sequential recommendations.
Methods
The core of LITE-LLM4REC lies in two key innovations:
- Elimination of Beam Search Decoding: The authors observed that beam search decoding, a common practice in LLM-based generation tasks, is not only computationally expensive but also unnecessary for sequential recommendation. Instead of generating item sequences token by token, LITE-LLM4REC replaces this with a direct item projection head. This head outputs ranking scores over the entire item set, allowing for much faster prediction.
- Hierarchical LLM Structure: To efficiently handle rich item contextual information (like titles and genres) without creating excessively long input sequences, LITE-LLM4REC employs a hierarchical LLM architecture. This involves:
- Item LLM: A dedicated LLM component that encodes the contextual information of individual items into compact, context-aware vector representations. This effectively captures item nuances while reducing the input length for the next stage.
- Recommendation LLM: This component takes the sequence of context-aware item embeddings (rather than raw text) as input. This significantly reduces the input sequence length, further improving efficiency and mitigating redundant computations.
Datasets
The proposed LITE-LLM4REC model was evaluated on three publicly available datasets:
- ML-1m: A well-known dataset for movie recommendations.
- Amazon-Movies: A dataset collected from the Amazon e-commerce platform, focusing on movie items.
- Amazon-Toys&Games (Toys): Another dataset from Amazon, focusing on toys and games.
These datasets were pre-processed using standard techniques, including a 5-core filtering strategy for ML-1m and a 10-core filtering strategy for the Amazon datasets to ensure data quality.
Key Insights and Ideas
- Beam Search is Overkill: The most striking insight is that beam search decoding, a standard LLM generation technique, is a major bottleneck for sequential recommendation and can be safely removed without sacrificing performance. This is because recommendation systems only need to predict items, not generate free-form text.
- Contextual Embeddings are Key: Encoding item context into dense embeddings before feeding them to the recommendation LLM is crucial. This allows the model to leverage rich item information while drastically shortening the input sequence length.
- Hierarchical Processing is Efficient: Breaking down the LLM processing into an "Item LLM" for encoding item context and a "Recommendation LLM" for sequence processing offers a more efficient way to handle long contexts.
- LLMs Understand Semantics Directly: The paper suggests that LLMs can understand semantic information encoded in latent representations, making the explicit conversion of item information into natural language prompts potentially superfluous and computationally wasteful.
Key Results
LITE-LLM4REC demonstrated significant improvements in both performance and efficiency:
- Performance: The model achieved notable improvements in Recall@10, with gains of 46.8% on ML-1m, 38.4% on Movies, and 20.7% on Toys compared to existing LLM-based methods. NDCG@20 improvements were also substantial (e.g., 51.4% on ML-1m).
- Efficiency: Inference time was drastically reduced. The paper reports an impressive 97.28% efficiency improvement on ML-1m (99.71% on ML-1m, 99.63% on Movies, 99.66% on Toys) compared to the POD baseline. This was achieved by removing beam search and reducing input length by over 75%.
Limitations and Future Work
- Backbone Influence: While the paper shows that different LLM backbones for the Item LLM can achieve satisfying performance, the influence of the backbone on the Recommendation LLM's performance is still an area for future investigation.
- Inductive Learning: The authors express interest in empowering their models with inductive learning abilities.
- Item Indexing Impact: Further exploration into how item indexing strategies affect the training process is suggested.
- Model Size: Investigating how the size of the backbone LLM for recommendation impacts performance is also a future direction.
Summary updated