DE3-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks
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
- 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference19 Dec
- 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models14 Mar
- 2022A Simple Hash-Based Early Exiting Approach For Language Understanding and Generation3 Mar
- 2021Accelerating BERT Inference for Sequence Labeling via Early-Exit28 May
Other references · 32
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 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
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
20 more
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 167
- 2015Fixed Point Quantization of Deep Convolutional Networkscited by 141
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
- 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 118
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2022Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysiscited by 104
- 2020CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascadecited by 47
- 2021Subformer: Exploring Weight Sharing for Parameter Efficiency in Generative Transformerscited by 42
- 2021Revealing the Distributional Vulnerability of Discriminators by Implicit Generatorscited by 10
- 2021Adaptive Prototypical Networks with Label Words and Joint Representation Learning for Few-Shot Relation Classificationcited by 7
- 2022CAMERO: Consistency Regularized Ensemble of Perturbed Language Models with Weight Sharingcited by 6
- 2020Prototype-based interpretation of the functionality of neurons in winner-take-all neural networkscited by 5
- 2022Multi-level Distillation of Semantic Knowledge for Pre-training Multilingual Language Modelcited by 3
- 2022Reconciliation of Pre-trained Models and Prototypical Neural Networks in Few-shot Named Entity Recognitioncited by 1
- 2023HiSSNet: Sound Event Detection and Speaker Identification via Hierarchical Prototypical Networks for Low-Resource Headphonescited by 1
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projectioncited by 2
- 2025EPSILON: Adaptive Fault Mitigation in Approximate Deep Neural Network using Statistical Signaturescited by 0
- 2025HatePrototypes: Interpretable and Transferable Representations for Implicit and Explicit Hate Speech Detectioncited by 0
- 2025HatePrototypes: Interpretable and Transferable Representations for Implicit and Explicit Hate Speech Detection9 Nov 2025
- 2025Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection8 Jun 2025
- 2025EPSILON: Adaptive Fault Mitigation in Approximate Deep Neural Network using Statistical Signatures24 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2023SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference
- 2024CEEBERT: Cross-Domain Inference in Early Exit BERT
- 2021RomeBERT: Robust Training of Multi-Exit BERT
- 2021Elbert: Fast Albert with Confidence-Window Based Early Exit
- 2026The Diminishing Returns of Early-Exit Decoding in Modern LLMs
- 2023Revisiting Token Dropping Strategy in Efficient BERT Pretraining
- 2022Token Dropping for Efficient BERT Pretraining
- 2024RAEE: A Robust Retrieval-Augmented Early Exit Framework for Efficient Inference