Metraipolis › archive › dc_7cff994f48f7

MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding — arXiv:2610.04313

Source
arXiv
Original
https://arxiv.org/abs/2610.04313
License (as archived)
CC0-1.0
Archived
2026-10-06T05:24:27.768Z
SHA-256 of the archived text
419edad8d02f211bc4bcc462180b7403ac4c9d852a961bf491f572be78a5bd1f
Stable URL of this page
https://metraipolis.com/documento/dc_7cff994f48f7

How to cite

MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding — arXiv:2610.04313 — arXiv, https://arxiv.org/abs/2610.04313 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_7cff994f48f7 (Metraipolis archive dc_7cff994f48f7, sha256 419edad8d02f211bc4bcc462180b7403ac4c9d852a961bf491f572be78a5bd1f)
BibTeX
@misc{dc7cff994f48f7,
  title = {MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding — arXiv:2610.04313},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.04313},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_7cff994f48f7; sha256 419edad8d02f211bc4bcc462180b7403ac4c9d852a961bf491f572be78a5bd1f},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.04313. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Long-context decoding is limited by memory bandwidth, because every output token reads the KV cache of every layer. Sparse decoding reduces this cost by reading only part of the KV cache. We observe that the number of pages a query needs varies widely across KV heads, layers and steps. Fixed budgets are simple, but they are sized for demanding cases and tuned per workload; adaptive budgets follow this variation more flexibly, but existing designs pay for it with extra selection cost or training. At the kernel level, FlashAttention-3 (FA3) and FlashInfer are designed for rows of similar length: with page lists whose length differs per KV head, they either pad the lists (forfeiting much of the sparse saving), leave thread blocks unbalanced, or rely on a host-side plan that runs outside the CUDA graph. We propose MOIRA, a training-free sparse decode path in vLLM whose budget adapts per KV head and per layer. For every request, layer, KV head and step, a coverage rule keeps the smallest set of pages whose estimated attention mass reaches a fraction $\gamma$. A new kernel, self-planning attention, lets each thread block derive its own share of the work from the list lengths, so the whole decode step stays inside the CUDA graph. On an H200, at RULER's 128k context, MOIRA with $\gamma=0.99$ matches dense accuracy while reading about 30% of the pages and reduces the time per output token (TPOT) by 2.2-2.5$\times$ relative to dense FA3; with $\gamma=0.98$ it reduces TPOT by 2.7$\times$ and stays within the noise of dense. Under high serving load it raises throughput by up to 51%. These results suggest that a budget adapted per head and layer, paired with a kernel that keeps such budgets inside the CUDA graph, makes sparse decoding both flexible and fast.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.04313 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T05:24:05.454Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).