Source-linked AI summary

Taming Masked Diffusion Language Models via Consistency Trajectory Reinforcement Learning with Fewer Decoding Step

Jingyi Yang, Guanxu Chen, Xuhao Hu, Jing Shao

arXiv:2509.23924v1cs.CLcs.AI

TL;DR

MDLM decoding strategies and RL methods remain underexplored, including how to address the mismatch between non-causal rollouts and optimization. The paper proposes EOSER, ASS, and CJ-GRPO; experiments on reasoning tasks report that CJ-GRPO is effective and efficient, with the combined approach offering potential for performance with fewer decoding steps.

  • Problem

    MDLM decoding strategies and RL algorithms remain underexplored, including how to align rollout and optimization trajectories under non-causal decoding.

    Source: §1 · p. 2
  • Method

    The paper combines EOSER for early <EOS> suppression, ASS for an ascending decoding schedule, and CJ-GRPO to align rollout and optimization trajectories.

    Source: §1 · pp. 2–3, §3.3 · p. 5
  • Results

    Experiments on reasoning tasks demonstrate CJ-GRPO’s effectiveness and efficiency, with EOSER and ASS together showing potential for considerable performance with fewer decoding steps.

    Source: §1 · p. 3, §5 · p. 10
  • Takeaways & Limitations

    The proposed components provide an approach to full-diffusion MDLM decoding and reinforcement learning with fewer decoding steps.

    Source: §5 · pp. 9–10

    CJ-GRPO’s memory overhead grows proportionally with the number of denoising steps because it stores intermediate states.

    Source: §3.4 · p. 6

Abstract

from arXiv · show

Masked diffusion language models (MDLMs) have recently emerged as a promising alternative to autoregressive (AR) language models, offering properties such as parallel decoding, flexible generation orders, and the potential for fewer inference steps. Despite these advantages, decoding strategies and reinforcement learning (RL) algorithms tailored for MDLMs remain underexplored. A naive approach is to directly transfer techniques well-established for AR models to MDLMs. However, this raises an immediate question: Is such a naive transfer truly optimal? For example, 1) Block-wise and semi-AR decoding strategies are not employed during the training of MDLMs, so why do they outperform full diffusion-style decoding during inference? 2) Applying RL algorithms designed for AR models directly to MDLMs exhibits a training-inference inconsistency, since MDLM decoding are non-causal (parallel). This results in inconsistencies between the rollout trajectory and the optimization trajectory. To address these challenges, we propose EOS Early Rejection (EOSER) and Ascending Step-Size (ASS) decoding scheduler, which unlock the potential of MDLMs to perform full diffusion-style decoding, achieving competitive performance with fewer decoding steps. Additionally, we introduce Consistency Trajectory Group Relative Policy Optimization (CJ-GRPO) for taming MDLMs, which emphasizes the consistency between rollout trajectory and optimization trajectory, and reduces the optimization errors caused by skip-step optimization. We conduct extensive experiments on reasoning tasks, such as mathematical and planning benchmarks, using LLaDA-8B-Instruct. The results demonstrate that the proposed EOSER and ASS mechanisms, together with CJ-GRPO, hold significant promise for effectively and efficiently taming MDLMs. Code: https://github.com/yjyddq/EOSER-ASS-RL.

1 INTRODUCTION

The introduction identifies unresolved decoding and reinforcement-learning challenges in MDLMs. It proposes EOSER, ASS, and CJ-GRPO to address them and support full-diffusion decoding with fewer steps.

1 INTRODUCTION

  • Full diffusion can fall into an “<EOS> Trap” when early high EOS confidence leads to premature termination; direct AR-style RL also mismatches MDLMs’ non-causal rollout and optimization trajectories.The introduction also notes that storing intermediate denoising states makes consistent online RL memory-intensive.Source: §1 · p. 2
  • EOSER suppresses <EOS> confidence early and gradually restores it during denoising, significantly improving full-diffusion decoding performance.The method is intended to alleviate the <EOS> Trap.Source: §1 · p. 2
  • ASS replaces uniform step sizes with cautious early decoding and more aggressive later decoding, reducing decoding steps from L to log2 L.This schedule follows the observed rise in average token confidence as denoising progresses.Source: §1 · p. 3
  • CJ-GRPO aligns rollout and optimization denoising trajectories, reducing skip-step optimization errors and showing potential for considerable performance with fewer decoding steps alongside EOSER and ASS.It is designed to account for full diffusion decoding’s non-causal nature.Source: §1 · p. 3

2 RELATED WORK

Related work describes the development of MDLMs and their capabilities, then reviews online RL for diffusion language models and its fit with non-causal decoding.

2.1 MASKED DIFFUSION LANGUAGE MODELS

  • MDLMs have reached the billion-parameter scale, with reported performance comparable to similarly sized autoregressive models.The section situates masked diffusion among other diffusion language-model approaches and notes its parallel decoding, flexible order, and potential for fewer inference steps.Source: §2.1 · p. 3

2.2 ONLINE REINFORCEMENT LEARNING FOR DIFFUSION LANGUAGE MODELS

  • Prior MDLM work explores reasoning tasks, while d1 applies GRPO and LLaDOU explores online RL approaches for diffusion language models.Source: §2.2 · p. 3
  • Policy-gradient RL designed for causal, token-by-token autoregressive generation is not directly applicable to MDLMs’ non-causal attention.Source: §2.2 · p. 3

3 METHODOLOGY

The methodology develops full-diffusion decoding and reinforcement-learning methods for MDLMs: EOSER addresses premature termination, ASS adapts token counts to denoising confidence, and CJ-GRPO aligns rollout and optimization trajectories. It also describes masked-token training.

3.1 MASKED DIFFUSION LARGE LANGUAGE MODELS

  • MDLMs train a mask predictor on partially masked sequences to recover clean text, with instruction tuning leaving prompts unchanged while masking responses.The training objective minimizes a negative evidence lower bound that upper-bounds negative log-likelihood.Source: §3.1 · pp. 3–4

3.2 EOS EARLY REJECTION

  • EOSER suppresses EOS confidence during early denoising, then restores it later to prevent premature sequence termination in full-diffusion decoding.The EOS trap arises because early-step EOS confidence is disproportionately high relative to non-EOS confidence.Source: §3.2 · pp. 4–5

3.3 ASCENDING STEP-SIZE SCHEDULER FOR FEWER STEPS INFERENCE

  • ASS reduces empirically optimal uniform steps from L/2 to log2 L, lowering time complexity from O(L) to O(log2 L).The scheduler uses a power-of-2 schedule, decoding fewer tokens early and more later as token confidence rises.Source: §3.3 · pp. 5–6

3.4 CONSISTENCY TRAJECTORY GROUP RELATIVE POLICY OPTIMIZATION

  • CJ-GRPO records intermediate denoising states and uses them to align optimization with rollout, addressing confidence mismatches from masked-context MDLM trajectories.Storing intermediate states increases memory overhead with the number of denoising steps; using ASS is described as reducing both time and space complexity.Source: §3.4 · p. 6

4 EXPERIMENTS

Experiments test decoding strategies and CJ-GRPO on LLaDA-8B-Instruct across reasoning benchmarks. Results show that combining CJ-GRPO, EOSER, and ASS can retain strong performance with substantially fewer decoding steps, while outcomes differ between planning and mathematics.

4.1 IMPLEMENTATION DETAILS

  • LLaDA-8B-Instruct is evaluated on GSM8K, MATH500, Countdown, and Sudoku with zero-shot prompting and greedy decoding.The evaluation compares SFT, diffu-GRPO, and CJ-GRPO.Source: §4.1 · p. 7

4.2 MAIN RESULTS

  • CJ-GRPO+Semi-AR beats SFT and diffu-GRPO across all tasks and 16 settings; CJ-GRPO+EOSER excels in planning but lags on mathematics.On Sudoku, CJ-GRPO+EOSER reaches approximately twice the performance of CJ-GRPO+Semi-AR and four times that of diffu-GRPO.Source: Table 1 · p. 8, §4.2 · pp. 8–9
  • With only 7/8 (log2 L) steps, CJ-GRPO+EOSER+ASS significantly surpasses other methods in all settings and surpasses original diffu-GRPO on planning tasks.Table 2 reports fewer-step results for Countdown, GSM8K, MATH500, and Sudoku.Source: Table 2 · p. 8, §4.2 · p. 9
  • Training-free full diffusion underperforms semi-AR and EOSER across tasks; EOSER beats semi-AR in planning but not mathematics, while delaying EOS spatially and temporally.The EOS arrival pattern is shown in Figure 4.Source: §4.2 · p. 8, Figure 4 · p. 8

4.3 ABLATION STUDY

  • Optimizing over each intermediate denoising step leads to significantly better performance; skipping intermediate steps introduces substantial optimization errors in the actual rollout trajectory and some optimization bias, while the near-final alternative yields the worst performance.Source: §4.3 · p. 9

4.4 ANALYSIS

  • EOSER suits planning's parallel reasoning patterns, whereas semi-AR is more suitable for mathematics' sequential reasoning patterns.The analysis describes Countdown and Sudoku as involving parallel reasoning patterns, while GSM8K and MATH500 typically involve sequential reasoning.Source: §4.4 · p. 9

5 CONCLUSION

The conclusion presents EOSER, ASS, and CJ-GRPO as components for full diffusion-style decoding and reinforcement learning on MDLMs. Together, EOSER and ASS with CJ-GRPO achieve comparable performance to L steps using only log2 L steps.

5 CONCLUSION

  • EOSER alleviates the full-diffusion <EOS> trap by suppressing early <EOS> generation, while ASS reduces decoding steps by adapting to token-confidence changes.The conclusion describes confidence as low early and sharply increasing later.Source: §5 · p. 10
  • CJ-GRPO aligns rollout and optimization trajectories for MDLM reinforcement learning.The conclusion says the algorithm ensures trajectory consistency.Source: §5 · p. 10
  • With EOSER and ASS, CJ-GRPO achieves comparable performance to L steps using only log2 L steps.The conclusion characterizes CJ-GRPO as effective and efficient for taming MDLMs on reasoning tasks.Source: §5 · p. 10

6 ETHICS STATEMENT

The ethics statement reports no human subjects, publicly available non-sensitive datasets, and no disclosed conflicts of interest or sponsorship.

6 ETHICS STATEMENT

  • The study uses publicly available datasets without sensitive or private information and involves no human subjects.The authors report compliance with relevant legal regulations and no conflicts of interest or sponsorship to disclose.Source: §6 · p. 10

7 REPRODUCIBILITY STATEMENT

The reproducibility statement cites experimental configuration details, open-source code, and publicly accessible datasets as support for replicating the work.

7 REPRODUCIBILITY STATEMENT

  • The authors provide experimental configurations, open-source scripts and instructions, and publicly accessible datasets to support replication.The experiments apply reinforcement-learning and decoding strategies to LLaDA-8B-Instruct.Source: §7 · p. 10

8 APPENDIX

The appendix contains supplementary experiments and discussions, limitations, and a statement on the use of large language models.

  • The appendix covers supplementary experiments and discussions, limitations, and the authors’ use of large language models.Source: §8 · p. 13

A SUPPLEMENTARY EXPERIMENTS AND DISCUSSIONS

The supplementary studies examine denoising-step choices and their implications for decoding performance and generation speed. They report different optimal step ranges and sensitivity across decoding strategies.

B LIMITATIONS

The limitations discuss CJ-GRPO’s memory costs and weaker mathematical results for the fewer-step approach, alongside the authors’ stated use of LLMs during drafting.

B LIMITATIONS

  • CJ-GRPO’s memory overhead grows proportionally with denoising steps, constraining training speed; fewer-step EOSER+ASS remains behind Semi-AR approaches on mathematics.Source: B LIMITATIONS · p. 14

C THE USE OF LARGE LANGUAGE MODELS (LLMS) STATEMENT

D SHOWCASE ON SEQUENTIAL AND PARALLEL REASONING TASKS

The showcase contrasts sequential patterns in mathematical tasks with parallel or bidirectional patterns in planning tasks. The authors caution that these interpretations are illustrative rather than rigorously formalized.

Sequential Reasoning Pattern

Parallel Reasoning Pattern: Countdown

Parallel Reasoning Pattern: Sudoku

Loading 2509.23924v1…