Skip to main content
QUICK REVIEW

[Paper Review] On student-teacher deviations in distillation: does it pay to disobey?

Vaishnavh Nagarajan, Aditya Krishna Menon|arXiv (Cornell University)|Jan 30, 2023
Middle East and Rwanda ConflictsSocial Sciences6 citations
TL;DR

This paper resolves the paradox of knowledge distillation by showing that students systematically exaggerate the teacher's confidence levels and exhibit an exaggerated implicit bias in gradient descent, both of which co-occur with improved generalization. Despite deviating from the teacher's soft labels, the student generalizes better due to a regularization effect induced by distillation.

ABSTRACT

Knowledge distillation (KD) has been widely used to improve the test accuracy of a "student" network, by training it to mimic the soft probabilities of a trained "teacher" network. Yet, it has been shown in recent work that, despite being trained to fit the teacher's probabilities, the student may not only significantly deviate from the teacher probabilities, but may also outdo than the teacher in performance. Our work aims to reconcile this seemingly paradoxical observation. Specifically, we characterize the precise nature of the student-teacher deviations, and argue how they can co-occur with better generalization. First, through experiments on image and language data, we identify that these probability deviations correspond to the student systematically exaggerating the confidence levels of the teacher. Next, we theoretically and empirically establish another form of exaggeration in some simple settings: KD exaggerates the implicit bias of gradient descent in converging faster along the top eigendirections of the data. Finally, we tie these two observations together: we demonstrate that the exaggerated bias of KD can simultaneously result in both (a) the exaggeration of confidence and (b) the improved generalization of the student, thus offering a resolution to the apparent paradox. Our analysis brings existing theory and practice closer by considering the role of gradient descent in KD and by demonstrating the exaggerated bias effect in both theoretical and empirical settings.

Motivation & Objective

  • To resolve the paradox that student models in knowledge distillation often deviate from teacher probabilities yet generalize better than the teacher.
  • To characterize the nature of student-teacher deviations in distillation, especially in self-distillation settings where capacity mismatch is absent.
  • To investigate how distillation influences the implicit bias of gradient descent and whether this affects generalization.
  • To demonstrate that systematic deviations—particularly confidence exaggeration—are not random but beneficial, arising from a regularization effect.
  • To bridge theory and practice by linking empirical observations of confidence exaggeration to theoretical properties of gradient descent in distilled training.

Proposed method

  • Empirically analyze student-teacher probability deviations across 20+ image and language classification settings, using logit-logit plots to visualize confidence exaggeration.
  • Theoretically analyze gradient descent dynamics in linear regression, proving that distillation amplifies the implicit bias toward top eigendirections of the data Hessian.
  • Empirically verify the exaggerated implicit bias in deep networks using eigenspace convergence plots on first and intermediate layers of CNNs and MLPs.
  • Conduct controlled loss-switching experiments (from distillation to one-hot and vice versa) to isolate the effects of training objective on confidence levels and generalization.
  • Use self-distillation setups to isolate the effect of distillation from model capacity differences, confirming that confidence exaggeration occurs even when student and teacher are identical.
  • Analyze the evolution of student-teacher deviations over training time via time-series plots of logits and parameter projections, showing when and how exaggeration emerges.

Experimental results

Research questions

  • RQ1Why do distilled students deviate from the teacher's soft probabilities yet generalize better?
  • RQ2What specific form do student-teacher deviations take, and are they systematic or random?
  • RQ3Does knowledge distillation amplify the implicit bias of gradient descent, and if so, how does this affect optimization and generalization?
  • RQ4Can confidence exaggeration in distillation be observed even in self-distillation, where model capacity is identical?
  • RQ5How do switching training objectives (e.g., from distillation to one-hot) affect confidence levels and model performance?

Key findings

  • In over 20 diverse image and language classification settings, distilled students systematically exaggerate the confidence of the teacher, showing higher confidence on high-confidence teacher predictions and lower confidence on low-confidence ones.
  • Self-distillation leads to confidence exaggeration even when student and teacher have identical architectures, proving this behavior is not due to capacity mismatch.
  • Theoretical analysis shows that distillation amplifies the implicit bias of gradient descent, causing faster convergence along the top eigendirections of the data Hessian in linear regression.
  • Empirical results confirm that distillation exaggerates the implicit bias in deep networks, with students converging faster along dominant data eigendirections than teachers.
  • Loss-switching experiments show that switching to one-hot loss suppresses confidence exaggeration, while switching to distillation reintroduces it, confirming its causal link to the distillation objective.
  • In non-interpolating teacher settings (e.g., TinyImageNet), switching to one-hot loss mid-training improves accuracy, while in interpolating settings (e.g., CIFAR100), it harms performance—supporting the role of implicit bias in generalization.

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.