Knowledge Distillation of Transformer-based Language Models Revisited
Not on the map. Why?
Abstract (arXiv)
In the past few years, transformer-based pre-trained language models have achieved astounding success in both industry and academia. However, the large model size and high run-time latency are serious impediments to applying them in practice, especially on mobile phones and Internet of Things (IoT) devices. To compress the model, considerable literature has grown up around the theme of knowledge distillation (KD) recently. Nevertheless, how KD works in transformer-based models is still unclear. We tease apart the components of KD and propose a unified KD framework. Through the framework, systematic and extensive experiments that spent over 23,000 GPU hours render a comprehensive analysis from the perspectives of knowledge types, matching strategies, width-depth trade-off, initialization, model size, etc. Our empirical results shed light on the distillation in the pre-train language model and with relative significant improvement over previous state-of-the-arts(SOTA). Finally, we provide a best-practice guideline for the KD in transformer-based models.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 46 of its 62 references that are in the map. First posted on arXiv 29 Jun 2022.
Builds on
46 of 62 references.
References · 46
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
34 more
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2014FitNets: Hints for Thin Deep Netscited by 1,619
- 2020Knowledge Distillation: A Surveycited by 1,578
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,059
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019When Does Label Smoothing Help?cited by 985
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019Relational Knowledge Distillationcited by 873
- 2019Contrastive Representation Distillationcited by 734
- 2019Improved Knowledge Distillation via Teacher Assistantcited by 567
- 2019Similarity-Preserving Knowledge Distillationcited by 507
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2013Do Deep Nets Really Need to be Deep?cited by 466
- 2019Variational Information Distillation for Knowledge Transfercited by 321
- 2018SentEval: An Evaluation Toolkit for Universal Sentence Representationscited by 294
- 2018Paraphrasing Complex Network: Network Compression via Factor Transfercited by 255
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2020Revisiting Few-sample BERT Fine-tuningcited by 237
- 2015Convergent Learning: Do different neural networks learn the same representations?cited by 215
- 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
- 2020Lite Transformer with Long-Short Range Attentioncited by 127
- 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 118
- 2021M6: A Chinese Multimodal Pretrainercited by 91
- 2020ALP-KD: Attention-Based Layer Projection for Knowledge Distillationcited by 65
- 2018MEAL: Multi-Model Ensemble via Adversarial Learningcited by 52
- 2020MEAL V2: Boosting Vanilla ResNet-50 to 80%+ Top-1 Accuracy on ImageNet without Trickscited by 39
- 2020TextBrewer: An Open-Source Knowledge Distillation Toolkit for Natural Language Processingcited by 25
- 2022EdgeFormer: A Parameter-Efficient Transformer for On-Device Seq2seq Generationcited by 21
- 2020NPAS: A Compiler-aware Framework of Unified Network Pruning and Architecture Search for Beyond Real-Time Mobile Accelerationcited by 16
- 2019Adaptive Regularization of Labelscited by 15
Built on by
Citing papers per year: 2023: 5; 2024: 4; 2025: 2.
11 papers.
- 2024Compact Language Models via Pruning and Knowledge Distillationcited by 142
- 2023Latent Feature-Guided Diffusion Models for Shadow Removalcited by 28
- 2024EDA-DM: Enhanced Distribution Alignment for Post-Training Quantization of Diffusion Modelscited by 23
- 2024Puzzle: Distillation-Based NAS for Inference-Optimized LLMscited by 17
- 2025CacheQuant: Comprehensively Accelerated Diffusion Modelscited by 13
- 2023Beyond Generic: Enhancing Image Captioning with Real-World Knowledge using Vision-Language Pre-Training Modelcited by 10
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectivescited by 9
- 2023DistilXLSR: A Light Weight Cross-Lingual Speech Representation Modelcited by 1
- 2024Knowledge Distillation vs. Pretraining from Scratch under a Fixed (Computation) Budgetcited by 1
- 2025SlimDiff: Training-Free, Activation-Guided Hands-free Slimming of Diffusion Modelscited by 1
- 2023Unraveling Key Factors of Knowledge Distillationcited by 0
- 2025SlimDiff: Training-Free, Activation-Guided Hands-free Slimming of Diffusion Models25 Sep 2025
- 2025CacheQuant: Comprehensively Accelerated Diffusion Models3 Mar 2025
- 2024Puzzle: Distillation-Based NAS for Inference-Optimized LLMs28 Nov 2024
- 2024Compact Language Models via Pruning and Knowledge Distillation19 Jul 2024
- 2024Knowledge Distillation vs. Pretraining from Scratch under a Fixed (Computation) Budget30 Apr 2024
- 2024EDA-DM: Enhanced Distribution Alignment for Post-Training Quantization of Diffusion Models9 Jan 2024
- 2023Unraveling Key Factors of Knowledge Distillation14 Dec 2023
- 2023Latent Feature-Guided Diffusion Models for Shadow Removal4 Dec 2023
- 2023Beyond Generic: Enhancing Image Captioning with Real-World Knowledge using Vision-Language Pre-Training Model2 Aug 2023
- 2023DistilXLSR: A Light Weight Cross-Lingual Speech Representation Model2 Jun 2023
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectives24 May 2023