mlsanityData to 7 Oct 2026

SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference

arXiv 2303.09266 ↗First posted 16 Mar 2023cs.CL cs.AI cs.LGcited by 9

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  8. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  9. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  12. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
16 more
  1. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  2. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  3. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  4. 2020Graph Contrastive Learning with Augmentationscited by 1,203
  5. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  6. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  7. 2018Neural Network Acceptability Judgmentscited by 952
  8. 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 697
  9. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
  10. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
  11. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  12. 2015Highway Networkscited by 257
  13. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
  14. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
  15. 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
  16. 2022RoSA: A Robust Self-Aligned Framework for Node-Node Graph Contrastive Learningcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 6; 2025: 1; 2026: 1.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2021Elbert: Fast Albert with Confidence-Window Based Early Exit
  2. 2021RomeBERT: Robust Training of Multi-Exit BERT
  3. 2024CEEBERT: Cross-Domain Inference in Early Exit BERT
  4. 2024DE3-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks
  5. 2021Accelerating BERT Inference for Sequence Labeling via Early-Exit
  6. 2022HuBERT-EE: Early Exiting HuBERT for Efficient Speech Recognition
  7. 2025NeoBERT: A Next-Generation BERT
  8. 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inference