Abstract
Sequential recommendation (SR) tasks aim to predict users' next interaction by learning their behavior sequence and capturing the connection between users' past interactions and their changing preferences. Conventional SR models often focus solely on capturing sequential patterns within the training data, neglecting the broader context and semantic information embedded in item titles from external sources. This limits their predictive power and adaptability. Large language models (LLMs) have recently shown promise in SR tasks due to their advanced understanding capabilities and strong generalization abilities. Researchers have attempted to enhance LLMs-based recommendation performance by incorporating information from conventional SR models. However, previous approaches have encountered problems such as 1) limited textual information leading to poor recommendation performance, 2) incomplete understanding and utilization of conventional SR model information by LLMs, and 3) excessive complexity and low interpretability of LLMs-based methods. To improve the performance of LLMs-based SR, we propose a novel framework, Distilling Sequential Pattern to Enhance LLMs-based Sequential Recommendation (DELRec), which aims to extract knowledge from conventional SR models and enable LLMs to easily comprehend and utilize the extracted knowledge for more effective SRs. DELRec consists of two main stages: 1) Distill Pattern from Conventional SR Models, focusing on extracting behavioral patterns exhibited by conventional SR models using soft prompts through two well-designed strategies; 2) LLMs-based Sequential Recommendation, aiming to fine-tune LLMs to effectively use the distilled auxiliary information to perform SR tasks. Extensive experimental results conducted on four real datasets validate the effectiveness of the DELRec framework.
Introduction
Sequential Recommendation (SR) is a critical task in modern information systems, aiming to predict a user’s next interaction based on their historical behavior. Currently, the field is divided between two primary methodologies. Conventional SR models, such as SASRec or GRU4Rec, are highly effective at identifying collaborative filtering patterns within item IDs but remain "blind" to the semantic meaning of the items themselves. Conversely, Large Language Model (LLM)-based recommenders possess vast world knowledge and can interpret item descriptions perfectly, yet they often struggle with the specific temporal logic and domain expertise required for high-accuracy sequential predictions.
Previous attempts to bridge this gap typically relied on simple textual prompts or complex alignment projectors. However, these methods often suffer from information loss or limited interpretability. DELRec (Distilling Sequential Pattern to Enhance LLMs-based Sequential Recommendation) addresses these alignment issues by distilling the logic of traditional models directly into the LLM's prompt space using a two-stage "soft prompt" process.
Methodology
The DELRec framework operates in two distinct stages to ensure the LLM can effectively leverage the strengths of conventional SR models.
Stage 1: Distill Pattern from Conventional SR Models
Instead of using a rigid mathematical bridge like a linear layer, DELRec utilizes soft prompts—learnable vectors that reside in the LLM's input space. These prompts are trained through two specialized tasks designed to capture the "essence" of conventional SR models:
- Temporal Analysis (TA): The LLM is trained to identify and predict the most recent item in a sequence. This strategy, referred to as Predicting Most Recent Item (PMRI), teaches the model that chronological order is paramount and that recent interactions should carry more weight in the final prediction.
- Recommendation Pattern Simulating (RPS): In this task, the LLM attempts to simulate the output of a "teacher" model (e.g., SASRec). By predicting the teacher's top-k recommendations, the LLM distills the traditional model's collaborative filtering logic into the soft prompts.
Stage 2: LLMs-based Sequential Recommendation
Once the soft prompts have captured the behavioral patterns of the conventional models, they are frozen and integrated into the final recommendation prompt. The LLM is then fine-tuned using AdaLoRA (Adaptive Low-Rank Adaptation), a parameter-efficient method. This allows the LLM to treat the soft prompts as "expert advice," combining this distilled behavioral knowledge with its own inherent semantic reasoning to make the final prediction.
Experimental Evaluation
The framework was rigorously evaluated across four diverse real-world datasets to test its versatility and scalability:
- MovieLens-100K: A standard benchmark for movie recommendations.
- Steam: A dataset involving user interactions and reviews for video games.
- Beauty: Amazon user feedback specifically for beauty products.
- Home & Kitchen: A large-scale Amazon dataset used to evaluate scalability.
- KuaiRec: A highly sparse dataset of short video interactions, used to test the model's robustness against noise.
Key Results and Insights
DELRec consistently outperformed both traditional baselines (Caser, GRU4Rec, SASRec) and state-of-the-art LLM-based methods (LLaRA, RecRanker) across all tested datasets. Notable findings include:
- Accuracy Gains: On the MovieLens-100K dataset, DELRec achieved an HR@1 of 0.3701, a significant improvement over the base SASRec's 0.3341.
- Efficiency: The model maintains a reasonable inference time of approximately 0.182s per request on consumer-grade hardware (Nvidia 3090 GPUs), making it a viable candidate for near-real-time applications.
- Cold Start Performance: Because DELRec leverages an LLM backbone, it performs significantly better than traditional models in scenarios where users have very few interactions. The LLM can rely on its general knowledge of item categories and descriptions when historical data is sparse.
- Robustness: The model showed strong performance even on the noisy KuaiRec dataset, proving that distilled patterns help the LLM filter out irrelevant behavioral noise.
Conclusion
DELRec introduces a novel paradigm for sequential recommendation by treating soft prompts as translators between the behavioral world of traditional SR models and the semantic world of LLMs. By distilling temporal awareness and recommendation patterns into the prompt space, DELRec achieves superior accuracy and robustness while maintaining computational efficiency. Future work may explore more complex "teacher" models or the integration of even larger LLM architectures to further enhance the distillation process.
Summary updated