ClusterAttention: A training-free speedup of bidirectional attention
Kasper Nordenram, Amelie Dittmann
Key points
From the paper's conclusion- This paper introduces ClusterAttention, a general training-free speedup of bidirectional attention layers.
Abstract
This paper introduces ClusterAttention, a general training-free speedup of bidirectional attention layers. Existing sparse attention methods either rely on structure in the input, such as order in language or spatial proximity in images, or use slow clustering processes amortized over several forward passes. ClusterAttention instead uses a fast recursive clustering method that adapts to the geometry of the keys and queries in each attention head to produce useful clusters. This method allows setting the size of the clusters arbitrarily. We utilize this by setting all clusters to be a fixed size that is a power of two, allowing the block-sparse attention to run at the same latency per query-key interaction as dense attention on GPUs. We also derive an expression for the output error in sparse attention, that explains the counterintuitive experimental finding that tight clusters can lead to larger errors than random clusters. We then derive the error when excluded clusters are compensated through their centroids, and show that this error shrinks with tighter clusters. We integrate this compensation into the method. On large-scale tabular data ClusterAttention speeds up TabPFN-3 arXiv:2605.13986 by two to six times, while retaining at least 99% of the dense accuracy. To our knowledge, it is the first training-free method that can be successfully applied in the setting of unstructured input and a single forward pass. For video generation with Wan 2.1-14B T2V arXiv:2503.20314 , ClusterAttention achieves output closer to dense attention and a larger speedup (1.8x versus 1.4x) compared to SVOO arXiv:2603.18636 , a leading method developed specifically for this domain, both run without offline calibration.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM InferencearXiv · 2026
- DexAttention: Distributed Sparse Attention through Rapid Online Planning and Persistent GPU ExecutionarXiv · 2026
- Every Query Routes Itself: Accelerating Video Diffusion Transformers with Per-Query Routed Sparse AttentionarXiv · 2026
- PoCoAttn: Position-Content Collaborative Sparse Attention for Fast and High-Fidelity Video GenerationarXiv · 2026
- DecoupAttn: Decoupled Sparse Attention for Training-Free Acceleration of Video DiffusionarXiv · 2026
- Sparse Attention for Visual Generation: Toward Algorithm-System Co-DesignarXiv · 2026