RISA: Recoverable Sparse Attention for Block Diffusion Language Models

RISA designs block-shared, recoverable sparse attention for block diffusion language models, significantly accelerating long-context inference.
RISA is a long-context sparse attention method for block diffusion language models that addresses the memory bottleneck of repeatedly reading the growing historical KV cache at each denoising step. Its key insight is that historical KV stays fixed within a block while queries evolve, so it uses a seed query to build a protected, bounded read plan reused across all steps, recomputing attention with fresh queries. Historical KV is split into exact priority and recovery tiers. On DreamReasoner-8B it achieves 2.67x attention speedup at 32K and 5.53x at 128K with comparable task performance, decoding faster than MAGE, QUEST, and LoSA under matched KL divergence without modifying the backbone or decoder.
Block-wise Diffusion Language Models (DLMs) offer an alternative to token-by-token autoregressive decoding by refining multiple tokens in parallel. However, their long-context inference remains constrained by a memory bottleneck: each denoising step requires repeatedly reading the growing historical key-value (KV) cache. Directly applying sparse attention does not fully solve the problem, since different queries may select different pages, inflating the block's collective read set, while repeatedly building support sets adds overhead, and permanent eviction may discard information needed later. To address this, researchers propose RISA—a recoverable sparse attention method with a shared read plan for block diffusion language models.

The Long-Context Bottleneck of Block Diffusion Models
During inference, block diffusion language models re-read the historical KV cache at every denoising step. As context grows, this read overhead becomes the primary bottleneck. While sparse attention can reduce read volume, it faces two challenges: different queries may select different sparse pages, causing block-level read sets to inflate; repeatedly building sparse support sets incurs additional computational overhead; and permanent eviction of historical information may affect the accuracy of subsequent steps.
RISA's core observation is that within a block, the historical KV remains fixed while queries evolve across denoising steps. Leveraging this property, RISA organizes newly generated history into exact priority and recovery tiers, and builds a protected, bounded read plan using a seed query; the indices of this plan are reused within the block, while attention is recomputed with fresh queries and the current block's KV. In this way, history retention is decoupled from repeated reads, the overhead of building sparse support sets is amortized, and no modifications to the backbone model or decoder are required.
KV Cache (Key-Value Cache) is a critical memory structure during inference for autoregressive and diffusion language models: when generating each token, the model computes and caches key (K) and value (V) vectors for all historical tokens, which are then directly reused in subsequent attention computations to avoid redundant encoding. However, cache size grows linearly with context length, and in long-context scenarios every denoising step must fully read the historical KV from GPU memory, creating a memory bandwidth bottleneck. Although block diffusion models refine multiple tokens in parallel, each denoising step still needs to read the growing historical cache, making read overhead the primary constraint on long-context inference. Sparse attention alleviates this by reading only a subset of historical pages, but the dynamic nature of page selection weakens the benefits at the block level.
Sparse Attention is a class of techniques that reduces computation and memory overhead by computing attention only between a query and a subset of historical tokens (or pages). Common approaches include fixed patterns (e.g., sliding windows, local blocks), content-based routing (e.g., QUEST, MAGE), or budget-based approximation (e.g., LoSA). In autoregressive decoding, each query can independently select its sparse support set; but in block diffusion models, multiple queries within a block evolve across different denoising steps, and if each selects different pages, the union of pages actually read at the block level inflates, offsetting the benefits of sparsification. Moreover, rebuilding the support set at every step itself incurs significant overhead, so a shared, reusable read plan within a block is needed to simultaneously control the read set and construction cost.
RISA's Design and Mechanism
RISA divides the historical KV into exact priority and recovery tiers. The exact priority tier stores the historical information most likely needed by the current block, while the recovery tier retains information that may be needed in future steps but is not currently selected, avoiding permanent eviction. A seed query (the initial query within the block) is used to build a protected, bounded read plan containing a set of page indices, which is reused across all denoising steps within the block. At each step, attention computation uses the current query and the current block's KV, but historical reads access only the pages in the plan.
This design amortizes the cost of building sparse support sets across the entire block rather than rebuilding at every step. At the same time, since the read plan is fixed within the block, the block-level collective read set is controlled, avoiding read inflation caused by different queries selecting different pages. The recovery tier ensures that evicted information can be recovered when needed, balancing sparsity and accuracy.
Seed Query refers to the query representation from the initial or early steps within a block during block diffusion denoising. Since queries in subsequent denoising steps are progressively refined from the initial query, the seed query has high correlation with the final query in attention distribution. RISA exploits this property by using the seed query to pre-build a protected, bounded page read plan and reusing the plan's indices across all denoising steps within the block. This way, plan construction is performed only once at the start of the block, and its overhead is amortized across the entire block; meanwhile, all queries within the block share the same read set, avoiding page-union inflation caused by per-query selection. Attention weights are still recomputed with fresh queries and the current block's KV at each step, preserving the expressive power of intra-block refinement while maintaining sparse reads.
Performance and Experimental Validation
On the DreamReasoner-8B model, RISA maintains comparable task performance. At a 32K context length, the default configuration achieves a 2.67x attention speedup over dense attention, and 1.36x speedup for fixed-trajectory requests; at 128K, the attention speedup reaches 5.53x. Across eight settings on three models, RISA decodes faster than the tested MAGE, QUEST, and LoSA budgets under matched KL divergence conditions.
These results show that RISA significantly improves the inference efficiency of block diffusion language models in long-context scenarios while maintaining task performance. Its property of requiring no model architecture modifications also facilitates integration into existing systems.
KL Divergence Matching is a common criterion for evaluating the fidelity of approximate attention methods: the output distribution of a sparse attention model is compared with that of dense attention (full KV), measuring their difference at a given KL divergence threshold. If a sparse method achieves lower latency at the same KL divergence (i.e., similar output distribution deviation), it indicates a better trade-off between fidelity and efficiency. RISA compares decoding speed against baselines such as MAGE, QUEST, and LoSA under matched KL divergence across three models and eight settings, and the results show RISA is faster, indicating that its shared read plan and recoverable tier design effectively reduce the read overhead of long-context inference while maintaining attention approximation quality.
Significance and Outlook
By exploiting the intrinsic property of block diffusion models—that historical KV remains fixed within a block—RISA achieves efficient recoverable sparse attention. This approach not only alleviates the memory bottleneck of long-context inference but also provides new ideas for applying sparse attention in diffusion language models. In the future, RISA could further optimize the organization strategy of the recovery tier or combine with broader sparse patterns to advance the practical deployment of block diffusion models in long-context tasks.
One-line Summary
RISA designs block-shared, recoverable sparse attention for block diffusion language models, significantly accelerating long-context inference.
Paragraph Summary
RISA is a long-context sparse attention method for block diffusion language models, aimed at solving the memory bottleneck caused by repeatedly reading the growing historical KV cache at each denoising step. Its core observation is that the historical KV remains fixed within a block while queries evolve across denoising steps, so it uses a seed query to build a protected, bounded read plan and reuses the plan's page indices across all steps in the block, with attention recomputed using fresh queries. Historical KV is organized into exact priority and recovery tiers to avoid information loss from permanent eviction. On DreamReasoner-8B, attention speeds up 2.67x at 32K context and 5.53x at 128K, with comparable task performance; under matched KL divergence it decodes faster than MAGE, QUEST, and LoSA, without modifying the model backbone or decoder.
Related articles

Why Learn Python in the AI Era? A Deep Dive with the Author of 'Python Crash Course'
Eric Matthes, author of 'Python Crash Course', discusses why Python remains essential in the AI era, the democratization and risks of AI coding tools, and the value of human creators.

Convex Skill Allegedly Uploads User App Ideas to Remote Servers Without Consent
Convex backend skill allegedly sends user app ideas to remote servers without disclosure, sparking Hacker News debate. We analyze the privacy risks and transparency issues.

The Coding Data Market Booms: How Frontier Labs Buy Training Data
The coding data market is rapidly expanding, with frontier labs as major buyers. This article analyzes the types of data traded, labs' procurement logic, and concerns such as licensing compliance and data contamination.