Introduction
Session-based Recommendation (SBR) is a critical task in modern e-commerce and content platforms, aiming to predict a user's next interaction based solely on their current session history. While Large Language Models (LLMs) have demonstrated exceptional zero-shot reasoning capabilities for understanding user intent, their deployment in real-time SBR is hindered by high latency and prohibitive computational costs.
Knowledge Distillation (KD) offers a potential solution by transferring the LLM's "teacher" knowledge into a lightweight "student" model. However, standard KD approaches face significant challenges: the high cost of querying LLM APIs for entire datasets and the presence of "noisy" or redundant samples that can degrade student performance. This paper introduces ALKDRec, an active learning framework designed to make LLM-based distillation both practical and high-performing.
The ALKDRec Framework
ALKDRec optimizes the distillation process through three integrated modules that enhance the teacher's domain knowledge and selectively sample the most informative data points.
- Enhancing the LLM Teacher: To bridge the gap between general-purpose LLM reasoning and domain-specific user behaviors, ALKDRec uses a conventional, smaller teacher model to provide "hints." These hints help the LLM align its predictions with the specific patterns of the target dataset.
- Knowledge Distillation: The student model is fine-tuned using both positive and negative samples generated by the enhanced LLM teacher.
- Active Learning Selection: This core innovation uses a theoretical framework to categorize sessions into three types: Effective (LLM is correct, student struggles), Similar (both agree), and Incorrect (LLM is wrong). By focusing on "Effective" samples, the model avoids redundant data and harmful noise.
Active Selection via Max-Min Optimization
Rather than random sampling, ALKDRec employs a "max-min" game strategy. The goal is to maximize the minimal expected gain from the selected sessions. This ensures that the student learns from the most informative "Goldilocks" zone—sessions that are difficult enough for the student to learn something new, but not so difficult that the LLM teacher provides incorrect labels. This theoretical grounding allows the model to achieve superior performance with a tiny fraction of the original data.
Experimental Results and Efficiency
The framework was evaluated on the Hetrec2011-ML and Amazon-Games benchmarks. ALKDRec consistently outperformed state-of-the-art KD methods across various backbone architectures, including FPMC and AttMix, sometimes improving Recall@5 by over 34%.
As shown in the performance curves, the model reaches optimal performance with a relatively small number of instances (e.g., 500 sessions). This leads to massive cost and time savings. For the Amazon-Games dataset, ALKDRec reduced the distillation cost from approximately $347.00 USD (for the full dataset) to just $8.60 USD, while simultaneously reducing API processing time from nearly 30 hours to just 44 minutes.
Conclusion
ALKDRec demonstrates that high-performance recommendation does not require massive LLM overhead. By intelligently selecting only the most informative sessions for distillation, the framework enables the creation of fast, efficient student models that can even outperform their teachers. Future work may extend this approach to embedding-level distillation to capture even more nuanced reasoning from the LLM.
Summary updated