MAGE: All-[MASK] Block Already Knows Where to Look in Block Diffusion LLM
cs.LG, cs.CL
Submitted: 2026-02-15
Updated: 2026-11-29
License: http://creativecommons.org/licenses/by/4.0/
The gist: Block diffusion LLMs are an emerging paradigm for parallel language generation, but their KV caching makes memory access the dominant bottleneck in long-context inference.
Terminology
Abstract
Block diffusion LLMs are an emerging paradigm for parallel language generation, but their KV caching makes memory access the dominant bottleneck in long-context inference. Sparse attention, which attends only to a small KV subset per query, can reduce this latency with minimal accuracy loss. In block diffusion, however, the B tokens of each block must share a single KV subset, and we show this per-block constraint degrades existing sparse KV estimators by up to 25% in recall. We address this challenge by exploiting a property that emerges from the block-diffusion training objective: it aligns the block-average query across denoising steps, so the All-[MASK] block at the first step already reveals the per-block KV subset for the entire trajectory. We exploit this in MAGE ([MASK]-Guided Sparse Attention), a training-free method that runs one exact attention pass at the first step and reuses its top-k index sets for all remaining steps within the block. Across three block-diffusion families on LongBench, MAGE matches Exact Attention at k=512 with near-lossless accuracy, achieves up to 6.82x end-to-end speedup at 128K context, and runs up to 3.35x and 2.28x faster than Quest and SparseD, designed for AR LLMs and fully bidirectional diffusion LLMs, respectively. The code is available at https://github.com/SNU-ARC/MAGE.
Sources
- Longformer: The Long-Document Transformer
- LLaDA2.0: Scaling Up Diffusion Language Models to 100B
- SDAR: A Synergistic Diffusion-AutoRegression Paradigm for Scalable Sequence Generation
- Mask Tokens as Prophet: Fine-Grained Cache Eviction for Efficient dLLM Inference
- Beyond Next-Token Prediction: A Performance Characterization of Diffusion versus Autoregressive Language Models
- CDLM: Consistency Diffusion Language Models For Faster Sampling
- LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs
- Dream 7B: Diffusion Large Language Models
Related papers
- Biologically Inspired Coordination of Parameter Selection and Update Strength for Language Model Adaptation
- Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerability
- The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning
- On the notion of missingness for path attribution explainability methods in medical settings: Guiding the selection of medically meaningful baselines
- Variable-Length Generative Protein Design via Generalized Poisson Flow
- UniCon: Unified Framework for Efficient Contrastive Alignment via Kernels