Skip to main content
QUICK REVIEW

[Paper Review] Asymmetric Temperature Scaling Makes Larger Networks Teach Well Again

Xinchun Li, Wen-Shu Fan|arXiv (Cornell University)|Oct 10, 2022
Neural Networks and ApplicationsComputer Science12 citations
TL;DR

This paper proposes Asymmetric Temperature Scaling (ATS), a simple yet effective method that applies different temperature values to correct and wrong class logits during knowledge distillation, significantly improving the discriminability of wrong-class probabilities from larger, overconfident teachers. ATS enables larger models to teach students more effectively by enhancing the variance of incorrect class probabilities, outperforming state-of-the-art methods and making large teachers teach well again without complex architectures or training schemes.

ABSTRACT

Knowledge Distillation (KD) aims at transferring the knowledge of a well-performed neural network (the {\it teacher}) to a weaker one (the {\it student}). A peculiar phenomenon is that a more accurate model doesn't necessarily teach better, and temperature adjustment can neither alleviate the mismatched capacity. To explain this, we decompose the efficacy of KD into three parts: {\it correct guidance}, {\it smooth regularization}, and {\it class discriminability}. The last term describes the distinctness of {\it wrong class probabilities} that the teacher provides in KD. Complex teachers tend to be over-confident and traditional temperature scaling limits the efficacy of {\it class discriminability}, resulting in less discriminative wrong class probabilities. Therefore, we propose {\it Asymmetric Temperature Scaling (ATS)}, which separately applies a higher/lower temperature to the correct/wrong class. ATS enlarges the variance of wrong class probabilities in the teacher's label and makes the students grasp the absolute affinities of wrong classes to the target class as discriminative as possible. Both theoretical analysis and extensive experimental results demonstrate the effectiveness of ATS. The demo developed in Mindspore is available at https://gitee.com/lxcnju/ats-mindspore and will be available at https://gitee.com/mindspore/models/tree/master/research/cv/ats.

Motivation & Objective

  • To investigate why larger, more accurate teachers often fail to teach students effectively in knowledge distillation.
  • To identify the root cause of poor distillation performance from large models, particularly the loss of discriminability in wrong-class probabilities.
  • To develop a simple, effective method that restores the teaching capability of larger models without architectural or training complexity.
  • To demonstrate that traditional temperature scaling limits the potential of large teachers due to reduced variance in wrong-class probabilities.

Proposed method

  • The paper decomposes knowledge distillation into three components: correct guidance, smooth regularization, and class discriminability (measured by the variance of wrong-class probabilities after softmax).
  • It introduces Asymmetric Temperature Scaling (ATS), which applies a higher temperature to correct class logits and a lower temperature to wrong class logits, thereby increasing the derived variance of wrong-class probabilities.
  • ATS is formulated as separate temperature scaling for correct and wrong classes: $\tau_1$ for the correct class and $\tau_2$ for wrong classes, with $\tau_1 > \tau_2$ to enhance discriminability.
  • The method is theoretically justified by showing that uniform temperature scaling diminishes the discriminative power of large, overconfident teachers due to their low inherent variance in wrong-class scores.
  • Extensive experiments are conducted on CIFAR-100, TinyImageNet, CUB, and Dogs datasets to validate ATS across various student-teacher configurations.
  • The approach is implemented in Mindspore and released as a demo, enabling easy integration and reproducibility.

Experimental results

Research questions

  • RQ1Why do larger, more accurate teachers fail to teach students effectively despite their superior performance?
  • RQ2What role does the discriminability of wrong-class probabilities play in knowledge distillation efficacy?
  • RQ3Can traditional temperature scaling fully unlock the teaching potential of large models?
  • RQ4Is it possible to restore the teaching capability of large models through a simple, parameter-free modification like asymmetric temperature scaling?

Key findings

  • Traditional knowledge distillation with uniform temperature scaling fails to leverage the full teaching potential of larger models, as their overconfidence reduces the variance of wrong-class probabilities.
  • ATS significantly improves student performance by enhancing the discriminability of wrong-class probabilities, enabling larger teachers to teach better again.
  • On CIFAR-100, ATS improves student accuracy from 69.21% (standard KD with large teacher) to 70.32% (ST-KD with small teacher), and surpasses ResKD by nearly 1% when using ensemble predictions.
  • On TinyImageNet, ATS achieves 58.89% with large teacher KD, improving to 59.77% with ST-KD, and ATS outperforms all SOTA methods including ESKD, TAKD, SCKD, and ResKD.
  • Ablation studies confirm that setting $\tau_1 > \tau_2$, particularly $\tau_2 \in [\tau_1 - 2, \tau_1 - 1]$, yields optimal performance across datasets and hyperparameter settings.
  • ATS maintains consistent improvements across different loss weighting schemes ($\lambda$) and is robust to hyperparameter variations, demonstrating its practicality and reliability.

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.