· Masked / discrete diffusion, Reasoning, Post-training · Source

A Continuous-Time Reinforcement Learning Framework for Fine-Tuning Discrete Diffusion Models

SourceFull paper

Article overview

Verdict

The paper presents a principled continuous-time RL approach for discrete diffusion language models. CTRL supports nondifferentiable terminal and intermediate rewards and outperforms the cited baselines on most reported tasks, but stability of large-vocabulary policies remains a risk.

Main idea

Represent discrete-diffusion sampling as a controlled continuous-time Markov chain and train its denoiser score as an RL policy with PPO or GRPO, including process rewards and KL regularization toward the pretrained model.

Mechanism

The state is a partially masked discrete-token sequence; the action is a vocabulary probability vector factorized across positions. For masked diffusion, the reverse transition rate i→j is pθ(i)(x)j/(1−t), multiplied by the action score. The policy induces a CTMC, while action-averaged rates preserve the trajectory law under finite-state, bounded-rate conditions. The policy gradient is an integral expectation of ∇θlogπθ times an instantaneous advantage linked to the generator and reward. PPO uses a value-based advantage estimate; GRPO uses intermediate and terminal rewards without a value network. The objective combines rewards with path-space KL to the pretrained process, equivalent to an integral of generalized I-divergences. Rollouts use semi-autoregressive unmasking: each block selects the k most confident masked positions and samples their tokens. Vertex-supported policies stabilize training; full-simplex policies can produce exploding ratios and clipped updates. N denoising steps are sampled uniformly; the estimator is unbiased, and N=8 was comparable to N=16 and N=32 with fewer forward passes. Reproduction: (1) define reverse CTMC rates from the denoiser; (2) choose a simplex policy with a tractable ratio; (3) define terminal and visible intermediate verifiable rewards; (4) train PPO or GRPO with KL regularization; (5) use confidence-based unmasking and uniform trajectory subsampling; (6) evaluate rewards and task metrics against baselines. Some details of the transformed temperature-softmax density are only approximate; no universal policy choice is established.

What this is useful for

The method suits masked discrete diffusion when verifiable terminal or intermediate rewards are available without a differentiable reward module, including mathematical reasoning, Countdown, Sudoku, and coding. It is especially useful when repeated denoising forward passes constrain training and process supervision is desired.

Risks / not proven

Full-simplex Dirichlet, temperature-softmax, and logistic-normal policies can produce exploding probability ratios and unstable clipping with large vocabularies. Temperature-softmax uses only an approximate ratio because softmax is non-injective. Gradient checkpointing preserves exactness but roughly doubles policy-pass forwards; subsampling reduces cost, although its effectiveness is shown only under the reported conditions. All methods collapse on the longer 256-token Sudoku rollout. There is insufficient evidence for generalization beyond the specified models, rewards, tasks, and baselines.

Full abstract

We formulate reinforcement learning (RL) in continuous time with discrete state spaces and possibly arbitrary action spaces via a stochastic control approach, where the state dynamics are modeled as a controlled continuous-time Markov chain (CTMC). We consider policy optimization problems and derive the corresponding policy gradient methods, leading to continuous-time variants of proximal policy optimization (PPO) and group relative policy optimization (GRPO). As a primary application, we develop a complete continuous-time RL framework for fine-tuning score-based discrete diffusion models. The proposed framework enables reward-driven optimization without requiring differentiability on the reward signals. In contrast to the existing GRPO-based approaches that only rely on terminal rewards, our formulation allows intermediate reward or advantage signals to be incorporated throughout the denoising trajectory. Importantly, when specialized to masked diffusion models (MDMs), our framework encompasses a rich class of policy parameterizations over the vocabulary simplex with analytically tractable probability ratios, providing a unified perspective on exploration and policy optimization in MDMs. For masked diffusion large language models (dLLMs), we further propose trajectory subsampling techniques to efficiently estimate computationally prohibitive trajectory likelihoods, reducing the computational cost of computing per-position probability ratios. We showcase the effectiveness of our methods on both low-dimensional entropy-regularized optimization problems and RL post-training of dLLMs on mathematical reasoning and coding tasks.

Source

BibTeX · RIS · Markdown · JSON