MassAlloc Attention: Let Attention Allocate Its Own Compute

Jingze Shi, Zhangyang Peng, Xianduo Li, Yanlin Qi, Xiaotian Lin, Haoxian Chen, Liangdong Wang, Guang Liu and 1 others

The Hong Kong University of Science and Technology (Guangzhou) · Beijing Academy of Artificial Intelligence · Université Paris Cité

Published September 26, 2026 · on the feed September 29, 2026 · ▲ 74 · arXiv 2609.32712

The abstract

FullAttn often assigns negligible normalized mass to much of the causal score space, yet dense kernels execute the complete post-score path after forming each QK tile. We introduce MALA, a fused attention primitive that preserves score access to every legal causal interaction and uses normalized contribution to allocate post-score computation. Forward uses its evolving online-softmax normalizer, while backward reuses the finalized normalizer to derive nested retained support using only standard attention state. A common tolerance governs training and inference, allowing for adaptive retention of the work. MALA reduces low-contribution post-score computation. A matched-work study at 8K isolates the benefit of distribution-adaptive allocation: under exactly matched total post-score work, MALA approaches a per-instance reference-mass oracle, with mean omitted mass of 0.0188% versus 0.0182%. Across context lengths from 1K to 32K tokens, the same tolerance maintains low output and gradient errors relative to the reference. Across a broader controlled associative-recall comparison, MALA closely tracks FullAttn as context grows, reaching 89.67% accuracy at 8K compared with 89.97% for FullAttn. In an attention-operator benchmark at 128K tokens with tensor parallelism, MALA reduces forward and backward latency during training by 2.2x and 3.0x and decoding latency during inference by 1.6x relative to FullAttn. Across scaling-law training from 0.6B to 14B parameters, MALA closely tracks FullAttn in perplexity while reducing total training FLOPs. The resulting 14B models and 32B models from separate continued training achieve comparable knowledge, reasoning, and long-context retrieval scores to FullAttn. These results indicate that allocating post-score computation according to normalized attention contributions can retain the evaluated capabilities of FullAttn while reducing attention computation.

The Brief

3:09

A short podcast summary of the paper. Written and voiced by AI.

Transcript

MassAlloc Attention. Let Attention Allocate Its Own Compute. By Jingze Shi and eight others, from the Hong Kong University of Science and Technology in Guangzhou, the Beijing Academy of Artificial Intelligence, and one other institution. Published on the twenty-sixth of September. Its code repository is worked out: about two hundred source files, with a readme and a licence.

In full attention, FullAttn in the abstract's shorthand, much of the causal score space often ends up with negligible normalized mass. Most of the probability sits on a small part of it. Dense kernels ignore that. Once they have formed each tile of query-key scores, they execute the complete post-score path regardless, spending the same work on interactions that contribute almost nothing as on the ones that carry the output.

MALA is a fused attention primitive that keeps score access to every legal causal interaction, so nothing is ruled out in advance, and then uses each interaction's normalized contribution to decide how much post-score computation to allocate. The scores are still all computed. What changes is where the work after them goes.

The forward pass relies on its evolving online-softmax normalizer. The backward pass reuses the finalized normalizer to derive a nested retained support, and it does so using only the standard state that attention already keeps. A single common tolerance governs both training and inference, which lets the amount of retained work adapt. The result is that low-contribution post-score computation is reduced.

A matched-work study at eight thousand tokens isolates the value of allocating according to the distribution. Under exactly matched total post-score work, MALA approaches a per-instance oracle that knows the reference mass: its mean omitted mass is zero point zero one eight eight percent, against zero point zero one eight two percent for the oracle. Across context lengths from one thousand to thirty-two thousand tokens, the same tolerance keeps output and gradient errors low relative to the reference. In a broader controlled associative-recall comparison, MALA closely tracks FullAttn as context grows, reaching eighty-nine point six seven percent accuracy at eight thousand tokens compared with eighty-nine point nine seven percent.

On an attention-operator benchmark at one hundred and twenty-eight thousand tokens with tensor parallelism, MALA reduces training forward latency by two point two times and backward latency by three times. Decoding latency at inference drops by one point six times relative to FullAttn. Scaling-law training runs from zero point six billion up to fourteen billion parameters, and MALA closely tracks FullAttn in perplexity while reducing total training FLOPs. The fourteen billion parameter models that result, and thirty-two billion parameter models from separate continued training, achieve knowledge, reasoning, and long-context retrieval scores comparable to FullAttn.

Where a fixed sparse pattern would decide in advance which tokens to skip, MALA decides after the scores exist, by how much each interaction actually contributes. Nothing is hidden from the scoring step. Only the follow-on work is rationed, under one tolerance shared by training and inference. The authors read their results as showing that this kind of allocation can retain the evaluated capabilities of FullAttn while doing less attention computation.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Most of attention's work goes where almost nothing lands. Time to ask why.

You train long-context models, and attention is a big part of the bill. Most of each query's probability often lands on a small part of the context.

The road ahead

  1. 1 · The problem ~7 min In long contexts, most attention probability often lands on a few keys, yet the dense kernel does the same heavy work after scoring for every tile.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Keep computing every query-key score, then let each tile's normalized share decide whether the expensive work after scoring is worth doing.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Score every legal tile, test forward tiles against the running normalizer, then test backward tiles against the final normalizer saved by forward.
  6. 6 · The experiment ~6 min You’ll guess: At 128K tokens, how much did MALA cut decoding latency during inference relative to full attention?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.