Marginal Utility Diminishes: Exploring the Minimum Knowledge for BERT Knowledge Distillation
On the map: Knowledge distillation → Knowledge distillation for LLMs
Abstract (arXiv)
Recently, knowledge distillation (KD) has shown great success in BERT compression. Instead of only learning from the teacher's soft label as in conventional KD, researchers find that the rich information contained in the hidden layers of BERT is conducive to the student's performance. To better exploit the hidden knowledge, a common practice is to force the student to deeply mimic the teacher's hidden states of all the tokens in a layer-wise manner. In this paper, however, we observe that although distilling the teacher's hidden state knowledge (HSK) is helpful, the performance gain (marginal utility) diminishes quickly as more HSK is distilled. To understand this effect, we conduct a series of analysis. Specifically, we divide the HSK of BERT into three dimensions, namely depth, length and width. We first investigate a variety of strategies to extract crucial knowledge for each single dimension and then jointly compress the three dimensions. In this way, we show that 1) the student's performance can be improved by extracting and distilling the crucial HSK, and 2) using a tiny fraction of HSK can achieve the same performance as extensive HSK distillation. Based on the second finding, we further propose an efficient KD paradigm to compress BERT, which does not require loading the teacher during the training of student. For two kinds of student models and computing devices, the proposed KD paradigm gives rise to training speedup of 2.7x ~ 3.4x.
Key facts. Cited by 6 papers in the map (data through 13 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 25 of its 30 references that are in the map. First posted on arXiv 10 Jun 2021.
Builds on
25 of 30 references.
References · 25
- 2017Attention Is All You Needcited by 60,106
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2015Distilling the Knowledge in a Neural Networkcited by 10,180
- 2016Layer Normalizationcited by 5,624
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,315
- 2014FitNets: Hints for Thin Deep Netscited by 1,631
- 2020Knowledge Distillation: A Surveycited by 1,590
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,473
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,435
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,157
13 more
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 999
- 2019Attention is not not Explanationcited by 633
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 504
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 480
- 2019Is Attention Interpretable?cited by 388
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 247
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
- 2019On Identifiability in Transformerscited by 116
- 2020ALP-KD: Attention-Based Layer Projection for Knowledge Distillationcited by 65
- 2020BERT-EMD: Many-to-Many Layer Mapping for BERT Compression with Earth Mover's Distancecited by 27
- 2020Why Skip If You Can Combine: A Simple Knowledge Distillation Technique for Intermediate Layerscited by 24
- 2021ROSITA: Refined BERT cOmpreSsion with InTegrAted techniquescited by 14
Built on by
Citing papers per year: 2022: 3; 2023: 3.
6 papers.
- 2023A Survey on Model Compression for Large Language Modelscited by 268
- 2023GKD: A General Knowledge Distillation Framework for Large-scale Pre-trained Language Modelcited by 15
- 2022Understanding and Improving Knowledge Distillation for Quantization-Aware Training of Large Transformer Encoderscited by 11
- 2022Learning to Win Lottery Tickets in BERT Transfer via Task-agnostic Mask Trainingcited by 10
- 2022A Win-win Deal: Towards Sparse and Robust Pre-trained Language Modelscited by 7
- 2023Are Intermediate Layers and Labels Really Necessary? A General Language Model Distillation Methodcited by 0
- 2023A Survey on Model Compression for Large Language Models15 Aug 2023
- 2023GKD: A General Knowledge Distillation Framework for Large-scale Pre-trained Language Model11 Jun 2023
- 2023Are Intermediate Layers and Labels Really Necessary? A General Language Model Distillation Method11 Jun 2023
- 2022Understanding and Improving Knowledge Distillation for Quantization-Aware Training of Large Transformer Encoders20 Nov 2022
- 2022A Win-win Deal: Towards Sparse and Robust Pre-trained Language Models11 Oct 2022
- 2022Learning to Win Lottery Tickets in BERT Transfer via Task-agnostic Mask Training24 Apr 2022