mlsanityData to 7 Oct 2026

DE3-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks

arXiv 2402.05948 ↗First posted 3 Feb 2024cs.LG cs.CLcited by 3

On the map: Efficient LLM inference and serving → Early exit and edge inference

Abstract (arXiv)

Early exiting has demonstrated its effectiveness in accelerating the inference of pre-trained language models like BERT by dynamically adjusting the number of layers executed. However, most existing early exiting methods only consider local information from an individual test sample to determine their exiting indicators, failing to leverage the global information offered by sample population. This leads to suboptimal estimation of prediction correctness, resulting in erroneous exiting decisions. To bridge the gap, we explore the necessity of effectively combining both local and global information to ensure reliable early exiting during inference. Purposefully, we leverage prototypical networks to learn class prototypes and devise a distance metric between samples and class prototypes. This enables us to utilize global information for estimating the correctness of early predictions. On this basis, we propose a novel Distance-Enhanced Early Exiting framework for BERT (DE3-BERT). DE3-BERT implements a hybrid exiting strategy that supplements classic entropy-based local information with distance-based global information to enhance the estimation of prediction correctness for more reliable early exiting decisions. Extensive experiments on the GLUE benchmark demonstrate that DE3-BERT consistently outperforms state-of-the-art models under different speed-up ratios with minimal storage or computational overhead, yielding a better trade-off between model performance and inference efficiency. Additionally, an in-depth analysis further validates the generality and interpretability of our method.

Key facts. Cited by 3 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 36 of its 67 references that are in the map. First posted on arXiv 3 Feb 2024.

Builds on

36 of 67 references.

Closest ancestors · 4

Same direction, newest first

  1. 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference19 Dec
  2. 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models14 Mar
  3. 2022A Simple Hash-Based Early Exiting Approach For Language Understanding and Generation3 Mar
  4. 2021Accelerating BERT Inference for Sequence Labeling via Early-Exit28 May

Other references · 32

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2017Prototypical Networks for Few-shot Learningcited by 3,001
  7. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  8. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  9. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  10. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  11. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  12. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
20 more
  1. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  2. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
  3. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
  4. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
  5. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
  6. 2022Structured Pruning Learns Compact and Accurate Modelscited by 167
  7. 2015Fixed Point Quantization of Deep Convolutional Networkscited by 141
  8. 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
  9. 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 118
  10. 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
  11. 2022Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysiscited by 104
  12. 2020CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascadecited by 47
  13. 2021Subformer: Exploring Weight Sharing for Parameter Efficiency in Generative Transformerscited by 42
  14. 2021Revealing the Distributional Vulnerability of Discriminators by Implicit Generatorscited by 10
  15. 2021Adaptive Prototypical Networks with Label Words and Joint Representation Learning for Few-Shot Relation Classificationcited by 7
  16. 2022CAMERO: Consistency Regularized Ensemble of Perturbed Language Models with Weight Sharingcited by 6
  17. 2020Prototype-based interpretation of the functionality of neurons in winner-take-all neural networkscited by 5
  18. 2022Multi-level Distillation of Semantic Knowledge for Pre-training Multilingual Language Modelcited by 3
  19. 2022Reconciliation of Pre-trained Models and Prototypical Neural Networks in Few-shot Named Entity Recognitioncited by 1
  20. 2023HiSSNet: Sound Event Detection and Speaker Identification via Hierarchical Prototypical Networks for Low-Resource Headphonescited by 1

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference
  2. 2024CEEBERT: Cross-Domain Inference in Early Exit BERT
  3. 2021RomeBERT: Robust Training of Multi-Exit BERT
  4. 2021Elbert: Fast Albert with Confidence-Window Based Early Exit
  5. 2026The Diminishing Returns of Early-Exit Decoding in Modern LLMs
  6. 2023Revisiting Token Dropping Strategy in Efficient BERT Pretraining
  7. 2022Token Dropping for Efficient BERT Pretraining
  8. 2024RAEE: A Robust Retrieval-Augmented Early Exit Framework for Efficient Inference