SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference
On the map: Efficient LLM inference and serving → Early exit and edge inference
Abstract (arXiv)
Dynamic early exiting has been proven to improve the inference speed of the pre-trained language model like BERT. However, all samples must go through all consecutive layers before early exiting and more complex samples usually go through more layers, which still exists redundant computation. In this paper, we propose a novel dynamic early exiting combined with layer skipping for BERT inference named SmartBERT, which adds a skipping gate and an exiting operator into each layer of BERT. SmartBERT can adaptively skip some layers and adaptively choose whether to exit. Besides, we propose cross-layer contrastive learning and combine it into our training phases to boost the intermediate layers and classifiers which would be beneficial for early exiting. To keep the consistent usage of skipping gates between training and inference phases, we propose a hard weight mechanism during training phase. We conduct experiments on eight classification datasets of the GLUE benchmark. Experimental results show that SmartBERT achieves 2-3x computation reduction with minimal accuracy drops compared with BERT and our method outperforms previous methods in both efficiency and accuracy. Moreover, in some complex datasets like RTE and WNLI, we prove that the early exiting based on entropy hardly works, and the skipping mechanism is essential for reducing computation.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 28 of its 45 references that are in the map. First posted on arXiv 16 Mar 2023.
Builds on
28 of 45 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 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
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
16 more
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2020Graph Contrastive Learning with Augmentationscited by 1,203
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2018Neural Network Acceptability Judgmentscited by 952
- 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 697
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2015Highway Networkscited by 257
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
- 2022RoSA: A Robust Self-Aligned Framework for Node-Node Graph Contrastive Learningcited by 12
Built on by
Citing papers per year: 2023: 1; 2024: 6; 2025: 1; 2026: 1.
9 papers.
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
- 2024Efficient Tuning and Inference for Large Language Models on Textual Graphscited by 54
- 2024CE-CoLLM: Efficient and Adaptive Large Language Models Through Cloud-Edge Collaborationcited by 25
- 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Modelscited by 13
- 2024Routing Experts: Learning to Route Dynamic Experts in Multi-modal Large Language Modelscited by 13
- 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Modelscited by 5
- 2024DAISY: Data Adaptive Self-Supervised Early Exit for Speech Representation Modelscited by 4
- 2025Efficient Large Language Models with Zero-Shot Adjustable Accelerationcited by 0
- 2026FrankenReport: Early Exiting in Long-Form Generation Using Expected Value of Computationcited by 0
- 2026FrankenReport: Early Exiting in Long-Form Generation Using Expected Value of Computation6 Sep 2026
- 2025Efficient Large Language Models with Zero-Shot Adjustable Acceleration1 Sep 2025
- 2024CE-CoLLM: Efficient and Adaptive Large Language Models Through Cloud-Edge Collaboration5 Nov 2024
- 2024Routing Experts: Learning to Route Dynamic Experts in Multi-modal Large Language Models19 Jul 2024
- 2024DAISY: Data Adaptive Self-Supervised Early Exit for Speech Representation Models8 Jun 2024
- 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Models15 May 2024
- 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Models1 Feb 2024
- 2024Efficient Tuning and Inference for Large Language Models on Textual Graphs28 Jan 2024
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelism8 Dec 2023
Similar, not cited
Close in wording, no citation either way
- 2021Elbert: Fast Albert with Confidence-Window Based Early Exit
- 2021RomeBERT: Robust Training of Multi-Exit BERT
- 2024CEEBERT: Cross-Domain Inference in Early Exit BERT
- 2024DE3-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks
- 2021Accelerating BERT Inference for Sequence Labeling via Early-Exit
- 2022HuBERT-EE: Early Exiting HuBERT for Efficient Speech Recognition
- 2025NeoBERT: A Next-Generation BERT
- 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inference