Preference-Consistent Knowledge Distillation for Recommender System

Zhangchi Zhu, Wei Zhang

Abstract

Feature-based knowledge distillation has been applied to compress modern recommendation models, usually with projectors that align student (small) recommendation models' dimensions with teacher dimensions. However, existing studies have only focused on making the projected features (i.e., student features after projectors) similar to teacher features, overlooking investigating whether the user preference can be transferred to student features (i.e., student features before projectors) in this manner. In this paper, we find that due to the lack of restrictions on projectors, the process of transferring user preferences will likely be interfered with. We refer to this phenomenon as preference inconsistency. It greatly wastes the power of feature-based knowledge distillation. To mitigate preference inconsistency, we propose PCKD, which consists of two regularization terms for projectors. We also propose a hybrid method that combines the two regularization terms. We focus on items with high preference scores and significantly mitigate preference inconsistency, improving the performance of feature-based knowledge distillation. Extensive experiments on three public datasets and three backbones demonstrate the effectiveness of PCKD.

The Challenge of Preference Inconsistency

In the era of big data, recommendation models have grown massive, primarily due to huge embedding layers. To make these models deployable on edge devices or for low-latency applications, researchers use Knowledge Distillation (KD) to compress a large "teacher" model into a small "student" model.

Feature-based KD typically uses a projector (a small neural network) to align the student's low-dimensional features with the teacher's high-dimensional space. However, a critical flaw exists: Preference Inconsistency. While the projected features might look like the teacher's, the student's original features—the ones actually used during inference—often produce completely different item rankings. Essentially, the projector acts as a "camouflage" that allows the student to minimize loss during training without actually mastering the underlying task of ranking items correctly.

Illustration of preference inconsistency where student features and projected features yield different item rankings.

Empirical analysis shows that at the start of training, nearly 50% of item preferences flip before and after the projector. Even after convergence, about 25% remain inconsistent, particularly for items with similar preference scores where fine-grained ranking is most difficult.

Proposed Method: PCKD

To mitigate preference inconsistency, the authors propose PCKD (Preference-Consistent Knowledge Distillation). This framework adds specific regularization terms to the training objective to force the student's internal features to be consistent with the projected (teacher-aligned) features.

Overview of the PCKD framework, illustrating Pair-wise and List-wise regularization with rank-aware sampling.

The method consists of four key components:

  1. Pair-wise PCKD: Inspired by Bayesian Personalized Ranking (BPR), this term ensures that if the student's features suggest a user prefers Item A over Item B, the projected features must maintain that same relative order.
  2. List-wise PCKD: This uses a Kullback-Leibler (KL) divergence approach to align the entire probability distribution of a set of items before and after the projector.
  3. Rank-aware Sampling: Since top-ranked items are the most important in recommendation, the authors use an exponential sampling strategy to focus distillation on items the student predicts will have high preference scores.
  4. Hybrid PCKD (PCKD-H): A combination of both pair-wise and list-wise approaches to capture both fine-grained top-item rankings and broader distribution consistency.

Experimental Results

The researchers evaluated PCKD on three public benchmarks (CiteULike, Gowalla, and Yelp2018) across four backbone architectures (BPRMF, LightGCN, SimpleX, and JGCF).

Key findings include:

  • Superior Performance: PCKD-L (list-wise) consistently outperformed state-of-the-art distillation methods like Distillation Experts (DE) and HTD.
  • Efficiency Gains: Student models trained with PCKD achieved performance comparable to their massive teacher models while being 1/10th the size and having 1/3rd the inference latency.
  • Ablation Success: Removing the "rank-aware sampling" led to a significant drop in performance, confirming that focusing on high-scoring items is essential for effective distillation in recommendation.

Conclusion

PCKD addresses a fundamental oversight in feature-based knowledge distillation for recommender systems. By enforcing preference consistency through novel regularization and rank-aware sampling, the student model is forced to learn true ranking logic rather than relying on the projector to "cheat." While List-wise PCKD increases training-time overhead, the resulting student models are highly efficient and accurate for real-world deployment.

Summary updated

BibTeX
@article{zhu2023preference,
  author = {Zhangchi Zhu and Wei Zhang},
  title = {{Preference-Consistent Knowledge Distillation for Recommender System}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2023},
}
Figure