ADEPT: Adaptive Dynamic Early-Exit Process for Transformers

Sangmin Yoo, Srikanth Malla, Chiho Choi, Wei D. Lu, Joon Hee ChoiarXiv 2026

TL;DR

ADEPT (Adaptive Dynamic Early-exit Process for Transformers) introduces a novel token-level early-exit framework that dynamically halts computation based on token complexity during both the prefill and generation phases. By decoupling and parallelizing the Key-Value (KV) cache generation for skipped layers, ADEPT bypasses heavy attention and feedforward blocks, delivering up to 25% computational savings in language modeling and a 4× speedup in classification tasks without sacrificing performance.

What Problem Does This Paper Address?

Large Language Models (LLMs) achieve remarkable performance but demand massive computational resources, processing billions of parameters layer by layer. "Early-exit" strategies aim to alleviate this burden by stopping a token's journey through the network early if the model is already confident in its prediction.

However, existing early-exit methods hit a fundamental bottleneck during autoregressive token generation. Standard Transformer self-attention relies on a Key-Value (KV) cache accumulated from every layer of preceding tokens. If a token exits early and skips the remaining layers, the KV cache for those skipped layers is never generated. This breaks the sequential dependency for subsequent tokens, rendering token-level early exits impractical during generation. As a result, previous methods were limited to prompt-level exits or only exiting on the very first generated token.

Methods

ADEPT overcomes the KV cache bottleneck through a three-pronged approach:

  1. Token-level Early-Exit Policy: Instead of making a blanket decision for an entire prompt, ADEPT evaluates each token individually. It measures "state convergence" by tracking the cumulative history (inertia) of a token's hidden states across layers. If the current hidden state aligns closely with its historical trajectory (calculated via an inner product similarity metric against a threshold $\delta$), the token exits early.
  2. Hidden State Mapper (HSM): When a token exits at an intermediate layer, a lightweight, shared add-on module called the HSM projects the early hidden state to approximate what the final hidden state ($\tilde{s}^h_{N,J}$) would look like at the last layer ($N$).
  3. Decoupled KV Generation: Crucially, ADEPT uses this predicted final hidden state to generate the missing KV representations for all skipped layers in parallel. By doing so, it completely bypasses the query, attention, and feedforward blocks for those skipped layers, preserving the necessary dependencies for future tokens at a fraction of the computational cost.

The overall workflow for token-level early exiting and parallel processing is illustrated below:

Illustration of token-level early-exit and parallel KV generation

By isolating the KV generation, the model avoids executing the heavy multi-head attention and feedforward machinery in skipped blocks:

Figure 2: reduced computation by avoid query, attention and feed forward block in the skipped layers (index r > i∗), where the exit layer index i∗

Datasets

The authors evaluated ADEPT across multiple tasks and modalities:

  • Language Modeling: Evaluated using GPT2 (Large/XL) and Llama (7B to 65B) on the Penn Treebank (PTB), WikiText103, and One Billion Word (1BW) datasets.
  • Text Classification: Evaluated using a BERT base model on four single-label classification tasks from the GLUE benchmark: RTE, SST-2, MNLI, and QQP.
  • Multimodal Classification: Evaluated using the OFA Base model on the SNLI-VE (Visual Entailment) dataset.

Key Insights and Ideas

  • Parallelizing the Bottleneck: The core "aha!" moment is realizing that the sequential dependency of the KV cache can be bypassed. Instead of computing layers sequentially to get the cache, approximating the final state allows the model to project backward into the skipped layers' KV spaces simultaneously.
  • Token Complexity is Dynamic: Not all tokens are created equal. Punctuation or common words can be resolved in early layers, while complex nouns or ambiguous verbs require deeper processing. Token-level granularity unlocks efficiency gains that prompt-level methods completely miss.
  • Extreme Parameter Efficiency: Traditional early-exit methods add separate classifier modules to every single layer, drastically increasing parameter overhead. ADEPT uses a single, lightweight HSM module shared across all layers, resulting in an order of magnitude fewer trainable parameters.

Key Results

Language Modeling

ADEPT consistently outperformed competitive baselines like PABEE and DeeBERT. At 10% and 20% computation reduction levels, ADEPT maintained or even improved the perplexity of base models like GPT2-XL and Llama 7B. For instance, on the 1BW dataset with a 10% reduction, ADEPT improved Llama 7B's perplexity from 31.6 down to 21.8.

Table 1: Benchmark results of ADEPT in language modeling compared with baselines on GPT2 XL and Llama 7B models. Lower perplexity (PTB, WikiText103, 1BW) indicates better performance.

Downstream Tasks & Efficiency

In text classification, ADEPT achieved up to a 4× speedup (75% latency reduction) while outperforming baselines on GLUE tasks. It achieved these results with a fraction of the trainable parameter overhead required by alternative methods:

Table 2: Comparison of trainable parameters (in millions), with ratios relative to ADEPT (×) shown in parentheses for efficiency.

Furthermore, the authors demonstrated that ADEPT scales seamlessly across larger model variants (up to Llama 65B), maintaining high efficiency and representational fidelity.

Limitations and Future Work

The primary limitation acknowledged by the authors is that the early-exit threshold ($\delta$) is currently determined heuristically. Because the optimal trade-off between performance and computational efficiency can shift depending on the input domain, a fixed threshold might lead to sub-optimal behavior on unfamiliar text distributions.

The authors suggest that future research should focus on developing adaptive algorithms capable of dynamically tuning these thresholds on the fly based on real-time input characteristics.

Summary updated

BibTeX
@misc{yoo2026adept,
  author = {Sangmin Yoo and Srikanth Malla and Chiho Choi and Wei D. Lu and Joon Hee Choi},
  title = {{ADEPT: Adaptive Dynamic Early-Exit Process for Transformers}},
  year = {2026},
  eprint = {2601.03700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.03700},
}
Figure