What is Left After Distillation? How Knowledge Transfer Impacts Fairness and Bias
Aida Mohammadshahi, Yani Ioannou
TL;DR
This paper investigates how knowledge distillation (KD) affects class-wise bias and fairness in deep neural networks, revealing that on balanced datasets a substantial fraction of classes can exhibit significant accuracy changes after distillation. It introduces a structured methodology to measure class-level bias and employ fairness metrics (Demographic Parity and Equalized Odds) as well as an individual fairness criterion, showing that distillation temperature $T$ strongly modulates these effects. Across image and language datasets, higher temperatures can improve the distilled student’s fairness and even surpass the teacher on some fairness metrics, though extremely high temperatures may reduce information conveyed by the teacher and degrade both accuracy and fairness. The work highlights non-uniform, dataset-dependent shifts in bias under KD and argues for cautious deployment in sensitive domains, balancing accuracy with fairness objectives and encouraging further research into temperature-driven fairness dynamics.
Abstract
Knowledge Distillation is a commonly used Deep Neural Network (DNN) compression method, which often maintains overall generalization performance. However, we show that even for balanced image classification datasets, such as CIFAR-100, Tiny ImageNet and ImageNet, as many as 41% of the classes are statistically significantly affected by distillation when comparing class-wise accuracy (i.e. class bias) between a teacher/distilled student or distilled student/non-distilled student model. Changes in class bias are not necessarily an undesirable outcome when considered outside of the context of a model's usage. Using two common fairness metrics, Demographic Parity Difference (DPD) and Equalized Odds Difference (EOD) on models trained with the CelebA, Trifeature, and HateXplain datasets, our results suggest that increasing the distillation temperature improves the distilled student model's fairness, and the distilled student fairness can even surpass the fairness of the teacher model at high temperatures. Additionally, we examine individual fairness, ensuring similar instances receive similar predictions. Our results confirm that higher temperatures also improve the distilled student model's individual fairness. This study highlights the uneven effects of distillation on certain classes and its potentially significant role in fairness, emphasizing that caution is warranted when using distilled models for sensitive application domains.
