arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37974

On Trajectory-Aware Training for Masked Diffusion Language Models

Manuel Madeira, Amitis Shidani, Alice Bizeul, Victor Turrisi, Louis Béthune, Bhavika Devnani, Dan Busbridge, Pierre Ablin, João Monteiro

Manuel Madeira †^{\dagger}, Amitis Shidani, Alice Bizeul, Victor Turrisi, Louis Béthune, Bhavika Devnani ‡^{\ddagger}, Dan Busbridge, Pierre Ablin, João Monteiro

Apple, †\daggerEPFL, ‡\ddaggerGeorgia Institute of Technology

Masked diffusion models (MDMs) generate text by unmasking several tokens per step, but they are trained and sampled under different conditions. The model is trained on randomly masked sequences, whereas inference follows a trajectory shaped by the model's own predictions. Additionally, each step has no access to what the previous one computed. Recent methods narrow these limitations from separate angles, leaving open how these choices interact. We introduce PUMBA, a unified framework for trajectory-aware training that trains the denoiser on consecutive steps of policy-induced trajectories, passes information between steps, and optimizes them jointly by backpropagation through time. A controlled study of this design space shows that i) exact train–inference alignment fails due to local overfitting, whereas a looser alignment still brings training masks closer to those seen at inference; ii) passing continuous information outperforms discrete gradient estimators through the commitment at each step; and iii) performance improves as backpropagation through time spans more steps, which we support theoretically. Combined, these components match the best checkpoint of a same-size autoregressive model. Building on these findings, we scale PUMBA to supervised fine-tuning of LLaDA-8B, where it improves the trade-off between performance and number of function evaluations (NFEs) in both full-canvas and block diffusion generation. At matched performance, it needs up to 22% fewer NFEs than standard fine-tuning with twice the budget in full-canvas generation, and up to 26% fewer than standard fine-tuning for the same number of steps in block diffusion.

Correspondence: manuel.madeira@epfl.ch; bdevnani3@gatech.edu;

{amitis_shidani, abizeul, v_turrisi, l_bethune, dbusbridge, p_ablin, jmonteiro2}@apple.com

Contributions: Work done while MM and BD were interns at Apple.

Date: September 30, 2026

1 Introduction

Masked diffusion models (MDMs) (Shi et al., 2024; Sahoo et al., 2024) generate text by iteratively unmasking several tokens at a time, and have recently been scaled up (Nie et al., 2025; Ye et al., 2025; Inception Labs, 2025; Wu et al., 2026b; Nie et al., 2026; Bie et al., 2025). These models are trained to unmask partially masked sequences with randomly drawn masks. At inference, however, an unmasking policy uses the model's predictions to decide which positions to reveal iteratively. This disagreement between training and inference opens two gaps. First, the model and policy jointly shape the inference trajectory, whose states differ from the training distribution (Figure 1). Second, since training sequences are drawn independently, the model never learns to use information from previous steps. Recent work addresses these gaps in different ways: by passing continuous information between steps (Jo et al., 2026; Hu et al., 2026); by training along trajectories induced by the inference policy, known as Progressive Unmasking (PU) 1^{1} (Kim et al., 2026); and by training on several consecutive steps jointly (Xia et al., 2026; Rozonoyer et al., 2026).

We unify these approaches in a single formulation of trajectory-aware training, which we name PUMBA (Progressive UnMasking with Backpropagation Across steps), where the denoiser is trained on consecutive steps of a trajectory rather than isolated sequences (Section 3). It spans three axes: the policy that builds each training trajectory; the carry, i.e. the information one step passes to the next; and the window W

1^{1}PU denotes the progressive unmasking framework; PUMA denotes the instantiation of Kim et al. (2026), which randomizes and anneals the number of tokens revealed per step.

Figure

Figure 1 From MDM training to PUMBA. Each row shows the inputs to the denoiser fθf_{\theta} over consecutive steps; the bottom row corresponds to inference, where the policy g commits the model's own samples, errors included. MDM trains on one independently masked xtx_t. PU follows the trajectory of g with ground-truth tokens, the carry passes the hidden state hjh_j to the next step, and BPTT backpropagates the loss through hjh_j within a window of W steps. Right: the axes each row uses.

of consecutive steps whose losses are optimized jointly by backpropagation through time (BPTT). Prior methods each address some of these axes.

To map this space, we first study a controlled setting where we train on TinyGSM (Liu et al., 2023) and evaluate on GSM8K (Cobbe et al., 2021), analyzing how each axis contributes to reasoning performance (Section 3). First, we identify a local overfitting phenomenon that prevents PU from revealing as few tokens per step in training as at inference (Section 3.1). We show that even when training reveals several times more tokens per step, PU still reduces the train-inference mask discrepancy. Second, we demonstrate that a continuous carry is the most effective way to cross the discrete commitment at each unmasking step (Section 3.2). Third, performance improves as W grows, which we support theoretically. Crucially, the three axes compound: each adds generative performance at every decoding budget. Together they match the performance of an autoregressive (AR) model of the same size trained on the same data, while decoding more than one token per step.

Building on these findings, we scale PUMBA to the supervised fine-tuning (SFT) setting using LLaDA-8B-Base as the base model (Nie et al., 2025), in both full-canvas and block diffusion formulations (Section 4). To the best of our knowledge, this is the first trajectory-aware SFT at this scale (full tuning of all 8B parameters, 4096-token sequences, on a 1.8B-token general-purpose instruction dataset). PUMBA suits SFT, which is data-constrained: further epochs soon yield little. Guided by the controlled study and the failure modes of PU at this scale, we design a PUMBA instantiation that pushes the performance versus number of function evaluations (NFEs) Pareto frontier beyond standard SFT on reasoning and instruction following. In full-canvas generation, 4000 steps of PUMBA improve performance three times as much as doubling the SFT budget, in less training time. At matched performance, PUMBA needs up to 22% fewer NFEs than an SFT run twice as long in full-canvas generation, and up to 26% fewer in block diffusion than an MDM control trained as long.

References (64)