Introduction
In modern recommender systems, there is a persistent tension between model accuracy and inference efficiency. While deep neural architectures have significantly improved Top-N recommendation performance, their high parameter counts often lead to prohibitive latency in real-time production environments. Knowledge Distillation (KD) offers a potential solution by training a compact "student" model to mimic a complex "teacher" model. However, traditional KD techniques—originally designed for image classification—struggle with the unique challenges of recommendation data: extreme sparsity, the ambiguity of unobserved feedback, and the specific requirement of ranking items rather than classifying them.
This paper introduces Collaborative Distillation (CD), a framework designed to bridge the gap between heavy-duty recommendation models and efficient deployment. By rethinking the loss functions and sampling strategies used during distillation, CD enables student models to achieve teacher-level accuracy with a fraction of the computational overhead.
Methodology
The Collaborative Distillation framework is built upon three core technical innovations that address the limitations of previous methods like Rank Distillation (RD).
1. Selective Collaborative Filtering Loss
Standard recommendation models often treat missing feedback as negative signals (zeros), which can bias a student model toward predicting low scores across the board. CD introduces a Selective CF Loss that separates ground-truth targets from teacher-predicted targets. It focuses exclusively on known positive feedback for hard targets while allowing the teacher’s "soft" predictions to guide the student’s understanding of the vast space of unobserved items.
2. Probabilistic Rank-Aware Sampling
Previous distillation methods often focused only on the teacher's top-K items, effectively "quantizing" the teacher's knowledge into binary labels. CD argues that the specific probability values (the "softness") of the teacher's output contain critical information about item correlations. CD employs Probabilistic Rank-Aware Sampling, where items are sampled from the teacher’s entire distribution. Items ranked higher by the teacher have a higher probability of being selected, ensuring the student learns the fine-grained nuances of the teacher's preference surface.
3. Student-Guided Training
Unlike traditional KD, where the teacher passively provides information, CD utilizes a Student-Guided approach. During training, the student model actively identifies specific items it is currently analyzing and "queries" the teacher for feedback on those items. This interactive loop allows the student to converge more quickly and accurately on the optimal ranking function.
Evaluation and Results
The authors evaluated CD across four diverse benchmark datasets: Amazon Music (AMusic), MovieLens 100k (ML100K), Yelp, and Gowalla. These datasets represent varying degrees of sparsity and scale.
Performance Gains
The experimental results demonstrate that CD significantly outperforms the previous state-of-the-art, Rank Distillation (RD). Specifically, CD achieved:
- Hit Rate (HR) improvements of 2.7% to 33.2%.
- Normalized Discounted Cumulative Gain (NDCG) improvements of 2.7% to 29.1%.
In several instances, the student model trained via CD actually matched or slightly exceeded the performance of the original teacher model, suggesting that the distillation process can act as a form of regularization.
Efficiency and Latency
The primary goal of CD is efficiency. The researchers found that a student model with only 20% of the parameters of the teacher could maintain nearly identical ranking performance. Crucially, these student models reduced inference latency by more than 50%, making them highly suitable for real-time recommendation tasks.
Conclusion
Collaborative Distillation represents a significant advancement in the compression of recommendation models. By preserving the "soft" knowledge of the teacher and employing a student-guided sampling strategy, CD overcomes the hurdles of data sparsity and ranking ambiguity. Future research may extend this framework to pair-wise or list-wise ranking objectives and explore its effectiveness on emerging Transformer-based architectures.
Summary updated