Accelerating Large Language Model Inference with Self-Supervised Early Exits
Summary
This paper introduces a self-supervised early exit method for LLMs, allowing computation to stop early at intermediate layers when confidence is high, thereby reducing inference cost. It also presents Dynamic Self-Speculative Decoding (DSSD) which achieves higher token acceptance than existing baselines.
View Cached Full Text
Cached at: 07/13/26, 08:00 AM
# Accelerating Large Language Model Inference with Self-Supervised Early Exits Source: [https://arxiv.org/abs/2407.21082](https://arxiv.org/abs/2407.21082) ## Computer Science \> Computation and Language **arXiv:2407\.21082**\(cs\) \[Submitted on 30 Jul 2024 \([v1](https://arxiv.org/abs/2407.21082v1)\), last revised 10 Jul 2026 \(this version, v3\)\] [View PDF](https://arxiv.org/pdf/2407.21082) > Abstract:This paper presents a modular approach to accelerate inference in large language models \(LLMs\) by adding early exit heads at intermediate transformer layers\. Each head is trained in a self\-supervised manner to mimic the main model's predictions, allowing computation to stop early when a calibrated confidence threshold is reached\. We evaluate several confidence metrics and show that entropy provides the most reliable separation between correct and incorrect predictions\. Experiments on the Pythia model suite \(70M to 2\.8B parameters\) demonstrate that our method significantly reduces inference cost while maintaining accuracy across multiple benchmarks\. We further adapt this approach to speculative decoding, introducing Dynamic Self\-Speculative Decoding \(DSSD\), which achieves 1\.66x higher token acceptance than manually\-tuned LayerSkip baselines with minimal hyperparameter tuning\. ## Submission history From: florian valade \[[view email](https://arxiv.org/show-email/5fa99cf3/2407.21082)\] \[via CCSD proxy\] **[\[v1\]](https://arxiv.org/abs/2407.21082v1)**Tue, 30 Jul 2024 07:58:28 UTC \(7,190 KB\) **[\[v2\]](https://arxiv.org/abs/2407.21082v2)**Thu, 12 Feb 2026 09:41:15 UTC \(8,307 KB\) **\[v3\]**Fri, 10 Jul 2026 12:19:50 UTC \(1,154 KB\) Bibliographic Tools ## Bibliographic and Citation Tools Bibliographic Explorer Toggle Code, Data, Media ## Code, Data and Media Associated with this Article Demos ## Demos Related Papers ## Recommenders and Search Tools About arXivLabs ## arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website\. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy\. arXiv is committed to these values and only works with partners that adhere to them\. Have an idea for a project that will add value for arXiv's community?[**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html)\.
Similar Articles
Experience-Driven Dynamic Exits for LLMs with Reinforcement Learning
Introduces LEDE, a framework using offline reinforcement learning to dynamically select exit layers and speculation lengths for self-speculative decoding in LLMs, achieving up to 2.7x speedup over autoregressive decoding.
LEAP: Unlocking dLLM Parallelism via Lookahead Early-Convergence Token Detection
This paper introduces LEAP, a training-free method to accelerate inference in Diffusion Language Models (dLLMs) by detecting early-converging tokens, reducing denoising steps by 30% without losing accuracy.
Two-dimensional early exit optimisation of LLM inference
Authors propose a 2D early-exit method that jointly trims layers and input sentences, yielding 1.4–2.3× extra speed-up on sentiment tasks across Llama 3.1/3.2, Gemma and Qwen models.
River-LLM: Large Language Model Seamless Exit Based on KV Share
River-LLM proposes a training-free early-exit framework for decoder-only LLMs that uses KV-sharing to eliminate KV-cache gaps, achieving 1.71–2.16× speedup without quality loss.
Efficient Diffusion LLMs via Temporal-Spatial Parallel Decoding and Confidence Extrapolation
This paper introduces Temporal-Spatial Parallel Decoding (TSPD) and Confidence Extrapolation (CE) to accelerate inference in diffusion-based large language models by dynamically deciding when tokens have converged and forecasting logit trends, reducing unnecessary denoising steps while preserving output quality.