TL;DR
Pre-trained recommendation models (PRMs) deliver excellent accuracy but are too massive and slow for real-world, low-latency production systems. CKD-MDSR solves this by distilling cross-domain knowledge from multiple structurally diverse PRM "teachers" into a single, lightweight student model. By combining an easy-to-hard curriculum training schedule with a consistency-aware fusion strategy, it matches or exceeds PRM performance while maintaining the exact same inference speed and memory footprint as a standard sequential recommender.
What Problem Does This Paper Address?
Pre-trained recommendation models (PRMs)—such as UniSRec and Recformer—have recently taken the recommender systems field by storm. By pre-training on massive text, multimodal, and interaction datasets across various domains, they excel at understanding user preferences, especially in data-sparse or zero-shot (cold-start) scenarios.
Despite their power, deploying them in real-world online systems is incredibly difficult due to three main challenges:
- High Computational and Memory Overhead: PRMs rely heavily on large language models (LLMs) or vision-language models, making them too slow for high-throughput, low-latency online serving.
- Architectural Incompatibility: Production systems often use highly optimized, domain-specific architectures that cannot easily integrate the heterogeneous structures of different PRMs.
- No Single Dominant Model: There is no "GPT-4 of recommendation." One PRM might excel at text-heavy domains, while another dominates in multimodal (video/image) scenarios. Relying on a single teacher model leaves valuable knowledge on the table.
Knowledge Distillation (KD) is a classic way to compress large models into smaller ones. However, standard KD techniques struggle when trying to aggregate knowledge from multiple heterogeneous teachers that use entirely different item representations, features, and training losses.
Methods
The authors introduce CKD-MDSR (Curriculum-scheduled Knowledge Distillation for Multi-domain Sequential Recommendation) to seamlessly bridge the gap between heavy PRMs and agile production models.
The framework consists of three core components:
- Curriculum-scheduled User Behavior Sequence Sampling: To prevent the student model from being overwhelmed by noisy or overly complex teacher predictions early on, the authors introduce an "easy-to-hard" curriculum. Difficulty is measured by sequence length and item popularity (shorter sequences with highly popular items are deemed "easier"). The student trains on easy buckets first, gradually progressing to harder data.
- In-batch Negative Distillation: Instead of calculating distillation scores over the entire (and massive) item corpus, CKD-MDSR distills normalized user-item scores over in-batch negative samples. This provides a structurally invariant space to align different teachers without incurring massive computational costs.
- Consistency-aware Knowledge Integration: Since teachers can disagree or output noisy predictions, the framework uses an instance-level scoring strategy. It calculates the Mean Squared Error (MSE) between the teachers' normalized outputs. If a teacher's prediction wildly diverges from its peers, its confidence score drops, and its distillation weight is dynamically reduced and redistributed to the more consistent teachers.
Datasets
The framework was evaluated on five real-world target domain datasets from Amazon:
- Instruments
- Toys
- Scientific
- Arts
- Games
Crucially, to simulate true real-world transfer capabilities, these target datasets did not overlap with any of the datasets used to pre-train the teacher models (UniSRec, Recformer, and UniM2Rec).
Key Insights and Ideas
- In-Batch Negatives Reduce Noise: Counter-intuitively, distilling over in-batch negatives performs better than distilling over the entire item corpus. The authors note that PRMs are often unconfident and noisy regarding long-tail items; restricting distillation to in-batch items filters out this irrelevant noise.
- Curriculum Learning Stabilizes Multi-Teacher KD: Multi-teacher distillation can introduce conflicting gradients early in training. Gradually ramping up data difficulty allows the student model to build a stable foundation before tackling complex, long-tail user behavior sequences.
- Teachers are Complementary: The ablation studies confirm that removing any single PRM teacher degrades performance, proving that heterogeneous models capture distinct, non-overlapping aspects of user preferences across different domains.
Key Results
- The Best of Both Worlds: As shown in Figure 1, CKD-MDSR achieves a massive performance leap over its base model (SASRec), occasionally even outperforming the heavy PRM teachers themselves, all while maintaining a 1.0x inference time and memory cost.
- Quantitative Gains: Across all five datasets, CKD-MDSR achieved relative improvements in Recall@10 and NDCG@10 ranging from 0.86% to 19.21% compared to the baseline SASRec model.
- Extreme Resource Savings: While teacher models like Recformer required up to 81.7x more memory and 3.1x more inference time than SASRec, the distilled student model delivers comparable accuracy with zero added deployment overhead.
- Model Agnostic (Universality): The authors proved the framework's versatility by swapping out the sequential student (SASRec) for conventional models like Factorization Machines (FM), DeepFM, and graph-based models (LightGCN). In all cases, the CKD-MDSR variants significantly outperformed their baselines (e.g., up to a +13.49% improvement for DeepFM).
Limitations and Future Work
While highly effective, the framework's performance relies on tuning a few key hyperparameters, such as the distillation weight ($\lambda$) and the softmax temperature ($\tau$), which can vary slightly depending on the target dataset.
For future work, the authors plan to explore dataset distillation—extracting multi-modal and multi-domain knowledge directly from the data itself rather than relying on pre-trained model outputs—and further investigate data-centric recommendation paradigms.
Summary updated