TrimBERT: Tailoring BERT for Trade-offs
Not on the map. Why?
Abstract (arXiv)
Models based on BERT have been extremely successful in solving a variety of natural language processing (NLP) tasks. Unfortunately, many of these large models require a great deal of computational resources and/or time for pre-training and fine-tuning which limits wider adoptability. While self-attention layers have been well-studied, a strong justification for inclusion of the intermediate layers which follow them remains missing in the literature. In this work, we show that reducing the number of intermediate layers in BERT-Base results in minimal fine-tuning accuracy loss of downstream tasks while significantly decreasing model size and training time. We further mitigate two key bottlenecks, by replacing all softmax operations in the self-attention layers with a computationally simpler alternative and removing half of all layernorm operations. This further decreases the training time while maintaining a high level of fine-tuning accuracy.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 20 of its 21 references that are in the map. First posted on arXiv 24 Feb 2022.
Builds on
20 of 21 references.
References · 20
- 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
- 2016Layer Normalizationcited by 5,579
- 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
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018Deep contextualized word representationscited by 2,285
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
8 more
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2019Understanding and Improving Layer Normalizationcited by 213
- 2019Fixup Initialization: Residual Learning Without Normalizationcited by 194
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2019Improving Transformer Models by Reordering their Sublayerscited by 52
- 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 52
- 2020Normalized Attention Without Probability Cagecited by 19
Built on by
Citing papers per year: 2022: 1; 2023: 2.
3 papers.
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2023Simplifying Transformer Blockscited by 37
- 2023Sensi-BERT: Towards Sensitivity Driven Fine-Tuning for Parameter-Efficient BERTcited by 2
- 2023Simplifying Transformer Blocks3 Nov 2023
- 2023Sensi-BERT: Towards Sensitivity Driven Fine-Tuning for Parameter-Efficient BERT14 Jul 2023
- 2022Cramming: Training a Language Model on a Single GPU in One Day28 Dec 2022