mlsanityData to 7 Oct 2026

CoSA: Accelerating Long-Context Inference via Proxy-Kernel Co-Designed Sparse Attention

arXiv 2607.25291 ↗First posted 28 Jul 2026cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

The quadratic cost of self-attention makes long-context inference prohibitively expensive, and proxy-based block-sparse attention has become a practical remedy. Existing methods typically rely on a proxy to predict a binary sparse mask and a kernel to consume this mask and perform sparse attention computation. Such an approach is effective under moderate budgets. However, as the budget tightens, the estimated proxy inevitably drops some salient blocks, while the kernel can only apply the sparse mask mechanically, leading to an evident drop in model accuracy. We propose CoSA, a two-stage training-free Sparse Attention under proxy-kernel CO-design, which couples a Kernel-Aware Proxy (KAP) with an Ordered-Skipping Kernel (OSK). In the first stage, the KAP selects blocks under a moderate budget and produces an ordered mask that prescribes the order in which KV pages are visited in the kernel inner loop. In the second stage, the OSK applies this mask and skips more blocks under a tightened budget given online-softmax statistics. Across mainstream LLM backbones and long-context benchmarks, CoSA attains higher accuracy at lower budgets. Impressively, CoSA achieves a 4.93× attention speedup and reduces end-to-end Time-to-First-Token by 2.53× under a context length of 128K with negligible performance degradation. Code is available at https://github.com/Tencent/AngelSlim.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 35 of its 41 references that are in the map. First posted on arXiv 28 Jul 2026.

Builds on

35 of 41 references.

References · 35

  1. 2025Qwen3 Technical Reportcited by 8,195
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  5. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  6. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
  7. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  8. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
  9. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  10. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  11. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  12. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
23 more
  1. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  2. 2018Online normalizer calculation for softmaxcited by 154
  3. 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
  4. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  5. 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 113
  6. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
  7. 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 58
  8. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selectioncited by 38
  9. 2025Retrieval Augmented Generation and Understanding in Vision: A Survey and New Outlookcited by 32
  10. 2026A-RAG: Scaling Agentic Retrieval-Augmented Generation via Hierarchical Retrieval Interfacescited by 24
  11. 2025SageAttention2++: A More Efficient Implementation of SageAttention2cited by 21
  12. 2025ProxyAttn: Guided Sparse Attention via Representative Headscited by 9
  13. 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 9
  14. 2026HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharingcited by 8
  15. 2026Stem: Rethinking Causal Information Flow in Sparse Attentioncited by 5
  16. 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
  17. 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformerscited by 4
  18. 2026Switch Attention: Towards Dynamic and Fine-grained Hybrid Transformerscited by 4
  19. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Stepscited by 3
  20. 2025AsyncSpade: Efficient Test-Time Scaling with Asynchronous Sparse Decodingcited by 2
  21. 2026VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inferencecited by 2
  22. 2025A Unified Sparse Attention via Multi-Granularity Compressioncited by 1
  23. 2026RRAttention: Dynamic Block Sparse Attention via Per-Head Round-Robin Shifts for Long-Context Inferencecited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.