Discrete diffusion models offer global context awareness and flexible parallel generation. However, uniform random noise schedulers in standard DLLM training overlook the highly non-uniform information density inherent in real-world sequences. This wastes optimization resources on low-density structural glues while leaving high-density logical pivot points severely under-optimized. To address this, we propose an Information Density Driven Smart Noise Scheduler. By extracting information-dense hubs and applying Complementary Priority Masking, our method decouples a single training instance into mutually reinforcing reasoning and syntax samples, forcing the model to master both logical deduction and foundational sequence structure. Experiments demonstrate that our approach improves average accuracy by ~4% across four Code and Math reasoning benchmarks, significantly outperforming uniform baselines. Mechanistic analyses further reveal that probabilistic priority masking effectively mitigates contextual collapse during block diffusion training. Overall, this density-aware strategy efficiently unlocks the reasoning potential of diffusion language models at minimal annotation cost, emerging as a promising new masked data training paradigm for Diffusion LLMs. Our processed dataset can be found at https://huggingface.co/datasets/malr07/opc-sft-stage2-dense-extracted.
Figures & tables
Figure 1: An illustrative comparison of random masking versus our density driven masking
Figure 2: Overview of the Information Density Driven Noise Scheduler Pipeline for one sample. Left: The sample first undergoes LLM-based dense-region identification; Right: Then the sample is duplicated into two, and the Logical Sample is made by prioritize masking dense-regions given noise ratio σt and bias weight w , meanwhile the Syntactic Sample is made by taking logical inverse of the Logical Sample’s mask.
Data
Method
Code Benchmarks
Math Benchmarks
AVG
HumanEval
MBPP
GSM8K
MATH500
None
Original
50.00
55.00
86.58
40.80
58.10
Code + Math
Baseline
57.93
56.80
69.14
37.40
55.32
Code 10% + Math 50%
Ours ( w=2 )
65.24
54.00
73.92
43.60
59.19
Table 1: Comparison of the original model, trained baseline, and our proposed density guide scheduling.
Figure 3: Impact of different bias weights ( w ) on fixed preprocessed data (Code 10% + Math 50%)
Code Processed
Method
Code Benchmarks
Math Benchmarks
AVG
HumanEval
MBPP
GSM8K
MATH500
10%
Hard Sample
62.20
54.80
72.40
40.00
57.35
Soft Priority ( w=2 )
64.02
56.20
73.39
44.20
59.45
20%
Hard Sample
53.05
50.00
73.84
34.40
52.82
Soft Priority ( w=2 )
62.20
49.60
70.36
44.00
56.54
30%
Hard Sample
61.59
53.60
71.49
40.20
56.72
Table 2: Comparison of Hard vs. Soft Priority Masking across different data scaling ratios.
Figure 4: Performance of models trained without complementary masking (priority masking only). Plot area with gray background indicates baseline performance with bias weight w set to 1. The red dashed line indicates the results with complementary sample under the same settings.
Masked diffusion language models (MDLMs) generate text by iteratively unmasking tokens from a fully masked sequence. Their standard confidence-based unmasking strategy systematically defers high-entropy logical connective tokens, degrading reasoning performance. We introduce LogicDiff, an inference-time method that replaces confidence-based unmasking with logic-role-guided unmasking. A lightweight classification head (4.2M parameters, 0.05% of the base model) predicts the logical role of each masked position (premise, connective, derived step, conclusion, or filler) from the base model's hidden states with 98.4% accuracy, and a dependency-ordered scheduler unmasks tokens in logical order. In zero-shot settings, LogicDiff improves LLaDA-8B-Instruct accuracy from 22.0% to 60.7% on GSM8K (+38.7 percentage points) and from 23.6% to 29.2% on MATH-500 (+5.6 pp), with less than 6% speed overhead. However, with 8-shot chain-of-thought prompting, the baseline reaches approximately 70% and LogicDiff provides no additional improvement. Analysis reveals that few-shot prompting implicitly resolves the same ordering problem that LogicDiff explicitly addresses, and that fixed role-based ordering can cause premature commitment to numerical values before sufficient context is available. Our results characterize the Flexibility Trap as primarily a zero-shot phenomenon and identify context-adaptive ordering as a key direction for future work.
Shaik Aman
Independent Researcher, Nellore, Andhra Pradesh, India
Diffusion large language models (dLLMs) offer an efficient alternative to autoregressive models through parallel decoding, yet existing post-training methods largely rely on random masking strategies that overlook intrinsic token dependencies. In this work, we present an empirical analysis of attention in dLLMs and show that tokens attending more strongly to unmasked context exhibit greater generation stability and play a critical role in reasoning. Motivated by these findings, we propose AGDO, an attention-guided denoising and optimization framework that aligns both training and optimization with attention-derived dependencies. AGDO determines the denoising order based on attention structure and emphasizes attention-critical tokens during supervised fine-tuning and reinforcement learning. Experiments on mathematical and coding benchmarks demonstrate that AGDO consistently improves reasoning performance, outperforming state-of-the-art post-training methods for dLLMs.
Jia Deng, Junyi Li, Wayne Xin Zhao +3
Gaoling School of Artificial Intelligence, Renmin University of China · Department of Data Science, City University of Hong Kong · Beijing Key Laboratory of Research on Large Models and Intelligent Governance +2
Masked diffusion language models enable parallel token decoding, providing a promising alternative to the sequential nature of autoregressive generation. However, their iterative denoising process remains computationally expensive because it repeatedly processes the entire sequence at every step. We observe that across these diffusion steps, most token representations remain stable; only a small subset, which we term salient tokens, contributes meaningfully to the next update. Leveraging this temporal sparsity, we present DyLLM, a training-free inference framework that accelerates decoding by selectively computing only these salient tokens. DyLLM identifies saliency by measuring the cosine similarity of attention contexts between adjacent denoising steps. It recomputes feed-forward and attention operations only for salient tokens while reusing cached activations for the remainder. Across diverse reasoning and code-generation benchmarks, DyLLM achieves up to 9.6x higher throughput while largely preserving the baseline accuracy of representative open-source diffusion LLMs, LLaDA, and Dream.
Younjoo Lee, Seungkyun Dan, Junghoo Lee +2
Seoul National University, Seoul, Republic of Korea