TL;DR
Large reasoning models are severely bottlenecked by the massive key-value (KV) cache generated during long chains of thought. DELTA is a training-free, sparse attention mechanism that accelerates inference by computing full attention only at a few strategic "selection layers" ($\Delta$-layers) and reusing those attention maps across subsequent layers. This achieves up to a $1.54\times$ end-to-end speedup while matching or even exceeding full-attention accuracy on hard reasoning benchmarks.
What Problem Does This Paper Address?
Large Reasoning Models (LRMs) like DeepSeek-R1 scale performance at test-time by generating long, step-by-step chains of thought. However, this creates a massive memory-bandwidth bottleneck during the autoregressive decoding phase: for every new token generated, the model must read the entire growing history of key-value (KV) vectors from GPU memory.
Existing sparse attention methods try to fix this by permanently evicting tokens from the cache or using fixed heuristics. Unfortunately, they suffer from severe accuracy drops on complex reasoning tasks. Because reasoning chains are long and interdependent, token importance shifts dynamically over time; a token that seems irrelevant in step 10 might become critical for a logical derivation in step 10,000. Permanently discarding data breaks the model's ability to self-reflect and maintain logical consistency.
Methods
DELTA introduces a training-free, selection-based sparse attention mechanism that preserves the full KV cache in memory but dynamically restricts attention computation. It partitions the Transformer layers into three tiers:
- Initial Layers: Run full attention to stabilize hidden representations, as early layers show no consistent sparsity.
- $\Delta$-Layers (Selection Layers): A small, strategically placed set of intermediate layers that run full attention to dynamically score and select the most salient tokens for the current decoding step. The token score is computed by taking the maximum attention weight across all heads.
- Sparse-Attention Layers: Attend only to the subset of tokens selected by the preceding $\Delta$-layer, avoiding redundant full-context scans.
To make this hardware-efficient, DELTA uses a page-based implementation (grouping tokens into fixed-size pages, e.g., $P=16$) to enable coalesced memory access on GPUs. It also always retains a local recency window to preserve immediate context. The placement of $\Delta$-layers is determined via a lightweight calibration step that measures attention shifts between consecutive layers.
Datasets
The authors evaluated DELTA using four distilled DeepSeek-R1 variants (DS-Qwen-1.5B, DS-Qwen-7B, DS-Qwen-14B, and DS-Llama-8B) across four challenging open-source reasoning benchmarks:
- AIME-2024 & AIME-2025: Advanced high-school mathematics competitions.
- GPQA-Diamond: Graduate-level scientific reasoning across biology, chemistry, and physics.
- MATH500: High-school competition math covering five difficulty levels.
Key Insights and Ideas
- Layer-wise Correlation: Attention maps across consecutive layers are highly correlated. Instead of re-computing full attention at every single layer to find important tokens, a single intermediate layer ($\Delta$-layer) can reliably predict token importance for several subsequent layers.
- Depth-wise Context Sharpening: Early layers exhibit diffuse, low-mass attention patterns, whereas deeper layers focus sharply on specific, distant tokens. This justifies using full attention early on and sparse attention later.
- Sequential Drift: Token importance changes gradually but continuously as decoding progresses. This means static eviction methods fail, but a query-adaptive refresh mechanism like DELTA can successfully track shifting context without discarding historical data.
Key Results
- Maintained or Improved Accuracy: On tough benchmarks like AIME and GPQA-Diamond, DELTA consistently matched or outperformed full attention despite using a fraction of the token budget. For example, on GPQA with
DS-Qwen-7B, DELTA with a 2k token budget outperformed full attention by roughly 30%. - Significant Efficiency Gains: DELTA reduced the number of attended tokens by up to $4.25\times$, yielding an end-to-end decoding speedup of up to $1.54\times$ and a 55% throughput improvement on
DS-Qwen-1.5B.
Limitations and Future Work
- KV-Memory Footprint: DELTA reduces compute and memory bandwidth during attention but still retains the full KV cache in High-Bandwidth Memory (HBM). It does not reduce peak memory footprint or prevent out-of-memory errors for extreme context lengths.
- Generality: The evaluation focused primarily on distilled DeepSeek-R1 models on math and science QA tasks. Performance on open-ended conversation or code generation remains unverified.
- Sensitivity to Hyperparameters: Performance depends heavily on the correct placement of $\Delta$-layers and tuning the token budget parameters ($K, L$). Future work could explore adaptive per-sample scheduling or lightweight learned selectors to dynamically adjust these parameters.
Summary updated