paper-with-me

홈 › Papers

Stochastic Sparse Attention for Memory-Bound Inference

2026-05-03 · Kyle Lee, Corentin Delacour, Kevin Callahan-Coray, Kyle Jiang, Can Yaras, Samet Oymak, Tathagata Srimani, Kerem Y. Camsari arxiv

Autoregressive decoding becomes bandwidth-limited at long contexts, as generating each token requires reading all $n_k$ key and value vectors from KV cache. We present Stochastic Additive No-mulT Attention (SANTA), a method that sparsifies value-cache access by sampling $S \ll n_k$ indices from the post-softmax distribution and aggregates only those value rows. This yields an unbiased estimator of the post-softmax value aggregation while replacing value-stage multiply-accumulates with gather-and-add. We introduce stratified and systematic sampling to design variance-reduced, GPU-friendly variants. Evaluated on Llama-3.1-8B-Instruct at 32k-token contexts, S$^2$ANTA matches baseline accuracy while achieving up to $1.5\times$ decode-step attention-kernel speedup over FlashInfer and FlashDecoding on an NVIDIA RTX 6000 Ada. In batched long-context generation, these kernel gains translate to up to $1.25\times$ end-to-end decode-latency speedup. Finally, we propose Bernoulli $qK^\mathsf{T}$ sampling as a complementary technique to sparsify the score stage, reducing key-feature access through stochastic ternary queries. Both methods are complementary to upstream quantization, low-rank projection, KV-cache compression, and KV-cache selection methods. Together, they point toward sparse, multiplier-free, and energy-efficient inference. We open-source our kernels at: https://github.com/OPUSLab/SANTA.git

📄 PDF Abstract BibTeX arXiv:2605.01910

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decoding

2025-12-01 · Yilong Zhao, Jiaming Tang, Kan Zhu, Zihao Ye 외 arxiv

Reasoning language models have demonstrated remarkable capabilities on challenging tasks by generating elaborate chain-of-thought (CoT) solutions. However, such lengthy generation shifts the inference bottleneck from com…

S$^3$-Attention:Attention-Aligned Endogenous Retrieval for Memory-Bounded Long-Context Inference

2026-01-25 · Qingsen Ma, Dianyun Wang, Yaoye Wang, Lechen Ning 외 arxiv

Large language models are increasingly applied to multi-document and long-form inputs, yet long-context inference remains memory- and noise-inefficient. Key-value (KV) caching scales linearly with context length, while e…

MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference

2025-11-08 · Myunghyun Rhee, Sookyung Choi, Euiseok Kim, Joonseop Sim 외 arxiv

The escalating context length in Large Language Models (LLMs) creates a severe performance bottleneck around the Key-Value (KV) cache, whose memory-bound nature leads to significant GPU under-utilization. This paper intr…

Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity

2026-05-27 · Xiuying Wei, Caglar Gulcehre arxiv

Efficient inference is critical for long-context language models, where attention computation and KV-cache access dominate the cost. Recent work RAT+, introduces a recurrence-augmented attention backbone that enables fle…

Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference

2026-03-30 · Zifan He, Rui Ma, Yizhou Sun, Jason Cong arxiv

Modern large language models (LLMs) increasingly depends on efficient long-context processing and generation mechanisms, including sparse attention, retrieval-augmented generation (RAG), and compressed contextual memory,…