Understanding and Improving Knowledge Distillation for Quantization-Aware Training of Large Transformer Encoders
Not on the map. Why?
Abstract (arXiv)
Knowledge distillation (KD) has been a ubiquitous method for model compression to strengthen the capability of a lightweight model with the transferred knowledge from the teacher. In particular, KD has been employed in quantization-aware training (QAT) of Transformer encoders like BERT to improve the accuracy of the student model with the reduced-precision weight parameters. However, little is understood about which of the various KD approaches best fits the QAT of Transformers. In this work, we provide an in-depth analysis of the mechanism of KD on attention recovery of quantized large Transformers. In particular, we reveal that the previously adopted MSE loss on the attention score is insufficient for recovering the self-attention information. Therefore, we propose two KD methods; attention-map and attention-output losses. Furthermore, we explore the unification of both losses to address task-dependent preference between attention-map and output losses. The experimental results on various Transformer encoder models demonstrate that the proposed KD methods achieve state-of-the-art accuracy for QAT with sub-2-bit weight quantization.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 28 of its 33 references that are in the map. First posted on arXiv 20 Nov 2022.
Builds on
28 of 33 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 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
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 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
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
16 more
- 2022How Do Vision Transformers Work?cited by 305
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2021Post-Training Quantization for Vision Transformercited by 274
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
- 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 145
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 139
- 2021Comparing Kullback-Leibler Divergence and Mean Squared Error Loss in Knowledge Distillationcited by 131
- 2021KLUE: Korean Language Understanding Evaluationcited by 113
- 2019Knowledge Distillation from Internal Representationscited by 87
- 2019Efficient 8-Bit Quantization of Transformer Neural Machine Language Translation Modelcited by 58
- 2022DQ-BART: Efficient Sequence-to-Sequence Model via Joint Distillation and Quantizationcited by 23
- 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantizationcited by 14
- 2021Marginal Utility Diminishes: Exploring the Minimum Knowledge for BERT Knowledge Distillationcited by 6
Built on by
Citing papers per year: 2023: 4; 2024: 2; 2025: 1; 2026: 4.
11 papers.
- 2023A Survey on Model Compression for Large Language Modelscited by 263
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2024BitDistiller: Unleashing the Potential of Sub-4-Bit LLMs via Self-Distillationcited by 80
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Modelscited by 20
- 2023Accurate Retraining-free Pruning for Pretrained Encoder-based Language Modelscited by 11
- 2025AdaSwitch: Balancing Exploration and Guidance in Knowledge Distillation via Adaptive Switchingcited by 4
- 2026SEPTQ: A Simple and Effective Post-Training Quantization Paradigm for Large Language Modelscited by 1
- 2026FTerViT: Fully Ternary Vision Transformercited by 0
- 2026OffQ: Taming Structured Outliers in LLM Quantization by Offsettingcited by 0
- 2026A Target-Centric Survey of Quantization-Aware Trainingcited by 0
- 2026A Target-Centric Survey of Quantization-Aware Training30 Aug 2026
- 2026OffQ: Taming Structured Outliers in LLM Quantization by Offsetting5 Jun 2026
- 2026FTerViT: Fully Ternary Vision Transformer20 May 2026
- 2026SEPTQ: A Simple and Effective Post-Training Quantization Paradigm for Large Language Models11 Apr 2026
- 2025AdaSwitch: Balancing Exploration and Guidance in Knowledge Distillation via Adaptive Switching9 Oct 2025
- 2024BitDistiller: Unleashing the Potential of Sub-4-Bit LLMs via Self-Distillation16 Feb 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2023A Survey on Model Compression for Large Language Models15 Aug 2023
- 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Models13 Aug 2023
- 2023Accurate Retraining-free Pruning for Pretrained Encoder-based Language Models7 Aug 2023
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing22 Jun 2023