ShiftKD: Benchmarking Knowledge Distillation under Distribution Shift

Songming Zhang, Yuxiao Luo, Ziyu Lyu, Xiaofeng Chen
12/25/2023
cs.LG

No official code found. Best implementation: ZZhangsm/ShiftKD (4 stars, MIT, last commit 2025-08-24).

Abstract

Knowledge Distillation (KD) transfers knowledge from large models to small models and has recently achieved remarkable success. However, the reliability of existing KD methods in real-world applications, especially under distribution shift, remains underexplored. Distribution shift refers to the data distribution drifts between the training and testing phases, and this can adversely affect the efficacy of KD. In this paper, we propose a unified and systematic framework \textsc{ShiftKD} to benchmark KD against two general distributional shifts: diversity and correlation shift. The evaluation benchmark covers more than 30 methods from algorithmic, data-driven, and optimization perspectives for five benchmark datasets. Our development of \textsc{ShiftKD} conducts extensive experiments and reveals strengths and limitations of current SOTA KD methods. More importantly, we thoroughly analyze key factors in student model training process, including data augmentation, pruning methods, optimizers, and evaluation metrics. We believe \textsc{ShiftKD} could serve as an effective benchmark for assessing KD in real-world scenarios, thus driving the development of more robust KD methods in response to evolving demands. The code will be made available upon publication.

View on arXivView PDF

Code Implementations(1)

ZZhangsm/ShiftKDCommunity100%
MIT

ShiftKD: Benchmarking knowledge distillation under distribution shift. Neural Networks, 192, 107838.

40Shell, PythonJan 7, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhang2023shiftkd,
  title  = {ShiftKD: Benchmarking Knowledge Distillation under Distribution Shift},
  author = {Songming Zhang and Yuxiao Luo and Ziyu Lyu and Xiaofeng Chen},
  year   = {2023},
  eprint = {2312.16242},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.16242v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.16242.svg)](https://codeofpaper.com/paper/2312.16242)

Discussion