Extract then Distill: Efficient and Effective Task-Agnostic BERT Distillation
Not on the map. Why?
Abstract (arXiv)
Task-agnostic knowledge distillation, a teacher-student framework, has been proved effective for BERT compression. Although achieving promising results on NLP tasks, it requires enormous computational resources. In this paper, we propose Extract Then Distill (ETD), a generic and flexible strategy to reuse the teacher's parameters for efficient and effective task-agnostic distillation, which can be applied to students of any size. Specifically, we introduce two variants of ETD, ETD-Rand and ETD-Impt, which extract the teacher's parameters in a random manner and by following an importance metric respectively. In this way, the student has already acquired some knowledge at the beginning of the distillation process, which makes the distillation process converge faster. We demonstrate the effectiveness of ETD on the GLUE benchmark and SQuAD. The experimental results show that: (1) compared with the baseline without an ETD strategy, ETD can save 70% of computation cost. Moreover, it achieves better results than the baseline when using the same computing resource. (2) ETD is generic and has been proven effective for different distillation methods (e.g., TinyBERT and MiniLM) and students of different sizes. The source code will be publicly available upon publication.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 27 of its 31 references that are in the map. First posted on arXiv 24 Apr 2021.
Builds on
27 of 31 references.
References · 27
- 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
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 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
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
15 more
- 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
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2019Distilling Task-Specific Knowledge from BERT into Simple Neural Networkscited by 152
- 2020Know What You Don't Need: Single-Shot Meta-Pruning for Attention Headscited by 16
- 2020Optimal Subarchitecture Extraction For BERTcited by 9
- 2020Improving Task-Agnostic BERT Distillation with Layer Mapping Searchcited by 8
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 1; 2024: 2.
6 papers.
- 2021bert2BERT: Towards Reusable Pretrained Language Modelscited by 70
- 2021AutoTinyBERT: Automatic Hyper-parameter Optimization for Efficient Pre-trained Language Modelscited by 31
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformerscited by 25
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Modelscited by 9
- 2024Towards Incremental Learning in Large Language Models: A Critical Reviewcited by 6
- 2024VTrans: Accelerating Transformer Compression with Variational Information Bottleneck based Pruningcited by 3
- 2024VTrans: Accelerating Transformer Compression with Variational Information Bottleneck based Pruning7 Jun 2024
- 2024Towards Incremental Learning in Large Language Models: A Critical Review28 Apr 2024
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformers19 Feb 2023
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Models15 Dec 2022
- 2021bert2BERT: Towards Reusable Pretrained Language Models14 Oct 2021
- 2021AutoTinyBERT: Automatic Hyper-parameter Optimization for Efficient Pre-trained Language Models29 Jul 2021