atlas

Research map / Architectures and efficiency / Attention and transformers

Star Attention: Efficient LLM Inference over Long Sequences

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 1 citations (OpenAlex)

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 Star Attention, a two-phase block-sparse inference scheme (blockwise-local context encoding with anchor blocks, then global-attention query encoding) that speeds up long-context LLM inference up to 11x (16.9x at 1M tokens) over Ring Attention while keeping 97-100% of accuracy, without fine-tuning.

Problem

Long-context LLM inference is costly because self-attention is quadratic and autoregressive decoding must attend to all prior tokens; existing chunked or sparse methods often need fine-tuning or architecture changes.

Approach

Shard the context into blocks, each prefixed with a shared anchor block (first block) so attention sinks are placed at anchor tokens; discard anchor KVs and keep only local KVs, then have query tokens attend globally across hosts using distributed softmax with log-sum-exp aggregation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Star Attention instead of full attentionLlama-3.1-8B-Instruct · RULER averageaccuracy: 85.21 -> 84.44Hurt
use Star Attention instead of StreamingLLMLlama-3.1-8B-Instruct · RULER averageaccuracy: 45.07 -> 84.44Helped
use Star Attention instead of MInferenceLlama-3.1-8B-Instruct · RULER averageaccuracy: 80.71 -> 84.44Helped
use Star Attention instead of full attentionLlama-3.1-8B-Instruct · InfiniteBench averageaccuracy: 48.06 -> 46.51Hurt
use Star Attention instead of StreamingLLMLlama-3.1-8B-Instruct · InfiniteBench averageaccuracy: 14.72 -> 46.51Helped
use Star Attention instead of MInferenceLlama-3.1-8B-Instruct · InfiniteBench averageaccuracy: 34.07 -> 46.51Helped
use Star Attention instead of Ring AttentionLlama-3.1-8B-Instruct · RULER 16K–128Kinference speedup: 1.1x; 1.2x; 1.8x; 2.7xHelped
remove the anchor block (ablation)Star Attention · RULER-NIAH 64Kaccuracy: 97.61 -> 60.11Hurt
remove the anchor block (ablation)Star Attention · RULER-NIAH 128Kaccuracy: 94.94 -> 73.75Hurt
change anchor position IDs from first-block positions to random positions (ablation)Star Attention · RULER-NIAH 64K and 128Kaccuracy: 97.61 -> 96.79; 94.94 -> 97.16No clear effect
replace anchor content with repeated constant tokens (ablation)Star Attention · RULER-NIAH 64K and 128Kaccuracy: 97.61 -> 0.00; 94.94 -> 0Hurt
replace first-block anchor content with random tokens (ablation)Star Attention · RULER-NIAH 64K and 128Kaccuracy: 97.61 -> 90.55; 94.94 -> 82.63Hurt

Surprising findings

Limitations

Experimental setup

Datasets: RULER BABILong InfiniteBench

Benchmarks: RULER BABILong InfiniteBench

Metrics: accuracy inference speedup time per sample

Baselines: Ring Attention StreamingLLM MInference Full attention (global)

Builds on: Ring Attention Flash Attention StreamingLLM MInference

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