Asymmetric Temperature Scaling Makes Larger Networks Teach Well Again

Xin-Chun Li, Wen-Shu Fan, Shaoming Song, Yinchuan Li, Bingshuai Li, Yunfeng Shao, De-Chuan Zhan

Abstract

Knowledge Distillation (KD) typically assumes that more accurate teacher networks yield better student models. However, empirical evidence often shows a performance decline when using very large, over-confident teachers. This paper identifies "Class Discriminability"—the variance among non-target class probabilities—as a critical factor suppressed by large teachers. We propose Asymmetric Temperature Scaling (ATS), a simple yet effective modification that applies different temperatures to correct and incorrect class logits. ATS restores the "dark knowledge" in over-confident models, allowing larger teachers to consistently outperform smaller ones across various benchmarks.

Introduction: The Large-Teacher Paradox

Knowledge Distillation is a widely used technique for transferring knowledge from a complex "teacher" network to a compact "student" network by matching their output probability distributions. Intuitively, a more accurate teacher should provide better guidance. Yet, a persistent paradox in KD research is that increasing teacher size often leads to a plateau or degradation in student performance.

This phenomenon has previously been attributed to a "capacity gap" between the student and teacher. This paper argues that the issue is primarily one of over-confidence. Large teachers produce extremely high logits for the correct class, which, after standard softmax scaling, results in nearly zero probabilities for all other classes. This "crushing" effect destroys the structural information—the "dark knowledge"—contained in the relative affinities between incorrect classes, leaving the student with a signal indistinguishable from a standard one-hot label.

Methods: Decomposing KD and Asymmetric Scaling

To understand why large teachers fail, we decompose the KD loss into three distinct components: Correct Guidance (directing the student toward the correct class), Smooth Regularization (providing a soft target), and Class Discriminability (maintaining the relative differences between incorrect class probabilities).

Decomposition of KD and the impact of temperature on its components. The right panel illustrates how large teachers lose derived variance compared to smaller ones.

While standard KD uses a single temperature $\tau$ to soften all logits, it often fails to balance these components for large teachers. High temperatures improve regularization but can destroy discriminability. We propose Asymmetric Temperature Scaling (ATS), which uses two distinct temperatures:

  • $\tau_1$ (Higher): Applied to the correct class logit to dampen over-confidence and prevent the target class from "crushing" other probabilities.
  • $\tau_2$ (Lower): Applied to incorrect class logits to amplify the subtle differences between them, making the "dark knowledge" more distinct.

Analysis: The Role of Class Discriminability

The researchers found that large teachers actually possess decent "Inherent Variance" in their raw logits. However, their massive target logit causes the standard softmax function to squash incorrect class probabilities into a flat, undiscriminative line (low "Derived Variance").

Scatter plots showing the correlation between KD improvement and derived metrics. Purple dots represent the proposed method, showing higher improvement ratios correlated with better class discriminability.

As shown in the analysis, improvements in KD performance are strongly tied to maintaining high derived variance (Class Discriminability). ATS effectively decouples the dampening of the target class from the preservation of these non-target affinities.

Experimental Results

We evaluated ATS across diverse datasets (CIFAR-10/100, TinyImageNet, GSC) and architectures (ResNet, MobileNetV2, ShuffleNet). Our results demonstrate that ATS effectively resolves the large-teacher paradox.

On CIFAR-100, a ResNet110 teacher traditionally produces a student with ~71.3% accuracy, underperforming a smaller ResNet14 teacher (~72.3%). By applying ATS, the ResNet110 teacher's student achieves 72.8%, reclaiming the expected performance gain from a larger model. ATS consistently outperformed state-of-the-art methods like Teacher Assistant KD (TAKD) and Early Stopped KD (ESKD) without requiring additional training stages or complex schedules.

Conclusion

Asymmetric Temperature Scaling provides a simple, training-free solution to the over-confidence problem in large-scale knowledge distillation. By restoring class discriminability, it allows practitioners to leverage the full potential of high-capacity teachers. Future research could explore dynamic, instance-aware temperature scaling to further optimize the transfer of dark knowledge based on the teacher's per-sample confidence levels.

Summary updated

BibTeX
@inproceedings{li2022asymmetric,
  author = {Xin-Chun Li and Wen-Shu Fan and Shaoming Song and Yinchuan Li and Bingshuai Li and Yunfeng Shao and De-Chuan Zhan},
  title = {{Asymmetric Temperature Scaling Makes Larger Networks Teach Well Again}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure