atlas

Research map / Large language models / Reasoning and chain of thought

Attention-Level Speculation

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ALSpec with λ=0.10Llama 3.1 8B · IFEvalscore: 0.798 -> 0.812Helped
Use ALSpec with λ=0.10Llama 3.1 8B · GPQA COTscore: 0.237 -> 0.237No clear effect
Use ALSpec with λ=0.10Llama 3.1 8B · SWDEscore: 0.359 -> 0.389Helped
Use ALSpec with λ=0.10Llama 3.1 8B · FDAscore: 0.210 -> 0.205Hurt
Use ALSpec with λ=0.10Llama 3.1 8B · GSM8K COTscore: 0.823 -> 0.799Hurt
Use ALSpec with λ=0.10Llama 3.1 8B · MATH (MMLU PRO COT)score: 0.326 -> 0.315Hurt
Use ALSpec with λ=0.10Llama 3.1 8B · HotpotQAscore: 0.920 -> 0.915No clear effect
Use ALSpec with λ=0.10Llama 3.1 8B · RepoBench-Pscore: 0.756 -> 0.768Helped
Use ALSpec with λ=0.10Llama 3.1 8B · MMLU PRO COT subject tasksscore: 0.328 -> 0.339; 0.470 -> 0.490; 0.289 -> 0.296Mixed
Use ALSpec with λ=0.10Llama 8B on H100 · 128K contextthroughput (tok/s): 184.8 -> 217.5Helped
Increase λ from 0.10 to 0.25 (ablation)ALSpec on Llama 3.1 8B · IFEvalscore: 0.812 -> 0.794Hurt
Increase λ from 0.10 to 0.25 (ablation)ALSpec on Llama 3.1 8B · GSM8K COTscore: 0.799 -> 0.719Hurt

Surprising findings

Limitations

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

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy