Skip to main content
QUICK REVIEW

[Paper Review] Teacher's pet: understanding and mitigating biases in distillation

Michał Łukasik, Srinadh Bhojanapalli|arXiv (Cornell University)|Jun 19, 2021
Machine Learning and Data ClassificationComputer Science43 references5 citations
TL;DR

This paper identifies that knowledge distillation can degrade performance on under-represented data subgroups—particularly rare classes—due to the teacher model propagating and amplifying its own errors. To mitigate this, the authors propose AdaAlpha and AdaMargin, which apply per-class adaptive mixing weights and margins to reduce teacher influence on unreliable subgroups, improving subgroup accuracy without sacrificing overall performance.

ABSTRACT

Knowledge distillation is widely used as a means of improving the performance of a relatively simple student model using the predictions from a complex teacher model. Several works have shown that distillation significantly boosts the student's overall performance; however, are these gains uniform across all data subgroups? In this paper, we show that distillation can harm performance on certain subgroups, e.g., classes with few associated samples. We trace this behaviour to errors made by the teacher distribution being transferred to and amplified by the student model. To mitigate this problem, we present techniques which soften the teacher influence for subgroups where it is less reliable. Experiments on several image classification benchmarks show that these modifications of distillation maintain boost in overall accuracy, while additionally ensuring improvement in subgroup performance.

Motivation & Objective

  • To investigate whether knowledge distillation improves performance uniformly across all data subgroups, especially under-represented classes.
  • To identify the root cause of performance degradation in rare or low-frequency classes during distillation.
  • To develop methods that mitigate distillation-induced bias by adaptively reducing teacher influence on unreliable subgroups.
  • To ensure that distillation boosts accuracy across all classes, not just the overall average, without compromising model performance.

Proposed method

  • Propose AdaAlpha, a method that applies per-class adaptive mixing weights between one-hot labels and teacher probabilities, reducing teacher influence on classes where the teacher is overconfident in incorrect predictions.
  • Introduce AdaMargin, which applies per-class margins to soften the distillation signal, particularly for classes with high teacher misprediction confidence.
  • Use class-specific confidence scores in the true label to determine which subgroups need reduced teacher influence, based on teacher reliability.
  • Apply a temperature-based softening mechanism to adjust distillation loss dynamically per class, improving generalization on tail classes.
  • Evaluate the methods on long-tailed benchmarks like CIFAR-100-LT and ImageNet, comparing subgroup and overall accuracy.
  • Conduct ablation studies to validate the necessity of precise per-class weighting, showing that random shuffling or global removal of distillation signals underperforms.

Experimental results

Research questions

  • RQ1Does knowledge distillation improve performance uniformly across all data subgroups, or does it disproportionately harm under-represented classes?
  • RQ2What causes performance degradation in rare classes during distillation, particularly when the teacher model makes confident mispredictions?
  • RQ3Can per-subgroup adaptive weighting of the distillation signal mitigate bias and improve fairness across classes?
  • RQ4Do the proposed methods AdaAlpha and AdaMargin maintain overall accuracy while improving subgroup performance?

Key findings

  • On CIFAR-100-LT, distillation harms the worst-10 classes by approximately 2% absolute accuracy, despite a 1% gain in overall accuracy.
  • On ImageNet, distillation reduces average accuracy of the worst-10 classes by about 3% absolute, indicating significant subgroup degradation.
  • AdaAlpha improves worst-class accuracy by over 3 percentage points on CIFAR-100-LT compared to standard distillation, while maintaining or slightly improving mean accuracy.
  • AdaAlpha achieves a mean accuracy of 75.52% on CIFAR-100-LT, outperforming vanilla distillation and other baselines, including Zhou et al. (2021).
  • AdaMargin flattens margin and log-loss distributions, increasing confidence on tail classes and achieving positive margins in one bucket where other methods fail.
  • Ablation studies confirm that precise per-class weighting is essential—random shuffling or removing distillation from low-frequency classes underperforms the proposed methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.