atlas

Research map / Architectures and efficiency / Attention and transformers

SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inference

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Block-sparse attention kernels · 0 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 SpargeAttn, a training-free, universal sparse and quantized attention that predicts sparse blocks via selective token compression and skips further products with a warp-level sparse online softmax, accelerating language, image and video models without end-to-end metric loss.

Problem

Attention's quadratic cost dominates inference latency for long sequences, but existing sparse attention methods are tied to specific models or patterns, or require training, and often degrade end-to-end quality or give little speedup; a universal, accurate, low-overhead training-free sparse attenti

Approach

Two-stage online filter on FlashAttention tiling: (1) predict block-sparse mask by compressing only high self-similarity Q/K blocks into mean tokens and applying a TopCdf selection, always computing non-self-similar "fix" blocks; (2) a warp-level sparse online softmax skips P~V products when the local row max is far below the running max; plus HilbertCurve permutation for visual tokens and integra

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace full attention with SpargeAttnLlama3.1 · NIAH, 128KSpeed (1/t): 156.9 -> 708.1Helped
replace full attention with SpargeAttnMochi · text-to-video generationFScore: 1.681 -> 1.807Helped
replace full attention with SpargeAttnCogvideoX · text-to-video generationVQA-a: 80.384 -> 78.276Hurt
remove self-similarity judge (ablation)SpargeAttn on Mochi · text-to-video generationVQA-a: 54.179 -> 34.664Hurt
remove self-similarity judge (ablation)SpargeAttn on Mochi · text-to-video generationFScore: 1.807 -> 1.138Hurt
use HilbertCurve rather than row-major token permutation (ablation)SpargeAttn on Mochi · attentionSparsity: 0.363 -> 0.392Helped
use HilbertCurve rather than row-major token permutation (ablation)SpargeAttn on Mochi · attentionL1 error: 0.0307 -> 0.0389Hurt
use random rather than HilbertCurve token permutation (ablation)SpargeAttn on Mochi · attentionSparsity: 0.392 -> 0.048Hurt
use only Mg filter instead of Mg plus Mpv (ablation)SpargeAttn on Llama3.1 · NIAH, 128KSparsity: 54% -> 51.2%Hurt
use only Mpv filter instead of Mg plus Mpv (ablation)SpargeAttn on Llama3.1 · NIAH, 128KSparsity: 54% -> 27.7%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: WikiText LongBench InfiniteBench Needle-in-a-Haystack open-sora prompt sets COCO annotations

Benchmarks: WikiText LongBench InfiniteBench En.MC Needle-in-a-Haystack open-sora prompts (VQA, CLIPSIM, FScore) COCO (FID, CLIP, ImageReward)

Metrics: perplexity LongBench score retrieval accuracy CLIPSIM CLIP-T VQA-a VQA-t FScore FID CLIP score

Baselines: MInference FlexPrefill Full-Attention

Builds on: FlashAttention SageAttention online softmax 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