Skip to main content
QUICK REVIEW

[Paper Review] Knowledge distillation for optimization of quantized deep neural networks

Sungho Shin, Yoonho Boo|arXiv (Cornell University)|Sep 4, 2019
Advanced Neural Network ApplicationsComputer Science40 references4 citations
TL;DR

This paper proposes knowledge distillation (KD) with a gradual soft loss reducing (GSLR) technique to optimize quantized deep neural networks (QDNNs), showing that soft label distribution—controlled by temperature and teacher size—is more critical than teacher model performance. It achieves state-of-the-art 2-bit ResNet20 accuracy on CIFAR-10 and CIFAR-100, outperforming prior methods by leveraging temperature-tuned soft labels and a robust training schedule that reduces soft loss over time.

ABSTRACT

Knowledge distillation (KD) is a very popular method for model size reduction. Recently, the technique is exploited for quantized deep neural networks (QDNNs) training as a way to restore the performance sacrificed by word-length reduction. KD, however, employs additional hyper-parameters, such as temperature, coefficient, and the size of teacher network for QDNN training. We analyze the effect of these hyper-parameters for QDNN optimization with KD. We find that these hyper-parameters are inter-related, and also introduce a simple and effective technique that reduces extit{coefficient} during training. With KD employing the proposed hyper-parameters, we achieve the test accuracy of 92.7% and 67.0% on Resnet20 with 2-bit ternary weights for CIFAR-10 and CIFAR-100 data sets, respectively.

Motivation & Objective

  • To investigate the impact of teacher network choice and KD hyperparameters on quantized DNN performance.
  • To determine whether full-precision or quantized teacher models yield better distillation results for low-bit networks.
  • To develop a robust training strategy that reduces dependency on hyperparameter tuning in KD for QDNNs.
  • To improve the accuracy of 2-bit quantized networks on CIFAR-10 and CIFAR-100 through controlled soft label distributions.

Proposed method

  • Uses knowledge distillation where the student network is trained using soft labels from a teacher network, with a loss combining cross-entropy on hard labels and soft labels.
  • Employs temperature scaling (τ) in the softmax function to control the softness of the teacher’s output distribution.
  • Introduces the gradual soft loss reducing (GSLR) technique, which starts with equal weighting of hard and soft losses and progressively reduces the soft loss component during training.
  • Evaluates various teacher models, including full-precision, quantized, and knowledge-distilled teacher-assistant architectures.
  • Analyzes the interplay between temperature, teacher size, and loss weighting (λ) to identify optimal configurations for QDNNs.
  • Uses L2-error minimization or standard deviation to compute the quantization step size (Δ) for 1- or 2-bit weight quantization.

Experimental results

Research questions

  • RQ1Does the performance of the teacher network matter more than the shape of its soft label distribution in KD for QDNNs?
  • RQ2How do temperature and teacher model size jointly affect distillation performance in low-precision networks?
  • RQ3Can a small teacher model outperform a large one if the soft label distribution is properly controlled?
  • RQ4Does a dynamic loss scheduling strategy like GSLR reduce hyperparameter sensitivity and improve training robustness?
  • RQ5What is the optimal balance between hard and soft losses during training for 2-bit quantized models?

Key findings

  • The shape of the teacher’s soft label distribution—controlled by temperature and model size—is more important than the teacher’s own accuracy for effective distillation.
  • Even a small teacher network (e.g., ResNet20) can achieve performance comparable to larger models (e.g., WRN20x2) when temperature is properly tuned.
  • For CIFAR-10, optimal performance (94.8%) was achieved with τ=4 and a WRN20x1.7 teacher, while for CIFAR-100, τ=1 and ResNet20 gave the best results (76.8%).
  • When temperature is too high (e.g., τ>5 on CIFAR-100), soft labels become overly flat, reducing knowledge transfer and causing accuracy to drop below 65.49%.
  • The GSLR technique significantly improves training stability and performance, yielding results comparable to or better than hard-label-only training across all teacher configurations.
  • With GSLR and proper hyperparameter tuning, the paper achieves state-of-the-art 2-bit ResNet20 accuracy of 94.8% on CIFAR-10 and 76.8% on CIFAR-100, surpassing prior 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.