Abstract
Sequential recommendation systems traditionally rely on ID-based collaborative filtering, which lacks semantic understanding and faces significant scalability challenges. While Large Language Models (LLMs) offer a potential solution through open-world knowledge, their deployment is often hindered by the "resource wall" and a "reasoning gap." This paper introduces SLIM (Step-by-step knowLedge dIstillation fraMework), a framework that distills complex Chain-of-Thought (CoT) reasoning from massive teacher models into efficient student models. By teaching smaller models to reason about user behavior step-by-step, SLIM achieves state-of-the-art performance with significantly reduced computational requirements.
Introduction
Sequential recommendation—predicting a user's next interaction based on historical behavior—is fundamental to modern digital platforms. However, traditional systems primarily utilize ID-based collaborative filtering, treating items as opaque identifiers. This approach creates "information silos," failing to capture the underlying intent behind user actions and struggling with "cold-start" scenarios where interaction data is sparse.
Large Language Models (LLMs) present an opportunity to bridge this gap using their extensive open-world knowledge. Nevertheless, two primary obstacles persist: the Reasoning Gap, where standard LLMs struggle with complex behavioral patterns in zero-shot settings, and the Resource Wall, where the computational cost of deploying models with hundreds of billions of parameters is prohibitive for real-time production.
Methodology: The SLIM Framework
The researchers propose SLIM, which leverages knowledge distillation to transfer reasoning capabilities from a large "teacher" model (e.g., GPT-3.5) to a more compact "student" model (e.g., LLaMA2-7B).
The framework operates in three distinct stages:
- Teacher Reasoning (CoT Prompting): A massive teacher model is prompted to generate rationales using a three-step Chain-of-Thought: summarizing user preferences, recommending categories/brands, and finally recommending specific products.
- Knowledge Distillation: These rationales serve as training labels to fine-tune the student model using Low-Rank Adaptation (LoRA), teaching it to replicate the teacher's reasoning process.
- Recommendation Integration: The student model acts as a knowledge generator. Its textual rationales are encoded into dense vectors via a BERT encoder and fused with traditional recommendation backbones (such as SASRec or GRU4Rec) through an information fusion layer.
Experimental Results
The framework was evaluated on three categories from the Amazon Review Dataset: Video Games, Grocery and Gourmet Food, and Home and Kitchen. These datasets represent various levels of data sparsity and popularity bias.
Key Findings
- Performance Gains: SLIM consistently outperformed baselines, achieving a 28.17% relative improvement in Hit Rate@10 on the Home dataset compared to a strong GRU4Rec baseline.
- Efficiency and Scalability: The student model utilizes only 4% of the parameters of the teacher. While a 70B model requires multiple high-end GPUs, the 7B SLIM model runs efficiently on a single A100, making it viable for production environments.
- Data Efficiency: Peak performance was achieved with as few as 1,000 fine-tuning samples, demonstrating that massive amounts of teacher-generated data are not required to reach state-of-the-art results.
Discussion and Insights
A critical insight from this work is that distilling the reasoning process (the CoT) is significantly more effective than distilling final labels alone. This "macro-to-micro" approach allows the model to better understand user intent. Interestingly, the student model often surpassed the teacher, likely because the distillation process filters out the "noise" or hallucinations common in general-purpose LLMs, focusing the student on recommendation-specific patterns.
Furthermore, SLIM effectively alleviates popularity bias. By understanding the attributes and reasons behind a purchase (e.g., "organic fair-trade coffee"), the model can recommend niche "long-tail" items that traditional ID-based models often overlook.
Limitations and Future Work
Despite its success, SLIM remains dependent on an initial investment in a high-end teacher model for rationale generation. Future research could explore customized knowledge encoders to better capture LLM-generated nuances and methods to reduce the inference latency associated with text generation in real-time systems.
Summary updated