Improved Knowledge Distillation via Teacher Assistant
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "arXiv — non-exclusive license to distribute" does not allow redistributing the text itself. Original — arxiv.org/pdf/1902.03393
Summary
Knowledge distillation trains a compact "student" network to imitate the softened outputs of a large pre-trained "teacher." It is a common way to get models small enough for phones and embedded hardware. Mirzadeh et al. find that this pairing breaks down when the two networks differ too much in capacity. Beyond a certain point, a bigger and more accurate teacher actually produces a worse student.
To close that gap, they propose Teacher Assistant Knowledge Distillation (TAKD). An intermediate-sized network is first distilled from the teacher, and the student then learns only from this assistant. The idea extends to longer chains of several TAs.
The authors evaluate plain CNNs and ResNet models on CIFAR-10, CIFAR-100 and ImageNet. They compare TAKD against standard distillation (BLKD) and training from scratch (NOKD). They also give a learning-theory argument based on error upper bounds and inspect loss landscapes. TAKD consistently improves the student, especially under aggressive compression.
The work matters because it shows that the biggest available teacher is not automatically the best choice. It also offers a simple, architecture-agnostic fix that can be combined with other distillation methods.
Key points
- Capacity-gap experiment: a CNN student with 2 convolutional layers was distilled from teachers with 4, 6, 8 and 10 layers on CIFAR-10 and CIFAR-100. The largest teacher did not yield the best student. In the reverse setup, a fixed 10-layer teacher gave diminishing benefit as the student shrank too far.
- Baseline objective (BLKD): the loss is a λ-weighted mix of cross-entropy on true labels and a temperature-scaled (τ) KL term toward the teacher's softened outputs.
- Theoretical justification: the argument builds on Lopez-Paz et al. (2015). Replacing one large student–teacher gap with two smaller ones (student–TA and TA–teacher) gives faster learning rates and a tighter asymptotic error bound than BLKD.
- Example chains: plain CNN 10 → 4 → 2 and ResNet 110 → 20 → 8. An additional comparison against other distillation alternatives used ResNet8 and ResNet14 students with a ResNet26 teacher.
- Loss landscape and future work: visualizations with the method of Li et al. (2018) on CIFAR-100 show the TAKD student sitting in flatter minima than NOKD and BLKD, which the authors link to better generalization. Automatic, data-driven TA selection is left as future work. The paper was published at AAAI 2020.
Cited by
- MiniLLM: On-Policy Distillation of Large Language Models
- DistiLLM: Towards Streamlined Distillation for Large Language Models
- MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models
Cite
@misc{mirzadeh2019improved,
title = {{Improved Knowledge Distillation via Teacher Assistant}},
author = {Mirzadeh, Seyed-Iman and Farajtabar, Mehrdad and Li, Ang and Levine, Nir and Matsukawa, Akihiro and Ghasemzadeh, Hassan},
year = {2019},
doi = {10.48550/arxiv.1902.03393},
eprint = {1902.03393},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1902.03393}
}References
- Anil, R.; Pereyra, G.; Passos, A.; Ormándi, R.; Dahl, G.; and Hinton, G. 2018. Large scale distributed neural network training through online distillation. CoRR abs/1804.03235. — [arXiv:1804.03235](https://arxiv.org/abs/1804.03235) find
- Ba, J., and Caruana, R. 2014. Do deep nets really need to be deep? In NIPS, 2654–2662. find
- Bergstra, J.; Bardenet, R.; Bengio, Y.; and Kégl, B. 2011. Algorithms for hyper-parameter optimization. In NIPS. find
- Bertsekas, D. 2005. Dynamic programming and optimal control, volume 1. Athena scientific Belmont, MA. find
- Bucila, C.; Caruana, R.; and Niculescu-Mizil, A. 2006. Model compression. In SIGKDD, 535–541. ACM. find
- Chen, G.; Choi, W.; Yu, X.; Han, T.; and Chandraker, M. 2017. Learning efficient object detection models with knowledge distillation. In NIPS, 742–751. find
- Czarnecki, W.; Osindero, S.; Jaderberg, M.; Swirszcz, G.; and Pascanu, R. 2017. Sobolev training for neural networks. In NIPS, 4278–4287. find
- Devlin, J.; Chang, M.; Lee, K.; and Toutanova, K. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. CoRR abs/1810.04805. find
- Furlanello, T.; Lipton, Z.; Tschannen, M.; Itti, L.; and Anandkumar, A. 2018. Born again neural networks. arXiv preprint arXiv:1805.04770. — [arXiv:1805.04770](https://arxiv.org/abs/1805.04770) find
- Han, K. J.; Chandrashekaran, A.; Kim, J.; and Lane, I. 2017. The capio 2017 conversational speech recognition system. CoRR abs/1801.00059. — [arXiv:1801.00059](https://arxiv.org/abs/1801.00059) find
- Han, S.; Mao, H.; and Dally, W. J. 2016. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In 4th International Conference on Learning Representations, ICLR 2016. find
- He, K.; Zhang, X.; Ren, S.; and Sun, J. 2016. Deep residual learning for image recognition. In CVPR, 770–778. find
- Heo, B.; Lee, M.; Yun, S.; and Choi, J. 2018. Improving knowledge distillation with supporting adversarial samples. arXiv preprint arXiv:1805.05532. — [arXiv:1805.05532](https://arxiv.org/abs/1805.05532) find
- Hinton, G.; Vinyals, O.; and Dean, J. 2015. Distilling the knowledge in a neural network. In NIPS Deep Learning and Representation Learning Workshop. find our card
- Hu, J.; Shen, L.; and Sun, G. 2018. Squeeze-and-excitation networks. In CVPR. find
- Huang, G.; Liu, Z.; Maaten, L.; and Weinberger, K. 2017. Densely connected convolutional networks. CVPR 2261–2269. find
- Li, H.; Kadav, A.; Durdanovic, I.; Samet, H.; and Graf, H. P. 2016. Pruning filters for efficient convnets. CoRR abs/1608.08710. — [arXiv:1608.08710](https://arxiv.org/abs/1608.08710) find
- Li, H.; Xu, Z.; Taylor, G.; Studer, C.; and Goldstein, T. 2018. Visualizing the loss landscape of neural nets. In NIPS, 6391–6401. find
- Lopez-Paz, D.; Bottou, L.; Schölkopf, B.; and Vapnik, V. 2015. Unifying distillation and privileged information. arXiv preprint arXiv:1511.03643. — [arXiv:1511.03643](https://arxiv.org/abs/1511.03643) find
- Microsoft-Research. 2018. Neural network intelligence toolkit. find
- Paszke, A.; Gross, S.; Chintala, S.; and et. al. 2017. Automatic differentiation in pytorch. In NIPS Autodiff Workshop. find
- Polino, A.; Pascanu, R.; and Alistarh, D. 2018. Model compression via distillation and quantization. In ICLR. find
- Romero, A.; Ballas, N.; Kahou, S.; Chassang, A.; Gatta, C.; and Bengio, Y. 2014. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550. find
- Sau, B., and Balasubramanian, V. 2016. Deep model compression: Distilling knowledge from noisy teachers. arXiv preprint arXiv:1610.09650. — [arXiv:1610.09650](https://arxiv.org/abs/1610.09650) find
- Schmitt, S.; Hudson, J.; Zidek, A.; and et. al. 2018. Kickstarting deep reinforcement learning. CoRR abs/1803.03835. — [arXiv:1803.03835](https://arxiv.org/abs/1803.03835) find
- Tai, C.; Xiao, T.; Wang, X.; and Weinan, E. 2015. Convolutional neural networks with low-rank regularization. CoRR abs/1511.06067. — [arXiv:1511.06067](https://arxiv.org/abs/1511.06067) find
- Tarvainen, A., and Valpola, H. 2017. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS. find
- Urban, G.; Geras, K. J.; Kahou, S. E.; and et. al. 2017. Do deep convolutional nets really need to be deep and convolutional? In 5th International Conference on Learning Representations, ICLR 2017, Conference Track Proceedings. find
- Vapnik, V. 1998. Statistical learning theory. 1998, volume 3. Wiley, New York. find
- Wang, J.; Bao, W.; Sun, L.; Zhu, X.; Cao, B.; and Yu, P. S. 2018a. Private model compression via knowledge distillation. CoRR abs/1811.05072. — [arXiv:1811.05072](https://arxiv.org/abs/1811.05072) find
- Wang, X.; Zhang, R.; Sun, Y.; and Qi, J. 2018b. Kdgan: Knowledge distillation with generative adversarial networks. In NIPS, 783–794. find
- Wang, Y.; Xu, C.; Xu, C.; and Tao, D. 2018c. Adversarial learning of portable student networks. In AAAI. find
- Xu, Z.; Hsu, Y.; and Huang, J. 2018. Training shallow and thin networks for acceleration via knowledge distillation with conditional adversarial networks. In 6th International Conference on Learning Representations, ICLR 2018. find
- Yim, J.; Joo, D.; Bae, J.; and Kim, J. 2017. A gift from knowledge distillation: Fast optimization, network minimization and transfer learning. In CVPR, 7130– 7138. find
- You, S.; Xu, C.; Xu, C.; and Tao, D. 2017. Learning from multiple teacher networks. In SIGKDD, 1285–1294. ACM. find
- Yu, R.; Li, A.; Morariu, V. I.; and Davis, L. 2017. Visual relationship detection with internal and external linguistic knowledge distillation. In ICCV. find
- Yu, R.; Li, A.; Chen, C.; Lai, J.; Morariu, V.; Han, X.; Gao, M.; Lin, C.; and Davis, L. 2018. Nisp: Pruning networks using neuron importance score propagation. In CVPR. find
- Z, S., and K, N. 2016. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928. find
- Zhang, Y.; Xiang, T.; Hospedales, T.; and Lu, H. 2017. Deep mutual learning. CoRR abs/1706.00384. Network Architectures — [arXiv:1706.00384](https://arxiv.org/abs/1706.00384) find