paper-with-me

홈 › Papers

Sparse Attention across Multiple-context KV Cache

2025-08-06 · Ziyi Cao, Qingyi Si, Jingbin Zhang, Bingquan Liu arxiv

Large language models face significant cost challenges in long-sequence inference. To address this, reusing historical Key-Value (KV) Cache for improved inference efficiency has become a mainstream approach. Recent advances further enhance throughput by sparse attention mechanisms to select the most relevant KV Cache, thereby reducing sequence length. However, such techniques are limited to single-context scenarios, where historical KV Cache is computed sequentially with causal-attention dependencies. In retrieval-augmented generation (RAG) scenarios, where retrieved documents as context are unknown beforehand, each document's KV Cache is computed and stored independently (termed multiple-context KV Cache), lacking cross-attention between contexts. This renders existing methods ineffective. Although prior work partially recomputes multiple-context KV Cache to mitigate accuracy loss from missing cross-attention, it requires retaining all KV Cache throughout, failing to reduce memory overhead. This paper presents SamKV, the first exploration of attention sparsification for multiple-context KV Cache. Specifically, SamKV takes into account the complementary information of other contexts when sparsifying one context, and then locally recomputes the sparsified information. Experiments demonstrate that our method compresses sequence length to 15% without accuracy degradation compared with full-recompuation baselines, significantly boosting throughput in multi-context RAG scenarios.

📄 PDF Abstract BibTeX arXiv:2508.11661

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

You Only Index Once: Cross-Layer Sparse Attention with Shared Routing

2026-06-04 · Yutao Sun, Yanqi Zhang, Li Dong, Jianyong Wang 외 arxiv

Long-context inference in modern LLMs is increasingly constrained by decoding efficiency, especially in reasoning-heavy settings where models generate long intermediate chains of thought. Existing sparse attention method…

BudgetDraft: Acceptance-Aware Multi-View Training for Sparse-KV Speculative Decoding

2026-05-29 · Liang He, Jingbo Wen, Qishi Zhan, Yixiong Chen 외 arxiv

Speculative decoding speeds up autoregressive decoding by using a drafter to propose multiple tokens that a verifier validates in parallel. In resource-constrained deployments, the drafter uses a sparse KV cache to limit…

OmniSparse: Training-Aware Fine-Grained Sparse Attention for Long-Video MLLMs

2025-11-15 · Feng Chen, Yefei He, Shaoxuan He, Yuanyu He 외 arxiv

Existing sparse attention methods primarily target inference-time acceleration by selecting critical tokens under predefined sparsity patterns. However, they often fail to bridge the training-inference gap and lack the c…

Semantic Similarity

AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention

2026-04-09 · Yuxuan Hu, Jianchao Tan, Jiaqi Zhang, Wen Zan 외 arxiv

Long-context inference in LLMs faces the dual challenges of quadratic attention complexity and prohibitive KV cache memory. While token-level sparse attention offers superior accuracy, its indexing overhead is costly; bl…

Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attention

2025-03-11 · Emily Xiao, Chin-Jou Li, Yilin Zhang, Graham Neubig 외

Many-shot in-context learning has recently shown promise as an alternative to finetuning, with the major advantage that the same model can be served for multiple tasks. However, this shifts the computational burden from …

In-Context LearningRetrieval