CSAttention: Centroid-Scoring Attention for Accelerating LLM Inference
Chuxu Song, Zhencan Peng, Jiuqi Wei, Chuanhui Yang

TL;DR
CSAttention is a novel sparse attention method designed for high-throughput, long-context LLM inference, significantly improving speed while maintaining accuracy by front-loading computation and using query-centric lookup tables.
Contribution
It introduces a training-free, offline prefill-based sparse attention technique optimized for long contexts and high sparsity, outperforming existing methods in speed and accuracy.
Findings
Achieves up to 4.6x inference speedup at 128K context length.
Maintains near-identical accuracy to full attention.
Outperforms state-of-the-art sparse attention methods in experiments.
Abstract
Long-context LLMs increasingly rely on extended, reusable prefill prompts for agents and domain Q&A, pushing attention and KV-cache to become the dominant decode-time bottlenecks. While sparse attention reduces computation and transfer costs, it often struggles to maintain accuracy at high sparsity levels due to the inherent distribution shift between Queries and Keys. We propose Centroid-Scoring Attention (CSAttention), a training-free sparse attention method optimized for high-throughput serving of reusable contexts. CSAttention adopts a storage-for-computation strategy tailored to the offline-prefill/online-decode setting: it front-loads computation into a one-time offline prefill phase that can be amortized across multiple queries, while aggressively optimizing per-step decoding latency. Specifically, CSAttention constructs query-centric lookup tables during offline prefill, whose…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
