Manuscript Offprint
arXiv:2610.23122LED: Improving Masked Diffusion Language Models by Lookahead Editing
香港科技大学 THE HONG KONG UNIVERSITY OF SCIENCE AND TECHNOLOGY
Air 清华大学 智能产业研究院 Institute for AI Industry Research, Tsinghua University
GenSI
ByteDance | Seed
LED: Improving Masked Diffusion Language Models by Lookahead Editing
Yuyan Zhou, Zeyuan Yang, Yuxuan Song, Zhicheng Cai, Hongli Yu, Weiying Ma, Hao Zhou, James Kwok
Department of Computer Science and Engineering, The Hong Kong University of Science and Technology, ByteDance Seed, Institute for AI Industry Research (AIR), Tsinghua University, SIA-Lab of Tsinghua AIR and ByteDance Seed
Equal contribution, Corresponding authors
Abstract
Diffusion large language models (dLLMs) have emerged as a promising alternative to autoregressive language models, enabling non-autoregressive text generation through parallel decoding. Existing dLLMs can be broadly categorized into two families: masked diffusion models (MDMs) and uniform diffusion models (UDMs). In this work, we theoretically show that MDMs are easier to optimize due to their mask-based transition schedule but have lower computational expressivity, whereas UDMs enable iterative state revision and greater expressivity but are substantially harder to train. This trade-off raises a natural question: can we obtain the expressivity of iterative revision without giving up the simple, easy-to-optimize transition schedule of MDMs? Motivated by this analysis, we propose Lookahead Editing (LED), which augments masked diffusion decoding with a rewritable proposal state. At each decoding step, the model performs several lookahead updates to iteratively refine future predictions in this proposal state before committing tokens to the masked sequence. This design introduces a rewritable proposal that uses additional compute to improve expressivity while keeping the simple mask-based transition schedule of MDMs. We fine-tune Qwen2.5-7B and Qwen3-8B to obtain LED-7B and LED-8B, respectively. Across eight benchmarks, LED SFT yields average gains of +11.4 and +7.7 points over standard MDM SFT. Moreover, using SFT alone, LED-8B outperforms LLaDA2.1-16B Q-mode, which is trained with continued pre-training, supervised fine-tuning, and reinforcement learning.
Date: October 19, 2026
Github: https://github.com/LED
Existing dLLMs can be broadly categorized into two families: masked diffusion models (MDMs) [26, 36] and uniform diffusion models (UDMs) [22, 33]. MDMs introduce a dedicated mask token and generate sequences by progressively replacing masked positions with predicted tokens, while UDMs define transitions over the entire vocabulary, allowing each token to be repeatedly replaced by other vocabulary tokens during denoising. Despite sharing the same diffusion-based formulation, MDMs and UDMs exhibit fundamentally different properties in terms of training difficulty and computational expressivity. Following the path-space ELBO decomposition of [3] for dLLMs, which separates the objective into a transition prediction loss and a schedule matching loss, we show that UDMs incur an additional model-dependent schedule matching loss because their transition schedule depends on the denoiser. In contrast, the transition schedule [3] in standard MDMs is independent of the denoiser and subsequently the schedule matching term is zero. This simplifies the learning objective and leads to a smaller excess loss than UDMs.
On the other hand, the training advantage of MDMs comes with a limitation in computational expressivity. We first prove that MDMs remain within [34], a parallel computation model class in which the computational depth remains , even with arbitrary-order prediction and bidirectional attention, sharing the same complexity class with ARMs [18]. UDMs, by contrast, can repeatedly rewrite previously generated tokens. We show that this rewritable state enables them to achieve and support computation, which can represent hierarchical computations of logarithmic depth such as evaluating nested Boolean expressions.
Motivated by the above analysis, we propose Lookahead Editing (LED), which introduces a rewritable proposal that uses additional compute to improve expressivity while preserving the simple mask-based transition schedule of MDMs. For training, we condition LED on proposals generated by a pretrained MDM and optimize a standard cross-entropy loss. Since the proposal sequence generated by the pretrained MDM may contain both correct and incorrect tokens, the model learns when to preserve correct proposal tokens and when to revise incorrect ones. At inference time, LED iteratively alternates between a proposal stage and a commit stage. The proposal stage maintains a rewritable intermediate state in the proposal branch, allowing tokens to be repeatedly generated and revised over multiple lookahead steps. The refined proposal is then used as additional condition in the commit stage, which follows the standard masked diffusion process: once a token is committed, it is fixed and cannot be rewritten in subsequent decoding steps. Across commit stages, LED preserves reliable proposal tokens while revising erroneous ones to improve subsequent proposals.
We fine-tune Qwen2.5-7B and Qwen3-8B on the same training set using standard MDM SFT and LED SFT. Across eight benchmarks in math, code, and science, LED SFT yields average gains of +11.4 and +7.7 points over standard MDM SFT for Qwen2.5-7B and Qwen3-8B, respectively. Moreover, using SFT alone, LED-8B outperforms LLaDA2.1-16B Q-Mode, which is trained with continued pre-training, supervised fine-tuning, and reinforcement learning.
2 Preliminary
2.1 Diffusion Language Models
Diffusion models have demonstrated remarkable success in continuous data domains [14, 16, 31]. Building on these foundations, diffusion language models have been developed to train discrete diffusion models directly within the categorical vocabulary space [5, 22, 26, 31, 36]. Let denote a finite vocabulary and denote a Markov trajectory, where is the state at diffusion time . We denote the clean and terminal noisy states by the random variables and , respectively, and their realizations by and . The predefined forward noising process progressively corrupts to , and the learned reverse generative process progressively denoises to :
where is the forward transition kernel from time to , inducing the path distribution , and is the model-dependent reverse transition kernel, inducing the reverse path distribution , where is the model parameter. MDMs and UDMs differ in their choice of the forward transition kernel: MDMs use an absorbing transition toward a dedicated mask token , whereas UDMs transition toward the uniform distribution over the vocabulary [5],
where denotes the one-hot vector of the mask token, I is identity matrix and controls the noise level between diffusion times s and t. The model parameters are learned by maximizing an evidence lower bound (ELBO) on the data log-likelihood,
Instead of corrupting and generating tokens uniformly over the full sequence length, recent SOTA dLLMs adopt block diffusion language models (BDLMs) [4, 7, 10, 35], which executes discrete diffusion by partitioning the sequence into multiple blocks. Unless otherwise stated, our discussion throughout this paper focuses on BDLMs.
2.2 Circuit Complexity
Circuit complexity [34] provides a standard framework for characterizing the computational expressivity of parallel models. A Boolean circuit is a directed acyclic graph composed of logic gates and is characterized primarily by its size, depth, fan-in, and gate types. Recently, circuit complexity has been used to characterize the expressivity of language models [18, 20, 24]. They consider three families of circuit classes: , , and , where . For an input of length , consists of problems computable by polynomial-size, -depth circuits with bounded-fan-in AND, OR, and NOT gates. is defined similarly but allows AND and OR gates with unbounded fan-in, while further allows unbounded-fan-in MAJORITY gates. These classes satisfy .
With polynomially bounded hidden dimension, constant-depth autoregressive transformers without additional intermediate computation are contained in under logarithmic numerical precision; and in under constant numerical precision. Allowing chain-of-thought steps does not increase these asymptotic upper bounds. The resulting models remain in under logarithmic fixed-point precision, and in under constant precision [18].
3 Optimization-Expressivity Trade-off
MDM and UDM exhibit markedly different behaviors in both training and generation. MDM benefits from the explicit mask state, which provides a strong inductive bias for learning, but its generation process is non-rewriting: once a token is committed, it cannot be revised. UDM, in contrast, allows intermediate states to be repeatedly updated, offering a potentially richer computational mechanism, but removes the explicit masking structure that simplifies transition learning. In this Section, we extend the circuit-complexity perspective to study how the decoding dynamics of diffusion language models affect their computational expressivity.
3.1 Masking Eliminates Schedule Learning
For any path , let be the number of state transitions along the trajectory. Define the transition schedule , where , and changes state at time . Following Amin et al. [3], the ELBO in equation (1) can be decomposed as two losses: is about the state transitions (i.e., where to jump), while is about the transition schedule (i.e., when to jump):
(2) where is a constant independent of the model parameter , and is the pushforward distribution of , i.e. .
The following Theorems show that the schedule-matching term vanishes for MDMs; while for UDMs it depends on the denoiser through the induced reverse jump rate.
Theorem 3.1. For MDM, , , and thus .
Theorem 3.2. For UDMs, let , , and . The schedule-matching loss is , where , , , . and .
The where loss for MDMs and UDMs are implemented using the same cross-entropy (CE) objective [7, 33], while the when loss is implemented using the following tractable schedule-matching objective [8]. Let MDM and UDM both use SGD with the same learning rate , as . The following Theorem shows that with the same where loss, UDMs is harder to train in terms of admitting a smaller learning rate and resulting in a larger loss.
Theorem 3.3. Assume that the gradient noise is unbiased (i.e., ) and the model is sufficiently expressive to represent the data distribution, i.e. . MDM admits a larger learning rate than UDM near the optimum under second order Taylor approximation, i.e., . Moreover, for learning rate satisfying , the expected excess losses satisfy . Since , it follows that .
3.2 Rewriting improves Expressivity
The optimization advantage of masking, however, comes with a structural restriction. Once a position is unmasked and committed, standard masked diffusion does not revise it in subsequent decoding steps. We next study the computational consequence of this monotone generation process.
Following Li et al. [18], we define as the function class of autoregressive transformers, where the four parameters specify, respectively, the number of CoT steps, the hidden dimension, the numerical precision in bits, and the number of exponent bits. Li et al. [18] show that autoregressive transformers with polynomial hidden dimension, -bit numerical precision, and fixed-point arithmetic remain contained in even with CoT steps.
Theorem 3.4 (Li et al. [18]). .
Denote the function class of MDMs by . The first four parameters are the same as , Compared with autoregressive models, MDMs introduce two additional sources of decoding flexibility: bidirectional attention within each block and arbitrary-order generation. The following Theorem shows that, for a constant block size, these additional mechanisms are still insufficient to move the model beyond .
Theorem 3.5. .
above isolates the effect of bidirectional attention by removing CoT, permits CoT steps with arbitrary-order generation. However, they are still insufficient to provide a fundamentally stronger computational resource than autoregressive decoding.
The situation changes when previously generated states can be repeatedly rewritten. Let be the function class of UDMs, where the first four parameters are the same as and , while the last parameter is the size of the rewritable workspace (i.e., CoT length). UDMs allow

Figure 1 Training of Lookahead Editing. The proposal, masked, and clean branches are concatenated and processed by the LED Transformer in a single forward pass. The structured attention mask controls information flow across the three branches, where rows denote query tokens and columns denote key/value tokens. Within each proposal mask block pair, the two branches attend bidirectionally to each other and to all preceding clean blocks, while the clean branch follows block-causal attention.
polynomially many revisions even with a constant-size workspace. The following Theorem shows that with polynomially many revisions over a constant workspace, UDMs can achieve NC .
Theorem 3.6. NC T [poly(n), poly(n), log n, 0, O(1)].
4 Proposed Method: Lookahead Editing
While UDMs offer strong expressivity through iterative state revision, their denoiser-dependent transition schedules hinder optimization. MDMs benefit from simple, schedule-free optimization but suffer from constrained expressivity due to non-rewritable decoding. To bridge this gap, we propose Lookahead Editing (LED), a simple yet effective framework that introduces a rewritable proposal state into masked diffusion decoding. We detail its training and inference procedures below.
4.1 Training
Traditional MDMs adopt a two-branch optimization framework consisting of a masked branch and a clean branch [10, 12, 35]. To enable editing capabilities in MDMs, we add a proposal branch that yields both correct and erroneous tokens, allowing the model to identify erroneous tokens and subsequently correct them while retaining correct tokens. The pseudocode is shown in algorithm 1. For each training sequence, we construct a three-branch input consisting of: (i) a clean branch representing the ground-truth sequence ; (ii) a masked branch , obtained by applying standard masking [4] to ; and (iii) a proposal branch , generated by a pretrained masked block diffusion model conditioned on the concatenated clean and masked branches . We concatenate the clean branch , masked branch , and proposal branch as input to . The attention mask is illustrated in figure 1. Within each mask–proposal block pair, the two blocks attend bidirectionally to each other as well as to all preceding clean blocks, whereas attention within the clean branch remains strictly block-causal. This design enables bidirectional interactions between mask and proposal blocks, while preventing information leakage from future clean tokens. The model outputs corresponding to the masked branch are optimized via a cross-entropy loss against the clean target sequence . Because the proposal tokens generated by are a mix of correct predictions and errors, they provide natural supervision for editing. Specifically, the loss encourages the model to selectively retain accurate proposal tokens while updating inaccurate ones.
Algorithm 1 LED Training.
Input: clean sequence , forward noise process , pretrained model , model , loss
repeat
Sample
Take gradient step on
until converged
Algorithm 2 LED Inference.
Input: model , lookahead steps , sampler algorithm
for to 1 do
for to do
return
▷ Step 1
▷ Step 2
▷ Step 3
Figure 2 Training and inference procedures of Lookahead Editing. During training, a pretrained MDM generates the proposal, and LED is trained on the resulting clean, noised, and proposal branches. During inference, LED performs K iterative lookahead updates before each actual decoding step while retaining the original mask-based sampling schedule.
Current decoding step
Lookahead 1
Lookahead k
Actual decoding step

Figure 3 Lookahead Editing decoding process. Orange arrow denotes and blue arrow denotes sample. At each decoding step, LED performs K lookahead updates on the rewritable proposal state, allowing future predictions to be iteratively explored and refined. The resulting proposal is then used to perform the actual decoding update and advance the sequence to the next decoding step.
4.2 Inference
The pseudocode and schematic overview of our inference procedure are provided in algorithm 2 and figure 3, respectively. At decoding step t, inference maintains three sequence components: prompt p, a partially masked sequence , and a rewritable proposal sequence . Rather than immediately committing tokens from a single-step prediction, performs Lookahead Editing to iteratively refine future predictions prior to commitment:
-
Initial proposal generation: At the beginning of step t, the current proposal and masked sequence are initialized as fully masked sequences and processed by . This yields an initial prediction , which is copied to and serves as the base proposal for the subsequent lookahead iterations.
-
Lookahead proposal refinement: As illustrated in figure 3, for each lookahead step , the proposal block is updated based on the model's output from the preceding step. Passing and into yields updated predictions . These predictions serve as the proposal sequence for the subsequent lookahead step, while high-confidence tokens are sampled by sampler S into the temporary . This allows the draft proposal to be iteratively rewritten and explored across K
Table 1 Results on mathematical reasoning, scientific reasoning, and code generation benchmarks. Models are grouped by their post-training recipes. For LED, the green superscripts indicate the absolute improvements over the corresponding MDM-SFT baseline with the same model size. Avg. denotes the average performance across all eight benchmarks. The best result in each column is shown in bold, and the second-best result is underlined.
| Model | Math | Science | Code | Avg. | |||||
|---|---|---|---|---|---|---|---|---|---|
| MATH500 | AIME24 | AIME25 | GPQA | HumanEval | HumanEval+ | MBPP | MBPP+ | ||
| LLaDA 2.1 16B | |||||||||
| SDAR 8B | |||||||||
| Nemotron 8B | |||||||||
| Dream 7B | |||||||||
| XDLM 8B | |||||||||
| Fast-dLLM 7B | |||||||||
| MDM-SFT 7B | |||||||||
| LED 7B | |||||||||
| MDM-SFT 8B | |||||||||
| LED 8B | |||||||||
steps.
- Decoding commitment: After lookahead steps, the highly refined proposal is combined with to compute token confidence scores. The model then commits a subset of high-confidence tokens in to get , advancing the sequence to the next decoding step.
Decoding alternates between rewritable lookahead drafting and irreversible token commitment until the current block is fully decoded, after which it is appended to p.
5 Experiments
5.1 Experiment Setup
Training Set We construct the training corpus for SFT by combining several curated open-source post-training datasets, including the NVIDIA OpenMathReasoning [25], NVIDIA OpenScience [27], NVIDIA OpenCodeReasoning2 [2], OpenThoughts3 [13], and Mixture-of-Thoughts [28].
Benchmarks We evaluate the models on a comprehensive suite of tasks covering diverse aspects of reasoning abilities. The evaluation suite includes (i) mathematical reasoning tasks: MATH [30], AIME 2024 [15] and AIME 2025 [23]; (ii) scientific reasoning: GPQA [29]; and (iii) code generation tasks: HumanEval, HumanEval+ [9], MBPP, and MBPP+ [6]. All benchmarks are evaluated in a zero-shot setting. We report accuracy on MATH, AIME 2024, AIME 2025, and GPQA, and Pass@1 on HumanEval, HumanEval+, MBPP, and MBPP+.
Baseline We compare LED against 7B–16B models, including MDMs such as Fast-dLLM [35], Dream [36], Nemotron [12], and SDAR [10], as well as hybrid MDM-UDM models such as LLaDA 2.1 [7] and XDLM [21]. All models use confidence-based sampler with a threshold of 0.9.

Figure 4 Speed–accuracy trade-off of LED-8B, LLaDA2.1-16B, and Nemotron-8B on AIME 2025 and HumanEval+ dataset. For LED-8B, different operating points are obtained by varying the number of lookahead steps. For LLaDA2.1-16B, we report its Q and S modes. LED-8B achieves a stronger Pareto frontier across both benchmarks.
5.2 Comparison with Existing dLLMs
We initialize our models from Qwen2.5-7B and Qwen3-8B and perform LED SFT. All models are trained with a block size of 32, a global batch size of 512, a sequence length of 16,384, and a constant learning rate of with Adam optimizer. Compared with SFT-only baselines, including Fast-dLLM (41.7 average accuracy) and XDLM (24.1), LED-8B achieves an average score of 68.5, outperforming them by +26.8 and +44.4 points, respectively. We further compare LED with dLLMs trained using more extensive post-training pipelines. Among models trained with continued pre-training (CPT) followed by SFT, Nemotron-8B achieves the highest average score of 59.5, while SDAR-8B and Dream-7B achieve 49.9 and 35.3, respectively. With SFT alone, LED-8B achieves an average score of 68.5, outperforming Nemotron-8B by +9.0 points. Moreover, LED-8B also surpasses LLaDA2.1-16B, which is trained with CPT, SFT, and RL, by +0.6 points on average. These show that LED is highly competitive despite using SFT alone.
Moreover, we also train LED and the standard MDM SFT [4] on the same dataset under identical training settings for a controlled comparison. As shown in table 1, LED consistently improves over the corresponding MDM-SFT baseline across all eight benchmarks and at both model scales. For the 7B model, LED increases the average score from 45.4 to 56.8, corresponding to an absolute improvement of +11.4 points. The gains are consistent across mathematical reasoning, scientific reasoning, and code generation, with the largest improvement of +13.4 points on AIME 2024. A similar trend is observed for the 8B model, where LED improves the average score from 60.8 to 68.5, yielding a +7.7-point gain. In particular, LED achieves a substantial improvement of +16.7 points on AIME 2025. These results demonstrate that introducing rewritable lookahead proposals consistently improves masked diffusion fine-tuning across different model scales and task domains.
5.3 Speed-Accuracy Trade-off
figure 4 compares the speed-accuracy trade-off of LED-8B against LLaDA2.1-16B and Nemotron-8B on AIME 2025 and HumanEval+ datasets. For LED-8B, we vary the number of lookahead steps from 0 to 2, yielding different operating points along the accuracy–throughput Pareto front. For LLaDA2.1-16B, we report results for both its Q and S modes, which are designed to prioritize generation quality and speed, respectively. For Nemotron-8B, we report the accuracy obtained using greedy threshold decoding.
On AIME 2025 dataset, LED-8B achieves accuracy-throughput pairs of (40.0, 16), (36.7, 31), and (33.3, 44), where throughput is measured in tokens per second. In comparison, LLaDA2.1-16B achieves (36.7, 20) and (33.3, 25) in its Q and S modes, respectively. At matched accuracy, LED-8B consistently achieves substantially higher throughput: at 36.7% accuracy, it reaches 31 tokens/s compared with 20 tokens/s for LLaDA2.1-16B (1.55× faster), while at 33.3% accuracy, it reaches 44 tokens/s compared with 25 tokens/s (1.76× faster). Nemotron-8B achieves its highest accuracy 33.3% at 40 tokens/s, which is also dominated by LED-8B, which

Figure 5 Hyper-parameter analysis of the number of lookahead steps K and proposal threshold on AIME 2025 and HumanEval+ dataset. A moderate number of lookahead steps (K = 2) generally yields the strongest performance, with achieving the best results on AIME 2025 and HumanEval+ benchmarks.
attains the same accuracy at 44 tokens/s.
A similar trend is observed on HumanEval+. LED-8B achieves (84.1, 14), (82.3, 25), and (81.7, 43), whereas LLaDA2.1-16B achieves (81.1, 32) and (77.4, 37). In particular, at its high-throughput operating point, LED-8B achieves both higher accuracy and higher throughput than LLaDA2.1-16B: 81.7% at 43 tokens/s versus 81.1% at 32 tokens/s. It also Pareto-dominates Nemotron-8B, which achieves 79.3% at 40 tokens/s. Overall, these results show that lookahead provides LED with a flexible mechanism for trading generation speed for accuracy, while yielding a stronger speed-accuracy Pareto frontier than the compared diffusion language models across both mathematical reasoning and code generation.
5.4 Hyper-parameter Analysis
We study the effect of two key hyper-parameters in LED: proposal threshold and number of lookahead steps K. Figure 5 reports the results on AIME 2025 and HumanEval+. Overall, the two hyper-parameters jointly control how aggressively the model exploits its lookahead proposals, and we find that a moderate lookahead times combined with an appropriate proposal threshold yields the best performance.
Proposal Threshold. The proposal threshold controls the acceptance of lookahead proposals. At a fixed number of lookahead iterations, the performance varies noticeably with , indicating that appropriately filtering proposal tokens is important. For K = 2, increasing the threshold from to substantially improves AIME 2025 accuracy from 33.3% to 43.3%, while HumanEval+ increases from 79.9% to 84.1%. Further increasing the threshold does not consistently improve performance: on AIME 2025, and both achieve approximately 40.0%, This suggests that an overly aggressive or overly conservative proposal selection criterion can both be suboptimal, and that an intermediate threshold provides a better balance between exploiting useful proposals and filtering unreliable ones. Among the configurations shown, with K = 2 achieves the best performance on both benchmarks.
Number of Lookahead Steps K. Without sufficiently deep lookahead, the model obtains relatively limited gains: on AIME 2025, the accuracy remains at 33.3% for K = 0 and K = 1. Increasing the look ahead times to K = 2 leads to a substantial improvement, reaching up to 43.3% on AIME 2025 and 84.1% on HumanEval+. However, further increasing K does not consistently yield additional benefits. On AIME 2025, performance drops considerably for K = 3 and K = 4 across different threshold choices, suggesting that excessively long lookaheads may accumulate inaccurate proposals and reduce their usefulness for subsequent generation. A similar, although less pronounced, trend is observed on HumanEval+. Interestingly, with a conservative threshold of , K = 4 still achieves 83.5%, indicating that longer lookahead can remain effective when low-confidence proposals are sufficiently filtered. Overall, these results suggest that a moderate look ahead times, particularly K = 2, provides a robust balance between obtaining informative future context and avoiding error accumulation from excessively long proposal lookahead.
6 Conclusion
In this work, we analyzed the trade-off between optimization simplicity and computational expressivity in diffusion language models. Our theoretical analysis reveals that: masked diffusion models are easier to optimize due to their simple mask-based transition schedules but have limited iterative revision capability, whereas uniform diffusion models achieve greater computational expressivity through iterative state revision at the cost of more challenging optimization. Motivated by this trade-off, we propose Lookahead Editing (LED), which augments masked diffusion decoding with a rewritable proposal state. By repeatedly refining future predictions in the proposal state before committing tokens to the masked sequence, LED introduces iterative revision capability while preserving the simple transition structure of masked diffusion. Across eight reasoning and code-generation benchmarks, LED consistently improves over standard MDM fine-tuning, with LED-8B further outperforming the more extensively post-trained LLaDA2.1-16B while achieving a stronger speed-accuracy Pareto front than existing dLLM baselines. Overall, our results demonstrate that LED effectively bridges the gap between the optimization simplicity of masked diffusion and the iterative refinement capability of more expressive diffusion processes.
References
[1] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. Preprint arXiv:2303.08774, 2023.
[2] Wasi Uddin Ahmad, Somshubra Majumdar, Aleksander Ficek, Sean Narenthiran, Mehrzad Samadi, Jocelyn Huang, Siddhartha Jain, Vahid Noroozi, and Boris Ginsburg. Opencodereasoning-ii: A simple test time scaling approach via self-critique. Preprint arXiv:2507.09075, 2025.
[3] Alan Amin, Nate Gruver, and Andrew Wilson. Why masking diffusion works: Condition on the jump schedule for improved discrete diffusion. In NeurIPS, 2025.
[4] Marianne Arriola, Aaron Gokaslan, Justin T Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, and Volodymyr Kuleshov. Block diffusion: Interpolating between autoregressive and diffusion language models. Preprint arXiv:2503.09573, 2025.
[5] Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. In NeurIPS, 2021.
[6] Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. Preprint arXiv:2108.07732, 2021.
[7] Tiwei Bie, Maosong Cao, Xiang Cao, Bingsen Chen, Fuyuan Chen, Kun Chen, Lun Du, Daozhuo Feng, Haibo Feng, Mingliang Gong, et al. Llada2. 1: Speeding up text diffusion via token editing. Preprint arXiv:2602.08676, 2026.
[8] Andrew Campbell, Joe Benton, Valentin De Bortoli, Thomas Rainforth, George Deligiannidis, and Arnaud Doucet. A continuous time framework for discrete denoising models. In NeurIPS, 2022.
[9] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario
Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. Preprint arXiv:2107.03374, 2021.
[10] Shuang Cheng, Yihan Bian, Dawei Liu, Linfeng Zhang, Qian Yao, Zhongbo Tian, Wenhai Wang, Qipeng Guo, Kai Chen, Biqing Qi, et al. Sdar: A synergistic diffusion-autoregression paradigm for scalable sequence generation. Preprint arXiv:2510.06303, 2025.
[11] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. Preprint arXiv:2407.21783, 2024.
[12] Yonggan Fu, Lexington Whalen, Abhinav Garg, Chengyue Wu, Maksim Khadkevich, Nicolai Oswald, Enze Xie, Daniel Egert, Sharath Turuvekere Sreenivas, Shizhe Diao, et al. Nemotron-labs-diffusion: A tri-mode language model unifying autoregressive, diffusion, and self-speculation decoding. Preprint arXiv:2607.05722, 2026.
[13] Etash Guha, Ryan Marten, Sedrick Keh, Negin Raoof, Georgios Smyrnis, Hritik Bansal, Marianna Nezhurina, Jean Mercat, Trung Vu, Zayne Sprague, et al. Openthoughts: Data recipes for reasoning models. In ICLR, 2026.
[14] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In NeurIPS, 2020.
[15] Maxwell Jia. Aime problem set 2024, 2024. URL https://huggingface.co/datasets/Maxwell-Jia/AIME_2024.
[16] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In NeurIPS, 2022.
[17] Samar Khanna, Siddhant Kharbanda, Shufan Li, Harshit Varma, Eric Wang, Sawyer Birnbaum, Ziyang Luo, Yanis Miraoui, Akash Palrecha, Stefano Ermon, et al. Mercury: Ultra-fast language models based on diffusion. Preprint arXiv:2506.17298, 2025.
[18] Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers to solve inherently serial problems. In ICLR, 2024.
[19] Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. Deepseek-v3 technical report. Preprint arXiv:2412.19437, 2024.
[20] Bingbin Liu, Jordan T Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Transformers learn shortcuts to automata. In ICLR, 2023.
[21] Yue Liu, Yuzhong Zhao, Zheyong Xie, Qixiang Ye, Jianbin Jiao, Yao Hu, Shaosheng Cao, and Yunfan Liu. Balancing understanding and generation in discrete diffusion models. In ICML, 2026.
[22] Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion modeling by estimating the ratios of the data distribution. Preprint arXiv:2310.16834, 2023.
[23] math ai. Aime problem set 2025, 2025. URL https://huggingface.co/datasets/math-ai/aime25.
[24] William Merrill and Ashish Sabharwal. The parallelism tradeoff: Limitations of log-precision transformers. In TACL, 2023.
[25] Ivan Moshkov, Darragh Hanley, Ivan Sorokin, Shubham Toshniwal, Christof Henkel, Benedikt Schifferer, Wei Du, and Igor Gitman. Aimo-2 winning solution: Building state-of-the-art mathematical reasoning models with openmathreasoning dataset. Preprint arXiv:2504.16891, 2025.
[26] Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. In NeurIPS, 2025.
[27] NVIDIA. Openscience: A multi-domain synthetic dataset for general-purpose reasoning. URL https://huggingface.co/datasets/nvidia/OpenScience.
[28] open r1. Mixture-of-thoughts. URL https://huggingface.co/datasets/open-r1/Mixture-of-Thoughts.
[29] David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. COLM, 2024.
[30] Grefenstette Saxton and Kohli Hill. Analysing mathematical reasoning abilities of neural models. Preprint arXiv:1904.01557, 2019.
[31] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015.
[32] Yuxuan Song, Zheng Zhang, Cheng Luo, Pengyang Gao, Fan Xia, Hao Luo, Zheng Li, Yuehang Yang, Hongli Yu, Xingwei Qu, et al. Seed diffusion: A large-scale diffusion language model with high-speed inference. Preprint arXiv:2508.02193, 2025.
[33] Adrien Ali Taïga, James Assiene, Daniele Calandriello, Rahma Chaabouni, João Gante, Tamara von Glehn, Nate Keating, Chris Knutsen, Martin Kukla, et al. Diffusionemma technical report. Preprint arXiv:2608.00146, 2026.
[34] Heribert Vollmer. Introduction to circuit complexity: a uniform approach. Springer Science & Business Media, 1999.
[35] Chengyue Wu, Hao Zhang, Shuchen Xue, Shizhe Diao, Yonggan Fu, Zhijian Liu, Pavlo Molchanov, Ping Luo, Song Han, and Enze Xie. Fast-dllm v2: Efficient block-diffusion llm. In ICLR, 2026.
[36] Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. Dream 7b: Diffusion large language models. Preprint arXiv:2508.15487, 2025.
[37] Fengqi Zhu, Rongzhen Wang, Shen Nie, Xiaolu Zhang, Chunwei Wu, Jun Hu, Jun Zhou, Jianfei Chen, Yankai Lin, Ji-Rong Wen, et al. Llada 1.5: Variance-reduced preference optimization for large language diffusion models. In NeurIPS, 2025.
Appendix
A Proof of theorem 3.1
Proof. For a masked diffusion model, let denote the transition time from a clean token to the absorbing mask state . We have
Hence, the cumulative distribution function and the corresponding probability density function of the forward transition schedule are
We next derive the transition-time distribution under the reverse process. For , by Bayes' rule,
The standard MDM reverse transition is obtained by marginalizing this exact posterior over the model prediction of the clean token:
(6)
Since , we have:
Setting the later time in equation (6) to 1 therefore gives
Under the reverse path distribution, the same deterministic map associates each trajectory with its transition time. Since if and only if , we have
Thus, the cumulative distribution function and probability density function of the reverse transition schedule are
Comparing equations (4) and (10), we have , . Since the two schedule distributions have the same density, the pushforward distributions induced by under the forward and reverse path distributions coincide: . Consequently,
B Proof of theorem 3.2
For a trajectory X in UDMs, define its transition schedule as
where each satisfies . The UDM forward kernel is , where , . Define the forward noise rate . It follows that . For an infinitesimal interval of length ,
For any ,
Therefore, the forward jump rate is . Summing over all possible destination states gives the total forward jump rate
We now derive the induced schedule density. Let denote the probability that no transition occurs on . By the definition of the total jump rate,
Therefore,
with initial condition . Solving this differential equation gives
Consequently, for a schedule , , its density is
We first derive the reverse jump rate induced by the denoiser. For , Bayes' rule gives
By the Markov property,
(12) while
Hence
Therefore, the exact reverse rate conditioned on is
The reverse model does not observe . Let denote the denoiser prediction of the clean-state posterior given . Marginalizing over gives the model reverse rate:
The total reverse jump rate is therefore . Substituting the previous expression gives
There are two cases.
If , then
while
Thus
If , then
and therefore
Hence
Finally,
To express the reverse process in increasing time, define , . The reverse generative process then evolves along . Define its state-conditioned jump rate by . Let denote the schedule counting process of reverse transitions in , and let denote the history states generated only by transition times strictly before .
Conditioned on the current state,
Marginalizing the latent state gives
Therefore, the conditional intensity of the marginal schedule process is
Equivalently,
Let , , where . Let denote the conditional probability that no transition occurs on along the observed schedule history. By the definition of ,
By definition of partial derivative, we have:
and, since ,
The density of observing transitions exactly at and no additional transitions is therefore
We now express the forward schedule in the same reverse-time coordinate. Define
Since the transformation is bijective with unit absolute Jacobian,
Moreover,
We therefore have
Substituting the two schedule densities gives
It remains to convert the sum over observed transition times into an integral. For any predictable function ,
Under the forward schedule distribution p, the counting process has intensity , and thus
Using the tower property,
Taking yields
Combining the two terms gives the schedule-matching loss:
C Proof of theorem 3.3
For each sample when loss is
The gradient w.r.t is
Therefore, at the optimum , we have
The gradient w.r.t is
The Hessian is,
Therefore
Taking expectation,
For any ,
Therefore, is positive semidefinite. Since , we have . Therefore, .
We next characterize the stochastic-gradient covariance. For each model , let denote one stochastic training sample and let denote the corresponding sample negative log-likelihood. Define the sample gradient , and let denote the score function. Then . For any , the score has zero mean under the model distribution:
Differentiating equation (21) w.r.t gives
Using , we have
At the optimum , the single-sample stochastic-gradient covariance is
For a mini-batch of B iid samples,
By independence,
Since the loss of UDM and MDM has the form of negative log-likelihood, the local gradient-noise covariance is , . Since , we have
Thus, .
Consider either model and define . Under the second order Taylor approximation,
and therefore
Write the stochastic gradient as
where . The SGD update is
Subtracting from both sides yields
Define . Since , we have
Therefore, the common learning-rate condition implies for both .
Diagonalize , where . Then
For every eigenvalue , , which implies . Hence , and therefore as .
Define the second-moment matrix . From equation (22), we have
Taking expectation, the cross terms vanish because
Thus
Iterating it gives
Using , and , we have
The i-th diagonal entry in the eigenbasis is
Since
we have
Equivalently,
Under the second order Taylor approximation,
Therefore,
Taking and using equation 23,
We have already established . Multiplying by the negative scalar reverses the Loewner order:
Adding 2I gives
For positive-definite matrices, inversion reverses the Loewner order. Therefore, equation 25 implies
Define . Using , we have
and hence
Combining equation 26 and equation 27,
Therefore,
Using equation 24, we have
D Proof of theorem 3.5
We first show that replacing causal self-attention with block-causal self-attention does not increase the circuit complexity of one forward pass. Li et al. [18] show that a constant-depth decoder-only Transformer with hidden dimension poly(n), numerical precision , and zero exponent bits can be simulated by a polynomial-size constant-depth threshold circuit. Their analysis considers causal self-attention, where the attention weights at position i are
Our MDM uses block-causal self-attention. For any , let be the right endpoint of the block containing position . Then the attention weights at position are
Thus the only difference is that the causal prefix endpoint is replaced by . Since , the same finite-precision inner-product, softmax, and weighted-summation operations considered by Li et al. [18] are applied to at most inputs of bits. Thus the same simulation applies to block-causal self-attention. In particular, one forward pass of the MDM can be computed by a polynomial-size constant-depth threshold circuit.
We next adapt the parallel-enumeration argument of Li et al. [18] to MDM decoding. Let be the set of block-local decoding states needed to specify one decoding step, where each state specifies the token/mask configuration of the active block and its block-local generation order. Since and , we have .
A T-step MDM trajectory can therefore be represented by . For , the number of candidate trajectories is at most .
We enumerate all candidate trajectories in parallel. Fix a candidate . For every , let denote the MDM state obtained from after applying the first candidate actions , where . For every , define
Thus if and only if the t-th candidate action is consistent with the MDM decoding rule.
For a fixed , the actions are fixed. Hence is determined by and , and does not require the preceding model evaluations to be carried out sequentially. Thus all can be evaluated in parallel.
By the above single-forward-pass argument, can be computed by a polynomial-size constant-depth threshold circuit. Since has constant size, testing equality with also takes constant depth. Thus for every and .
For each candidate trajectory , define . Since allows unbounded-fan-in AND gates, . Under a deterministic decoding rule with fixed tie-breaking, for every input there is a unique trajectory such that .
Let denote the final output corresponding to candidate trajectory . For every output bit j, define
Since there are only poly(n) candidate trajectories and allows unbounded-fan-in OR gates, . Moreover, since is the unique consistent trajectory, . Thus computes exactly the output of the original T-step MDM. This completes the proof.
E Proof of theorem 3.6
Let be arbitrary. By Barrington's theorem, for every , there exists a width-5 permutation branching program of length that computes . Each instruction is of the form , where and . For an input , define , where if and . The branching program can be chosen such that, for some fixed ,
We construct a constant-depth UDM that simulates one instruction of at each decoding step. Define and for , where is the identity element of . It therefore suffices to maintain in a rewritable workspace.
Let the vocabulary contain the input symbols and one workspace symbol for each . For every , let denote its one-hot encoding. Since , all representations associated with permutations have constant dimension.
Let and use in [18] to denote the signed binary representation of an address . We reserve address for the workspace. Let be a sufficiently large constant and take the hidden dimension to be . We partition the coordinates of each hidden representation into blocks storing, respectively, the input value, the position address, the query address, the current permutation state, the two permutations in the current instruction, the retrieved input bit, the next permutation state, a constant 1, and auxiliary coordinates.
For every input position , we choose the token and positional embeddings such that
where each zero denotes the zero vector of the corresponding block.
Suppose that before decoding step , the workspace token is . Its token embedding places in the current-state block. The externally supplied timestep embedding at step encodes the instruction by placing , and in the query-address and instruction blocks. Hence the initial hidden representation at the workspace position, denoted by *, is
We next construct the attention layer. Following the exact-addressing construction of Li et al. [18], we choose fixed linear projections , , such that reads the query-address and constant-1 blocks, reads the position-address and constant-1 blocks, and reads the input-value coordinate. In particular,
while, for every ,
where denotes a designated retrieved-bit coordinate. At the workspace position,
These projections are realizable by fixed linear maps since they only select, rescale, duplicate, and relocate coordinates of the hidden representation.
By the exact-addressing lemma of Li et al. [18],
for every . Moreover, , so the workspace position itself receives zero attention weight. Hence the attention vector at the workspace position selects exactly position , and its attention output is
where places the result in the retrieved-bit coordinate. After the residual connection, the workspace representation therefore contains , and .
We now construct the feed-forward layer implementing the branching-program transition. For and , let , and denote the corresponding coordinates of the current-state, , and one-hot blocks of . Let denote the retrieved-bit coordinate and define and . For every , define
Since all four quantities inside the sum are binary,
Thus exactly one such hidden unit is equal to 1.
For , define
For every , define the corresponding next-state coordinate by
Since exactly one is nonzero,
Therefore the next-state block is exactly
The above mapping is realizable by a two-layer ReLU network of constant width, since is independent of . Moreover, all weights appearing in this construction belong to a fixed finite set and are therefore exactly representable under bits of fixed-point precision.
We choose the output projection so that, for every , the logit of the workspace symbol is the coordinate . Hence has logit 1, whereas every other workspace symbol has logit 0. Under deterministic argmax decoding, the model therefore outputs
which rewrites the previous workspace token using the same workspace location.
We now verify the construction inductively. For every , the workspace position satisfies
and, after the attention layer,
while the next-state block after the feed-forward layer is .
We claim that
for every . The claim is immediate for since . Suppose it holds at step . At step , the timestep embedding supplies . By the attention construction above, the retrieved-bit coordinate is exactly . The feed-forward layer therefore computes
Using the induction hypothesis,
which establishes the claim.
After decoding steps,
By the defining property of the branching program, if and only if . Since has constant size, this final equality test is realizable by a constant-size output layer.
Finally, by Barrington's theorem. The signed-binary address blocks require coordinates, whereas all permutation-related blocks have constant dimension. Thus the construction in fact uses hidden dimension, and hence certainly . It uses bits of fixed-point precision and no exponent bits. Only one workspace token is preserved and rewritten between decoding steps, so . Therefore
Since was arbitrary, the result follows.