Research map / Large language models / Reasoning and chain of thought
Attention-Level Speculation
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes attention-level speculative parallelism (ALSpec), which approximates self-attention with attention sink, verifies it against exact attention via an L2 threshold, and overlaps subsequent ops to cut decode latency on multi-device inference.
Problem
Decode-stage latency of LLM inference at long context lengths is dominated by self-attention, and tensor and data parallelism show diminishing returns when scaled across devices.
Approach
Speculate on each layer's self-attention output using a cheap attention-sink approximation, run the post-attention ops speculatively on a separate device while exact attention is computed, and verify with a relative L2 threshold to commit or discard. A speculative flash decode kernel and a static-graph dynamic-concurrency runtime with priority gating make this practical.
Key results
- At 128K context with 87.5% speculation hit rate, ALSpec reduces attention latency overhead by up to 5x and gives up to 1.65x per-user throughput over full tensor parallelism on Tenstorrent N150 devices.
- With lambda=0.10, ALSpec matches or exceeds baseline scores on most evaluated tasks while speculating successfully on 18% to 90% of attention ops depending on task.
- Projected on H100s at 128K with 65% hit rate, ALSpec gives an estimated 28.5% tokens/s improvement vs 9.2% for full TP scaling from 4 to 8 GPUs.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use ALSpec with λ=0.10 | Llama 3.1 8B · IFEval | score: 0.798 -> 0.812 | Helped |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · GPQA COT | score: 0.237 -> 0.237 | No clear effect |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · SWDE | score: 0.359 -> 0.389 | Helped |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · FDA | score: 0.210 -> 0.205 | Hurt |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · GSM8K COT | score: 0.823 -> 0.799 | Hurt |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · MATH (MMLU PRO COT) | score: 0.326 -> 0.315 | Hurt |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · HotpotQA | score: 0.920 -> 0.915 | No clear effect |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · RepoBench-P | score: 0.756 -> 0.768 | Helped |
| Use ALSpec with λ=0.10 | Llama 3.1 8B · MMLU PRO COT subject tasks | score: 0.328 -> 0.339; 0.470 -> 0.490; 0.289 -> 0.296 | Mixed |
| Use ALSpec with λ=0.10 | Llama 8B on H100 · 128K context | throughput (tok/s): 184.8 -> 217.5 | Helped |
| Increase λ from 0.10 to 0.25 (ablation) | ALSpec on Llama 3.1 8B · IFEval | score: 0.812 -> 0.794 | Hurt |
| Increase λ from 0.10 to 0.25 (ablation) | ALSpec on Llama 3.1 8B · GSM8K COT | score: 0.799 -> 0.719 | Hurt |
Surprising findings
- Static attention-sink approximation degrades math and reasoning tasks (e.g., MMLU-Pro CoT), while dynamic verification recovers baseline accuracy.
- Full tensor parallelism gives almost no gain from 4 to 8 devices at long context lengths on N150 hardware.
Limitations
- Speedup numbers are estimates from device kernel durations that exclude host and dispatch latency.
- GPU results are projections; no CUDA implementation was built.
- Speculation hit rates vary widely by task (18% to 90%), and correctness was simulated by running both attention paths.
Experimental setup
Datasets: IFEval GPQA SWDE FDA GSM8K MATH MGSM MMLU-Pro HotpotQA RepoBench-P synthetic needle-in-a-haystack
Benchmarks: IFEval GPQA CoT SWDE FDA GSM8K CoT MATH MGSM CoT MMLU-Pro CoT HotpotQA RepoBench-P needle-in-a-haystack
Metrics: task score speculation hit rate decode latency per token tokens/s/user relative score to baseline
Baselines: full tensor parallelism attention sink attention sink at fixed layers data parallelism
Builds on: speculative decoding attention sink flash decoding Lipschitz continuity analysis of transformers
Closest papers by meaning
- Distributed Speculative Inference (DSI): Speculation Parallelism for Provably Faster Lossless Language Model Inference (ICLR 2025 · similarity 0.89)
- Scaling LLM Speculative Decoding: Non-Autoregressive Forecasting in Large-Batch Scenarios (AAAI 2026 · similarity 0.89)
- Scaling Up, Speeding Up: A Benchmark of Speculative Decoding for Efficient LLM Test-Time Scaling (ICLR 2026 · similarity 0.89)
- Mixture of Attentions For Speculative Decoding (ICLR 2025 · similarity 0.88)
- ATTS: Asynchronous Test-Time Scaling via Conformal Prediction (ICLR 2026 · similarity 0.88)
- Attention Drift: What Auto-Regressive Speculative Decoding Models Learn (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
