Sparse attention stays close to full attention at long context
Joint Subspace Sparse Attention for Efficient Long-Context Decoding · arXiv:2610.19026

In plain words
Long-context language models repeatedly look back through earlier text as they produce each new token.
Joint Subspace Sparse Attention (JSSA) is a method that chooses individual earlier positions to read, using a shared, smaller space to score them and then reading selected entries directly from the cache.
In text-prediction tests on three models and contexts from 32K to 128K, JSSA’s results stayed close to full-cache attention. The tests support that conclusion for those models and settings.
The research
Long-context decoding repeatedly reads a growing cache, so selecting fewer positions could reduce the work at each step. But can a method choose individual positions accurately enough to preserve language-modeling performance while also avoiding the overhead of gathering scattered cache entries?
JSSA selects individual context tokens with shared query–key scoring and direct cache reads to preserve attention quality while reducing cache traffic.
The paper asks whether selecting individual context tokens can reduce long-context decoding costs without losing useful attention choices.
Joint Subspace Sparse Attention (JSSA) uses a shared, low-dimensional query–key scoring space to choose positions, then reads their original cache entries directly for attention.
On PG-19, which measures text-prediction quality through perplexity, JSSA was at most 1.11 points from full-cache attention across three models and 32K–128K contexts under the tested cache budgets. This supports near-full-cache language-modeling performance in those conditions.
The results cover specific models, tasks, and hardware setups. The scoring method’s upper bound does not prove that its chosen subspace is globally optimal, and GLM-5.2 has no full-attention checkpoint for comparison.
What the evidence shows
- The token-selection problem
Joint Subspace Sparse Attention (JSSA) is a training-free method that selects individual context positions for sparse attention in models with grouped-query attention or multi-head latent attention.
The paper asks whether this fine-grained selection can preserve useful token rankings and save decoding time, given that low-dimensional scoring can misrank tokens and gathering scattered selections can add overhead.
- A shared scoring space
JSSA scores queries and keys in the same low-dimensional space, chosen to preserve their interactions. It then uses those scores to select context positions and computes attention from the original keys and values.
This separation lets the method use a compact representation for choosing tokens while retaining the full representations for attention.
- Reading selected entries
The method also addresses the cost of moving selected entries. For grouped-query attention, JSSA’s indexed-attention kernel reads selected entries directly from the original cache and keeps separate selections for different key–value heads.
This avoids a separate gather buffer. For multi-head latent attention, the paper instead uses a sparse-attention kernel for the model’s shared latent cache.
- Language-modeling results
On the PG-19 text-prediction test, JSSA’s perplexity was at most 1.11 points from full-cache attention across three models and context lengths of 32K–128K, under the fixed cache budgets used for RULER.
Perplexity measures how poorly a model predicts text, so the comparison indicates that JSSA stayed close on this measure in the reported conditions.
- Speed and reasoning evidence
In a separate serving measurement, JSSA reached up to 6.43 times full-cache decoding throughput for GLM-4.7-Flash at 128K context on one B200 GPU with a 2,048-token cache budget.
On GLM-5.2, it had similar pass@1 accuracy to native sparse attention on two reasoning tests, but no full-attention checkpoint was available for that comparison.
Deep
- Original paper authors
- Jiwon Song, Yoongon Kim, Jae-Joon Kim
- Submitted to arXiv
- License
- CC BY 4.0