CSAttention: Centroid-Scoring Sparse Attention for Reusable-Prefix Long-Context LLM Serving
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:49 UTC · e7d083e86c8f ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "hq6BOHmaBA"- }- ],- "title": "CSAttention: Centroid-Scoring Sparse Attention for Reusable-Prefix Long-Context LLM Serving",- "authors": [],- "abstract": "Long-context LLM serving increasingly relies on long, reusable prefixes, such as cached retrieval contexts, tool schemas, agent memory, and domain-specific system prompts. In this write-once, read-many regime, dense attention over the accumulated KV cache becomes a dominant decode-time bottleneck, while aggressive sparse attention often loses accuracy because online queries and cached keys follow different distributions. We propose CSAttention, a training-free sparse attention method designed for reusable-prefix long-context inference. CSAttention shifts expensive retrieval work from online decoding to an offline prefix-build stage: it clusters prefill queries in subspaces, precomputes centroid-to-key partial scores, and stores bounded Top-$L$ lookup tables for each query centroid. At decode time, each new query selects its nearest query centroids, fetches the corresponding shortlists, aggregates centroid scores by key index, and performs attention only over the selected KV entries. This formulation does not remove the linear memory growth of long-context KV cache; instead, it creates a decode-stationary auxiliary index whose capacity is fixed after a reusable prefix is built and whose online work is regular and bounded by the shortlist budget. Extensive experiments on LongBench and LongBench-v2 show that CSAttention preserves near-full-attention accuracy at 95% sparsity across Llama, Qwen, and Mistral backbones. Compared with strong sparse-attention baselines, CSAttention achieves higher recall and downstream accuracy under matched sparse budgets, and delivers up to $4.24\\times$ decode-throughput speedup and up to $3.80\\times$ end-to-end speedup in long-prefix, moderate-to-long generation regimes, while making its TTFT, memory, and batch-scaling trade-offs explicit.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "f9520b38-bd9a-48ba-8b6f-2950605a9109"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "CSAttention: Centroid-Scoring Sparse Attention for Reusable-Prefix Long-Context LLM Serving",+ "authors": [],+ "abstract": "Long-context LLM serving increasingly relies on long, reusable prefixes, such as cached retrieval contexts, tool schemas, agent memory, and domain-specific system prompts. In this write-once, read-many regime, dense attention over the accumulated KV cache becomes a dominant decode-time bottleneck, while aggressive sparse attention often loses accuracy because online queries and cached keys follow different distributions. We propose CSAttention, a training-free sparse attention method designed for reusable-prefix long-context inference. CSAttention shifts expensive retrieval work from online decoding to an offline prefix-build stage: it clusters prefill queries in subspaces, precomputes centroid-to-key partial scores, and stores bounded Top-$L$ lookup tables for each query centroid. At decode time, each new query selects its nearest query centroids, fetches the corresponding shortlists, aggregates centroid scores by key index, and performs attention only over the selected KV entries. This formulation does not remove the linear memory growth of long-context KV cache; instead, it creates a decode-stationary auxiliary index whose capacity is fixed after a reusable prefix is built and whose online work is regular and bounded by the shortlist budget. Extensive experiments on LongBench and LongBench-v2 show that CSAttention preserves near-full-attention accuracy at 95% sparsity across Llama, Qwen, and Mistral backbones. Compared with strong sparse-attention baselines, CSAttention achieves higher recall and downstream accuracy under matched sparse budgets, and delivers up to $4.24\\times$ decode-throughput speedup and up to $3.80\\times$ end-to-end speedup in long-prefix, moderate-to-long generation regimes, while making its TTFT, memory, and batch-scaling trade-offs explicit.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}