Manuscript Offprint

arXiv:2610.20687

On-Policy Residual Learning for Diffusion Language Models

Yifan Yu, Yuqing Jian, Jisen Li, Yuezhou Hu, Tianyi Zhang, Xiaoxia Wu, Rui-Jie Zhu, Junxiong Wang, Zhongzhu Zhou, Fan Lai, James Zou, Chenfeng Xu

ABSTRACT

Residual context (DiffusionGemma Team et al., 2026) is emerging as a key ingredient for unlocking the speed–quality Pareto frontier of diffusion language models (DLMs) by carrying forward predictive distributions across denoising steps. Yet turning this seemingly simple mechanism of computation recirculation into an effective and efficient learning paradigm is far from simple: there is no clear recipe for how residual context should be learned. We introduce ORL, a framework for on-policy residual learning in DLMs. Algorithmically, we identify that residual learning is inherently on-policy. ORL learns directly from these model-induced residual trajectories on the fly and introduces an entropy-contraction objective that encourages sharpening predictions as the model revisits its own intermediate predictions. System-wise, exact residual supervision requires capturing, retaining, and repeatedly processing many trajectory-dependent intermediate states. ORL co-designs the learning algorithm with asynchronous residual capture and transport, specialized block-diffusion attention, and packed compute-balanced training, making on-policy residual learning practical at scale. On a 4B DLM converted from Qwen3-4B, ORL improves tokens per forward (TPF) by up to 6.2× and, with our proposed DLMRT engine, end-to-end throughput by approximately 6.9× at comparable or better quality. In single-request serving on one H100, this model achieves a stronger speed–quality Pareto frontier than autoregressive models accelerated with EAGLE3 and DFlash speculative decoding under both strict and relaxed verification, running 1.74× faster than DFlash at matched accuracy. ORL also transfers to existing DLMs: on LLaDA-2.1-mini, 36 H100-hours and 4.2M self-generated tokens, about 10× less data than prior LLaDA recipes, yield up to 1.5× higher TPF and up to 3× higher throughput at comparable quality, and on DiffusionGemma, ORL raises TPF by 1.1–1.2×. With DLMRT and NVFP4 quantization, ORL models decode a single request at up to 5,046 tokens/s on one B200, 7,708 tokens/s on eight B200s, and 2,788 tokens/s on a consumer RTX 5090, with comparable quality.

Code

Website

Models

Engine

1 INTRODUCTION

Today’s LLMs collapse the complexity of language generation into an extremely simple next-token prediction (NTP) paradigm. This simplicity delivers remarkable intelligence, but at a fundamental systems cost: autoregressive (AR) decoding remains sequential, severely underutilizing the massive parallelism of modern hardware (Nebius team, 2025; Frye & Biswas, 2026; Robbins, 2026;

(a) On-Policy Residual Training

Figure

(a) ORL vs. Speculative Decoding

(b) ORL vs. dLLM Baselines

Figure 1: (a) On-policy residual training. Residual predictions rkr_k are carried across denoising steps. ORL trains on the fresh residuals produced by the current rollout (on-policy) rather than on cached residuals that no longer match the rollout (offline), and enforces entropy contraction across steps, applied only where entropy stalls, so that more tokens are committed. (b) A DLM target that learns to refine its residuals reaches the speculative-decoding frontier. Average GSM8K/HumanEval quality.

Killinger & Kiely, 2025). Unlocking parallel decoding for LLMs has emerged as one of the most timely problems in efficient language generation (Almeida, 2026; Liu et al., 2024; Yu et al., 2026; Bie et al., 2026). Among the most actively explored paradigms are discrete diffusion language models (DLMs). By initializing blocks of masked tokens and progressively unmasking them, DLMs transform each forward pass from a single-token prediction into an opportunity to decode many tokens (Nie et al., 2025; Arriola et al., 2025; Ye et al., 2025; Cheng et al., 2025).

Recently, there has also been an interesting debate: given speculative decoding, a lossless acceleration technique, why do we still need diffusion language models? We point out that DLMs open a different optimization dimension for language generation: parallelism that the model itself learns. By contrast, existing LLMs via next-token prediction optimize next-token accuracy. Speculative decoding (Chen et al., 2026a; Cheng et al., 2026; Huang et al., 2026) poses another dimension: it optimizes speed for a fixed target, and the attainable speedup is capped by how predictable the target already is. DLMs instead expose quality and parallelism as a joint learning problem: the model must learn not only what to predict but also how much reliable progress to make in each forward pass. Optimizing both dimensions in a single model is what makes a better speed-quality tradeoff possible than acceleration around a fixed target. It is one unique advantage of a DLM target (Figure 1b).

Yet optimizing the speed–quality tradeoff is difficult: beyond deciding which token should fill each position, the model must also determine how aggressively it should fill the block. Existing work tackles this challenge through improved diffusion objectives, decoding strategies, reinforcement learning, and iterative self-refinement (Hu et al., 2026b; DiffusionGemma Team et al., 2026; Lee et al., 2026; Wang et al., 2026b; Yu et al., 2026; Hu et al., 2026a; Ren et al., 2026). Among these directions, one idea is emerging as particularly natural and effective: recirculating residual predictions across decoding steps. In particular, each forward pass already spends substantial computation constructing a predictive distribution over the unresolved block. Rather than discarding this distribution and recomputing from scratch at the next step, residual decoding feeds it back as context, allowing subsequent steps to build upon the model's previous predictions (Hu et al., 2026b; Jo et al., 2026; Lee et al., 2026). Appendix B.1 shows that these intermediate predictions often anticipate the final tokens before they are committed. RCD (Hu et al., 2026b) and Looped Diffusion (Lee et al., 2026) show that this residual information can significantly improve the speed–quality Pareto frontier. DiffusionGemma (DiffusionGemma Team et al., 2026) pushes this trend even further, achieving over 20 tokens per forward (TPF; about 1,230 tokens/s on one H100, as shown in Figure 1b), significantly faster than existing speculative decoding.

Existing methods, however, largely treat residual information as an architectural or decoding primitive, leaving no clear recipe for learning it effectively and efficiently. Algorithmically, residual learning is hard for two reasons. First, the learning loop is self-referential: Offline training can not faithfully reproduce the states seen at inference time, namely partially denoised blocks together with the residuals they receive. Even for on-policy training, under a shared optimizer, the residual pathway moves much faster than the backbone, and naïve updates destabilize training. Second, supervising intermediate states toward the final output indicates what each state should predict, but not how much progress each step should make. In practice, we find that entropy stays nearly flat across denoising steps, and TPF barely improves (Figure 2b). On the systems side, exact residual supervision requires generating intermediate predictions in flight and repeatedly feeding these states back to training. This trajectory-dependent workflow fits poorly into existing RL pipelines (§2).

We introduce ORL, an on-policy residual learning framework for DLMs that addresses each of these challenges. (1) Residual learning is inherently on-policy, and the loop it closes must be kept stable. ORL learns from residual trajectories generated online by the current model, using the exact residual inputs encountered during rollout (Figure 1a, bottom). It rescales the residual pathway so that it updates at the backbone's pace and gates supervision by rollout entropy, ensuring that already-confident predictions are not sharpened further. (2) Refinement speed needs its own objective. ORL introduces an adjacent entropy-contraction objective that explicitly requires each step to reduce the uncertainty left by the previous one, sharpening predictions along the residual trajectory (Figure 1a, top). On the systems side, (3) ORL makes exact on-policy residual learning practical at scale. It asynchronously captures residual states off the decoding critical path, uses memory-adaptive transport to keep or offload them depending on placement, and packs trajectory-dependent states into dense training batches. A compute-aware scheduler balances the resulting irregular workloads across GPUs, while a specialized staircase attention kernel executes packed block-diffusion states without materializing dense masks. Together, these designs make residual training efficient, while our proposed single-request engine, DLMRT, further converts fewer forward passes into higher inference throughput (Section 3.3).

Contributions. To the best of our knowledge, ORL represents the first open, end-to-end workflow for exact on-policy residual optimization in DLMs, and we release code, models, training data, the DLMRT inference engine, and a project page to facilitate reproduction and follow-up work. Our contributions are:

• We identify residual refinement as an inherently on-policy learning problem. Existing residual training suffers from two mismatches: offline residuals can induce trajectories different from those encountered at inference, while pre-generated trajectories become stale as the model evolves. This reveals that residuals must be optimized on the evolving state distribution they induce, with the residual pathway updated slowly enough that the loop stays stable.

• We introduce a general recipe for on-policy residual optimization. ORL trains intermediate states from fresh rollouts using their exact residual conditioning, distilling them toward verified final outputs, and explicitly improves step-wise refinement through adjacent entropy contraction with stabilized residual updates. The same recipe supports direct post-training of existing DLMs, without requiring a model-specific training pipeline.

• We make exact trajectory-level residual optimization practical at scale. We co-design the rollout and training system, including asynchronous in-engine trajectory capture, memory-adaptive residual transport, specialized block-diffusion attention, packed intermediate-state training, and compute-aware GPU balancing. These techniques speed up training by up to 5.2×5.2\times.

• We establish a stronger speed–quality frontier with little post-training. With 60 H100-hours of post-training on QwenDLM, a 4B DLM converted from Qwen3-4B, ORL improves TPF by 2.5–6.2× and throughput by approximately 5× at comparable quality (approximately 6.9× together with DLMRT); in single-request serving on one H100, the regime speculative decoding targets, the resulting model is faster than every EAGLE3 (Li et al., 2025) and DFlash setting we measure: 1.74× faster than DFlash at matched accuracy with relaxed verification, and 2.26× faster than DFlash with strict verification, which keeps the AR’s accuracy, 2.4 points above ours (Figure 1b). The same recipe improves LLaDA-2.1-mini by up to 1.5× higher TPF and up to 3× higher throughput, and DiffusionGemma by 1.1–1.2× higher TPF. ORL achieves these benefits with a few million self-generated tokens: on LLaDA-2.1-mini it uses 4.2M tokens and 36 H100-hours, about 10× less data than the roughly 40M tokens of d3LLM-LLaDA and dParallel (Figure 7; Appendix H.3).

• We design DLMRT, a low-latency single-request engine for block-diffusion DLMs. Many practical setups, such as edge AI, serve one request at a time, where engines built for batching

Figure

(a) Residual learning is on-policy.

(b) Accuracy alone does not accelerate refinement.

(c) Exact on-policy training is systems-heavy.

Figure 2: Three observations behind ORL. (a) Only fresh trajectories jointly improve accuracy and TPF. (b) Standard residual supervision leaves entropy nearly flat across denoising steps. (c) Exact on-policy training incurs substantial time and memory overhead.

leave the GPU underused. Running each block’s denoising loop on the GPU as one CUDA graph, DLMRT raises throughput by 1.2–1.6× over SGLang and vLLM without changing the decoding rule. With NVFP4 quantization, LLaDA-2.1-mini + ORL averages 5,046 tokens/s per single request across HumanEval on one B200, and DiffusionGemma + ORL averages 4,214 tokens/s across GSM8K on one B200 and 7,708 tokens/s with tensor parallelism across eight B200s. On a consumer GeForce RTX 5090, the two models reach 2,788 and 1,540 tokens/s on these benchmarks, respectively, matching or exceeding BF16 on an H100 (Section 4.3).

References (100)

Couldn't load all references. Reload the page to try again.