ERNIE-Tiny : A Progressive Distillation Framework for Pretrained Transformer Compression
Not on the map. Why?
Abstract (arXiv)
Pretrained language models (PLMs) such as BERT adopt a training paradigm which first pretrain the model in general data and then finetune the model on task-specific data, and have recently achieved great success. However, PLMs are notorious for their enormous parameters and hard to be deployed on real-life applications. Knowledge distillation has been prevailing to address this problem by transferring knowledge from a large teacher to a much smaller student over a set of data. We argue that the selection of thee three key components, namely teacher, training data, and learning objective, is crucial to the effectiveness of distillation. We, therefore, propose a four-stage progressive distillation framework ERNIE-Tiny to compress PLM, which varies the three components gradually from general level to task-specific level. Specifically, the first stage, General Distillation, performs distillation with guidance from pretrained teacher, gerenal data and latent distillation loss. Then, General-Enhanced Distillation changes teacher model from pretrained teacher to finetuned teacher. After that, Task-Adaptive Distillation shifts training data from general data to task-specific data. In the end, Task-Specific Distillation, adds two additional losses, namely Soft-Label and Hard-Label loss onto the last stage. Empirical results demonstrate the effectiveness of our framework and generalization gain brought by ERNIE-Tiny.In particular, experiments show that a 4-layer ERNIE-Tiny maintains over 98.0%performance of its 12-layer teacher BERT base on GLUE benchmark, surpassing state-of-the-art (SOTA) by 1.0% GLUE score with the same amount of parameters. Moreover, ERNIE-Tiny achieves a new compression SOTA on five Chinese NLP tasks, outperforming BERT base by 0.4% accuracy with 7.5x fewer parameters and9.4x faster inference speed.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 40 of its 53 references that are in the map. First posted on arXiv 4 Jun 2021.
Builds on
40 of 53 references.
References · 40
- 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
- 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
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2016Layer Normalizationcited by 5,579
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
28 more
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019Cross-lingual Language Model Pretrainingcited by 1,088
- 2016Temporal Ensembling for Semi-Supervised Learningcited by 1,054
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 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
- 2016Regularization With Stochastic Transformations and Perturbations for Deep Semi-Supervised Learningcited by 441
- 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 301
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 230
- 2019QKD: Quantization-aware Knowledge Distillationcited by 42
- 2015Structured Transforms for Small-Footprint Deep Learningcited by 41
- 2020BERT-EMD: Many-to-Many Layer Mapping for BERT Compression with Earth Mover's Distancecited by 27
- 2018Quantization Mimic: Towards Very Tiny CNN for Object Detectioncited by 20
- 2019Knowledge distillation for optimization of quantized deep neural networkscited by 2
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 1; 2024: 3.
7 papers.
- 2021ERNIE 3.0 Titan: Exploring Larger-scale Knowledge Enhanced Pre-training for Language Understanding and Generationcited by 45
- 2022A Closer Look at Self-Supervised Lightweight Vision Transformerscited by 31
- 2022PROD: Progressive Distillation for Dense Retrievalcited by 20
- 2024NutePrune: Efficient Progressive Pruning with Numerous Teachers for Large Language Modelscited by 7
- 2023ERNIE 3.0 Tiny: Frustratingly Simple Method to Improve Task-Agnostic Distillation Generalizationcited by 3
- 2024GOVERN: Gradient Orientation Vote Ensemble for Multi-Teacher Reinforced Distillationcited by 1
- 2024GenDistiller: Distilling Pre-trained Language Models based on an Autoregressive Generative Modelcited by 0
- 2024GenDistiller: Distilling Pre-trained Language Models based on an Autoregressive Generative Model12 Jun 2024
- 2024GOVERN: Gradient Orientation Vote Ensemble for Multi-Teacher Reinforced Distillation6 May 2024
- 2024NutePrune: Efficient Progressive Pruning with Numerous Teachers for Large Language Models15 Feb 2024
- 2023ERNIE 3.0 Tiny: Frustratingly Simple Method to Improve Task-Agnostic Distillation Generalization9 Jan 2023
- 2022PROD: Progressive Distillation for Dense Retrieval27 Sep 2022
- 2022A Closer Look at Self-Supervised Lightweight Vision Transformers28 May 2022
- 2021ERNIE 3.0 Titan: Exploring Larger-scale Knowledge Enhanced Pre-training for Language Understanding and Generation23 Dec 2021