NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inference

Ruijie Zhou, Fanxu Meng, Yufei Xu, Tongxuan Liu, Guangming Lu, Muhan Zhang, Wenjie PeiarXiv 2026

TL;DR

MISA (Mixture of Indexer Sparse Attention) optimizes long-context LLM inference by applying a Mixture-of-Experts approach to the head axis of learned attention indexers. By dynamically routing queries to only a small fraction of active indexer heads using cheap block-level statistics, MISA achieves up to a 3.82× kernel speedup on an NVIDIA H200 GPU while fully preserving downstream accuracy and retrieval performance up to 128K context.

What Problem Does This Paper Address?

Processing long contexts in Large Language Models (LLMs) is heavily bottlenecked by the quadratic computational cost of attention mechanisms. State-of-the-art production models like DeepSeek-V3.2 mitigate this using DeepSeek Sparse Attention (DSA), which employs a lightweight, learned token-wise indexer to select the top-$k$ most relevant tokens for the main attention pass.

However, to remain expressive and capture diverse semantic relationships, this indexer relies on a large pool of query heads ($H^I = 64$ in DeepSeek-V3.2). Scoring every single prefix token against all of these heads makes the indexer itself the dominant computational bottleneck as context lengths scale into the hundreds of thousands. Prior acceleration methods focused on filtering along the token axis (dropping blocks of tokens), which often sacrifices fine-grained retrieval accuracy. MISA addresses this by targeting an orthogonal dimension: the head axis.

Methods

MISA introduces a drop-in replacement for the DSA indexer that treats its multi-head pool as a collection of Mixture-of-Experts (MoE) modules:

  1. Block-Pooled Router: Instead of performing heavy token-level head-query products across the entire prefix, the context is partitioned into coarse blocks (e.g., block size $B = 1024$). The router uses mean-pooled keys to compute cheap query-head affinities and dynamically selects a query-dependent subset of active heads ($h \ll H^I$, typically $h = 8$).
  2. Sparse Token Scoring: Only the chosen $h$ active heads perform the fine-grained, token-level scoring scan. This reduces the per-query indexer complexity from $O(H^I L)$ to $O(hL + H^I M)$, where $M$ is the number of blocks and $L$ is the sequence length.
  3. Hierarchical MISA ($MISA^\dagger$): To recover the exact dense indexer selections, the authors introduce a two-stage variant. The MoE-routed pass first filters the prefix down to an expanded candidate set ($k'$ tokens), which is then re-ranked using the full $H^I$ heads.
Comparison of DSA and MISA indexer architectures

Datasets

The authors evaluated MISA using two open-weight long-context models (DeepSeek-V3.2 and GLM-5) across several standard benchmarks:

  • LongBench: Used to measure downstream multi-task long-context capabilities (QA, summarization, code completion).
  • Needle-in-a-Haystack (NIAH): Evaluated up to 128K context lengths to test fine-grained information retrieval.
  • LSHT (Long Text Summarization): A subset used specifically to compute the per-layer Intersection-over-Union (IoU) token overlap against the ground-truth dense indexer.

No new datasets were introduced in this work.

Key Insights and Ideas

  • Head Redundancy per Query: While a large pool of indexer heads is necessary to capture diverse relevance patterns in aggregate, any individual query only relies on a small subset of heads.
  • Slow-Moving Head Relevance: The optimal subset of active indexer heads changes slowly across a prefix, meaning that coarse, block-level statistics are highly predictive of head importance.
  • Decoupled MoE Routing: Traditional attention MoEs route heads that produce the final attention output, directly altering the residual stream. MISA instead routes the indexer heads. This decoupling allows for aggressive head reduction ($8\times$) without harming downstream model quality, as the downstream attention remains dense over the selected token set.

Key Results

  • Maintained Downstream Quality: On LongBench, MISA with just 8 active heads matches the dense DSA indexer within 0.2 points on DeepSeek-V3.2 and surpasses it on GLM-5, outperforming alternative block-sparse methods.
  • Flawless Retrieval: MISA and $MISA^\dagger$ maintain near-perfect, fully green NIAH heatmaps up to 128K context, successfully avoiding the accuracy holes that plague block-uniform selection methods.
Figure 2: Needle-in-a-Haystack retrieval accuracy on DeepSeek-V3.2 up to 128K context. The x-axis is context length and the y-axis is needle depth (0%–100%); greener is better. MISA and MISA† use only h = 8 active indexer heads (vs. HI = 64 for the baselines), with k = 2048 tokens selected; MISA† additionally uses a coarse candidate set of k′ = 8192.
  • Hardware Speedups: Implemented via TileLang, the single-stage MISA kernel achieves a 3.82× wall-clock speedup over DSA's original indexer kernel on a single NVIDIA H200 GPU at 128K context.
Figure 3: Indexer-kernel latency on a single NVIDIA H200 GPU for DSA and MISA, as a function of prefix length. MISA uses h = 8 active heads with router block size B = 1024 and selects k = 2048 tokens. (a) MISA latency. (b) MISA† latency(first stage selects k′ = 8912 tokens). Lower is better.

Limitations and Future Work

  • Kernel vs. End-to-End Latency: The speed benchmarks focus strictly on the isolated indexer kernel rather than the end-to-end latency of the entire LLM generation pipeline.
  • Memory Bandwidth Bottlenecks: While MISA significantly reduces the FLOPs required for token scoring, it does not reduce the raw memory access volume to the KV cache during the indexer stage.
  • Zero-Shot Routing: MISA was evaluated by inserting it post-hoc into pretrained models without further training. The authors suggest that jointly training the router alongside the indexer could close the remaining minor performance gaps on specific sub-tasks.

Summary updated

BibTeX
@misc{zhou2026misa,
  author = {Ruijie Zhou and Fanxu Meng and Yufei Xu and Tongxuan Liu and Guangming Lu and Muhan Zhang and Wenjie Pei},
  title = {{MISA: Mixture of Indexer Sparse Attention for Long-Context LLM Inference}},
  year = {2026},
  eprint = {2605.07363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.07363},
}
Figure