Dynamic-TinyBERT: Boost TinyBERT's Inference Efficiency by Dynamic Sequence Length
Not on the map. Why?
Abstract (arXiv)
Limited computational budgets often prevent transformers from being used in production and from having their high accuracy utilized. TinyBERT addresses the computational efficiency by self-distilling BERT into a smaller transformer representation having fewer layers and smaller internal embedding. However, TinyBERT's performance drops when we reduce the number of layers by 50%, and drops even more abruptly when we reduce the number of layers by 75% for advanced NLP tasks such as span question answering. Additionally, a separate model must be trained for each inference scenario with its distinct computational budget. In this work we present Dynamic-TinyBERT, a TinyBERT model that utilizes sequence-length reduction and Hyperparameter Optimization for enhanced inference efficiency per any computational budget. Dynamic-TinyBERT is trained only once, performing on-par with BERT and achieving an accuracy-speedup trade-off superior to any other efficient approaches (up to 3.3x with <1% loss-drop). Upon publication, the code to reproduce our work will be open-sourced.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 12 of its 14 references that are in the map. First posted on arXiv 18 Nov 2021.
Builds on
12 of 14 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 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
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2013Do Deep Nets Really Need to be Deep?cited by 466
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
- 2020Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Searchcited by 76
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 1.
4 papers.
- 2022TangoBERT: Reducing Inference Cost by using Cascaded Architecturecited by 13
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systemscited by 2
- 2024Inference Optimizations for Large Language Models: Effects, Challenges, and Practical Considerationscited by 2
- 2022QuaLA-MiniLM: a Quantized Length Adaptive MiniLMcited by 1
- 2024Inference Optimizations for Large Language Models: Effects, Challenges, and Practical Considerations6 Aug 2024
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022QuaLA-MiniLM: a Quantized Length Adaptive MiniLM31 Oct 2022
- 2022TangoBERT: Reducing Inference Cost by using Cascaded Architecture13 Apr 2022