Stochastic Sparse Attention for Memory-Bound Inference

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Lee, Kyle, Delacour, Corentin, Callahan-Coray, Kevin, Jiang, Kyle, Yaras, Can, Oymak, Samet, Srimani, Tathagata, Camsari, Kerem Y.
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914527325454336
author Lee, Kyle
Delacour, Corentin
Callahan-Coray, Kevin
Jiang, Kyle
Yaras, Can
Oymak, Samet
Srimani, Tathagata
Camsari, Kerem Y.
author_facet Lee, Kyle
Delacour, Corentin
Callahan-Coray, Kevin
Jiang, Kyle
Yaras, Can
Oymak, Samet
Srimani, Tathagata
Camsari, Kerem Y.
contents 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 sampling to design variance-reduced, GPU-friendly variants, demonstrating $1.5\times$ decode-step attention kernel speedup over FlashInfer and FlashDecoding on an NVIDIA RTX 6000 Ada while matching baseline accuracy at 32k-token contexts. 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 orthogonal to upstream techniques such as ternary quantization, low-rank projections, and KV-cache compression. Together, they point toward sparse, multiplier-free, and energy-efficient inference. We open-source our kernels at: https://github.com/OPUSLab/SANTA.git
format Preprint
id arxiv_https___arxiv_org_abs_2605_01910
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Stochastic Sparse Attention for Memory-Bound Inference
Lee, Kyle
Delacour, Corentin
Callahan-Coray, Kevin
Jiang, Kyle
Yaras, Can
Oymak, Samet
Srimani, Tathagata
Camsari, Kerem Y.
Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
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 sampling to design variance-reduced, GPU-friendly variants, demonstrating $1.5\times$ decode-step attention kernel speedup over FlashInfer and FlashDecoding on an NVIDIA RTX 6000 Ada while matching baseline accuracy at 32k-token contexts. 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 orthogonal to upstream techniques such as ternary quantization, low-rank projections, and KV-cache compression. Together, they point toward sparse, multiplier-free, and energy-efficient inference. We open-source our kernels at: https://github.com/OPUSLab/SANTA.git
title Stochastic Sparse Attention for Memory-Bound Inference
topic Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2605.01910