atlas

Research map / Architectures and efficiency / Attention and transformers

Streaming Attention Approximation via Discrepancy Theory

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes BalanceKV, a streaming KV-cache compression algorithm built on Banaszczyk-style vector balancing (SoftmaxBalance + merge-and-reduce) that provably approximates attention with sublinear memory, and shows a matching-style space lower bound.

Problem

Approximating softmax attention in a streaming setting with sublinear memory, so that the key-value cache of LLMs can be compressed during long-context token generation.

Approach

Extends the online self-balancing walk from linear vector balancing to the exponential kernel exp(<k,q>/sqrt(d)) via a feature map, runs it recursively in a merge-and-reduce tree, and buckets tokens by value norm to get a streaming estimator of attention with memory roughly d*sqrt(d)/eps instead of 1/eps^2 for independent sampling.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use BalanceKV instead of SnapKVQwen2.5-32B-Instruct cache compression · LongBench-Eaverage: 48.77 -> 48.84Helped
Use BalanceKV instead of SnapKVQwen2.5-14B-Instruct cache compression · LongBench-Eaverage: 50.22 -> 50.62Helped
Use BalanceKV instead of UniformLlama-3.1-8B-Instruct cache compression · LongBench-Eaverage: 46.38 -> 46.77Helped
Preserve strongly anti-correlated-key tokens before applying BalanceKV to remaining tokensLlama-3.1-8B-Instruct cache compression · Needle-In-A-Haystackaverage accuracy: 0.83 -> 0.99Helped
Use BalanceKV augmented instead of PyramidKVLlama-3.1-8B-Instruct cache compression · Needle-In-A-Haystackaverage accuracy: 0.90 -> 0.99Helped
Use BalanceKV augmented instead of StreamingLLMLlama-3.1-8B-Instruct cache compression · Needle-In-A-Haystackaverage accuracy: 0.31 -> 0.99Helped
Use BalanceKV augmented instead of UniformLlama-3.1-8B-Instruct cache compression · Needle-In-A-Haystackaverage accuracy: 0.90 -> 0.99Helped
Increase block size (ablation)BalanceKV single-layer attention approximation · TriviaQA, Llama-3.1-8B-Instruct layers 1 and 15relative errorHelped
Increase block size (ablation)BalanceKV single-layer attention approximation · TriviaQA, Llama-3.1-8B-Instruct layers 1 and 15runtimeHurt

Limitations

Experimental setup

Datasets: LongBench TriviaQA Needle in a Haystack MS COCO

Benchmarks: LongBench Needle in a Haystack TriviaQA MS COCO

Metrics: relative attention approximation error average accuracy wall-clock latency

Baselines: StreamingLLM SnapKV PyramidKV uniform sampling ClusterGen

Builds on: self-balancing walk merge-and-reduce SnapKV

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy