mlsanityData to 7 Oct 2026

ERNIE-Tiny : A Progressive Distillation Framework for Pretrained Transformer Compression

arXiv 2106.02241 ↗First posted 4 Jun 2021cs.CLcited by 7

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  7. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  8. 2020Scaling Laws for Neural Language Modelscited by 6,411
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  10. 2016Layer Normalizationcited by 5,579
  11. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  12. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
28 more
  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  2. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  3. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  4. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  5. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  6. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  8. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  9. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  10. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  11. 2019Cross-lingual Language Model Pretrainingcited by 1,088
  12. 2016Temporal Ensembling for Semi-Supervised Learningcited by 1,054
  13. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  14. 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
  15. 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
  16. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
  17. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  18. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  19. 2013Do Deep Nets Really Need to be Deep?cited by 466
  20. 2016Regularization With Stochastic Transformations and Perturbations for Deep Semi-Supervised Learningcited by 441
  21. 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 301
  22. 2019Revealing the Dark Secrets of BERTcited by 300
  23. 2019ERNIE 2.0: A Continual Pre-training Framework for Language Understandingcited by 230
  24. 2019QKD: Quantization-aware Knowledge Distillationcited by 42
  25. 2015Structured Transforms for Small-Footprint Deep Learningcited by 41
  26. 2020BERT-EMD: Many-to-Many Layer Mapping for BERT Compression with Earth Mover's Distancecited by 27
  27. 2018Quantization Mimic: Towards Very Tiny CNN for Object Detectioncited by 20
  28. 2019Knowledge distillation for optimization of quantized deep neural networkscited by 2

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 2; 2023: 1; 2024: 3.

7 papers.