arXiv:2611.09239cs.CLNov 2026

Manuscript Offprint

arXiv:2611.09239

DUET: Dual-Sparse Inference for Block Diffusion Language Models

Siyuan Yan, Shen Gu, Xiaoxing Ma, Chun Cao, Jingwei Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Diffusion language models (DLMs) enable parallel token generation through iterative denoising, yet their inference remains costly due to repeated attention over a growing historical prefix and repeated processing of the entire current generation block. Historical attention becomes increasingly expensive as generation progresses, while all current-block positions are propagated through the Transformer at every denoising step even though only a small fraction are typically resolved at that step. In this paper, we introduce Duet, a training-free dual-sparse inference framework that addresses these challenges through prefix Key-Value (KV) sparsity and early query sparsity, respectively. Specifically, Duet exploits the concentration and cross-step stability of historical attention within each generation block to construct a compact historical KV subset that is reused across denoising steps. For query sparsity, Duet predicts update positions from shallow representations and propagates only the corresponding queries through the suffix Transformer layers, avoiding deep computation at positions unlikely to be updated in the current step. Experiments show that Duet maintains competitive accuracy while achieving 1.34×/2.83×1.34\times/2.83\times end-to-end/per-step speedups on LLaDA2.1-mini and 2.41×/4.72×2.41\times/4.72\times on SDAR-8B-Chat-b32 at a 32K context length.

1 Introduction

DLMs have recently emerged as an alternative paradigm for text generation, replacing strictly left-to-right autoregressive decoding with iterative denoising over multiple token positions (Sahoo et al., 2024; Nie et al., 2025; Ye et al., 2025). By updating several positions in parallel, DLMs offer a promising path toward more flexible and potentially faster generation (Wang et al., 2026). Recent advances have demonstrated competitive performance across general language understanding, mathematical reasoning, and code generation tasks (Bie et al., 2025), further motivating interest in efficient DLM inference.

However, the iterative nature of denoising introduces substantial computational redundancy. In block DLM (BDLM) decoding, a current generation block is iteratively refined over multiple denoising steps while conditioning on an generated prefix (Arriola et al., 2025). This inference pattern repeatedly incurs two major sources of unnecessary computation. First, every denoising step attends over the full historical prefix, making attention increasingly expensive as the context grows (Long et al., 2026). Second, all positions in the current block are typically propagated through the full Transformer stack at every denoising step, although only a subset of unresolved positions are ultimately selected for the current update (Liang et al., 2026). These two forms of redundancy jointly make BDLM inference increasingly expensive.

Motivated by these inefficiencies, we introduce Duet, a training-free dual-sparse inference framework for BDLMs. Duet addresses the two sources of redundant computation with complementary sparsity mechanisms. First, current-block queries concentrate much of their historical attention on a compact prefix subset that remains stable across denoising steps within the same generation block. Duet exploits this structure through historical prefix KV sparsity, selecting a compact historical KV subset once for each generation block and reusing it throughout the block. Second, the positions selected by the final decoding update become predictable from early Transformer representations. Duet

∗^{*} Corresponding author.

A PREPRINT

Figure

Figure 1: Illustration of different sparsity patterns in BDLM inference. FOCUS only reduces computation along the query dimension, whereas LoSA only sparsifies the historical prefix. Our method is designed around the two orthogonal computation dimensions, selectively reducing both the query rows propagated through deep layers and the historical prefix KV states they attend to.

leverages this predictability through early query sparsity within block, applying the model's original decoding policy at an early selection layer to identify active query rows and propagating only these rows through the remaining layers. Together, the two mechanisms reduce both historical attention and deep token-wise computation, including attention projections, FFN/MoE modules, and other token-wise operations. We evaluate Duet on LLaDA2.1-mini (Bie et al., 2026) and SDAR-8B-Chat-b32 (Cheng et al., 2025) across long-context and standard reasoning benchmarks. Duet consistently reduces inference cost while preserving competitive generation quality. At a 32K context length, Duet achieves 1.34×/2.83×1.34\times/2.83\times end-to-end/per-step speedups on LLaDA2.1-mini and 2.41×/4.72×2.41\times/4.72\times on SDAR-8B-Chat-b32. We further analyze the two empirical observations underlying Duet, validating that compact historical prefix subsets remain stable within a generation block and that final update positions become highly predictable at early Transformer layers.

Our contributions are summarized as follows:

We identify two complementary sources of redundancy in BDLM inference and show that historical-prefix relevance remains stable within a generation block, while final update positions can be predicted from early Transformer representations.

• We propose Duet, a training-free dual-sparse inference framework that combines prefix KV sparsity with early query sparsity to reduce both historical attention and deep token-wise computation.

• We conduct extensive experiments on two representative BDLMs across long-context, reasoning, code generation, and knowledge benchmarks, demonstrating competitive generation quality and substantial inference speedups.

References (26)