Simplified Sparse Attention via Gist Tokens
Summary
This paper introduces Simplified Sparse Attention (SSA), a method that uses gist tokens during continued pretraining to enable efficient chunk selection at inference without architectural changes, achieving high compression ratios and outperforming baselines on long-context tasks like LongBench and retrieval-augmented generation.
View Cached Full Text
Cached at: 06/29/26, 10:05 PM
Paper page - Simplified Sparse Attention via Gist Tokens
Source: https://huggingface.co/papers/2604.20920
Abstract
Simplified Sparse Attention (SSA) reduces long-context inference costs through gist token-based attention masking during pretraining, enabling efficient chunk selection at inference time without architectural modifications.
Sparse attentioncan reduce the cost of long-context inference, but most variants introduce new architectural components. We introduce SimplifiedSparse Attention(SSA), a simpler approach tosparse attentionthat requires no architectural changes. Concretely, we first performcontinued pretrainingon sequences interleaved withgist tokens. We optimize the standardnext-token lossas usual, but thegist tokensuse anattention maskto restrict what parts of the context the language model can attend to; this teaches the model to pack each chunk’s important information into thegist tokens. At inference time, SSA scores chunks via attention between the current query and the small set ofgist tokens, selectively unfolding the top-k chunks by reintroducing their corresponding raw tokens. Since the query is scored only against thegist tokens, we avoid the memory-bandwidth cost associated with naive scoring against the fullKV cache, without requiring the auxiliaryKV cacheapproach used bysparse attentionmethods. OnLongBench, SSA consistently outperforms compression and inference-time sparse-attention baselines under the same compression ratio. More strikingly, inretrieval-augmented generation, SSA can even outperform full attention aftercontinued pretrainingby over 5.7 points. We attribute this to the ability of SSA’sselective unfolding, which concentrates attention on the query-relevant chunks and effectively filters out noise. SSA further extends to ahierarchical gist-of-gistvariant (H-SSA) that achieveslog-linear decoding complexitywhile maintaining or improving accuracy at high compression ratios up to 32x. The code is available at https://github.com/yuzhenmao/simplified-sparse-attention/.
View arXiv pageView PDFAdd to collection
Get this paper in your agent:
hf papers read 2604\.20920
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2604.20920 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2604.20920 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2604.20920 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
Grammatically-Guided Sparse Attention for Efficient and Interpretable Transformers
This paper introduces a grammatically-guided sparse attention mechanism for Transformers, aiming to improve efficiency and interpretability by leveraging linguistic structure.
@akshay_pachaar: 1) Sparse Attention It limits the attention computation to a subset of tokens by: - Using local attention (tokens atten…
Explains sparse attention in transformers, which reduces computational complexity by attending only to a subset of tokens using local or learned attention patterns.
Subquadratic AI introduces SubQ-1.1-Small, a new model using Smart Sparse Attention
Subquadratic AI introduces SubQ-1.1-Small, a model leveraging Smart Sparse Attention to achieve near-perfect long-context retrieval up to 12M tokens with up to 1,000x attention compute reduction. It balances long-context optimization with strong general reasoning, outperforming baselines on benchmarks like NIAH and RULER.
@rohanpaul_ai: Quite incredible, MiniMax Sparse Attention cuts attention compute by 28.4X at 1M tokens, with 14.2X faster prefill and …
MiniMax Sparse Attention (MSA) achieves up to 28.4x reduction in attention compute at 1M tokens by adding a routing branch that selectively chooses key-value blocks for attention, enabling 14.2x faster prefill and 7.6x faster decoding on H800 GPUs while matching full attention benchmark performance.
MiniMax Sparse Attention
MiniMax Sparse Attention introduces a blockwise sparse attention mechanism that achieves significant speedups for ultra-long-context LLMs, reducing per-token attention compute by 28.4x at 1M context with wall-clock speedups of 14.2x for prefill and 7.6x for decoding on H800 GPUs. The method is accompanied by an open-source inference kernel and a publicly released multimodal model.