Issue 42 Β· Project 04 GitHub AI / ML β read
Introspective-Diffusion/ORL
GitHub β Β·β 20 Β·5 forksΒ·PythonΒ·MIT Β·created 2026-10-15 Β·3 min read
TL;DR: ORL is a post-training recipe from Together AI (with academic collaborators) that makes diffusion language models actually fast: it trains the model on its own freshly generated denoising trajectories β replaying the exact residual inputs each step consumed β plus an "adjacent entropy contraction" loss that rewards resolving more tokens per refinement step. On a 4B block-diffusion Qwen conversion this yields up to 6.2Γ tokens-per-forward and ~5Γ end-to-end single-request throughput at equal-or-better accuracy, with code, checkpoints, training data, and an exact-reproduction eval pipeline all released.
Why this is interesting
Diffusion LMs promise parallel token generation but in practice commit few tokens per denoising pass, so autoregressive models with speculative decoding have remained faster. ORL's claim is that this is a training problem, not an architectural one: the residual context that carries predictive distributions between denoising steps is trajectory-dependent, so training on offline or teacher-forced data teaches the model about states it never actually visits at inference. Training on-policy β on states the current model actually produces β and explicitly rewarding faster refinement (not just correct refinement) closes the gap. That's a clean framing, and the fact that the same recipe improves three different DLM families (QwenDLM-4B, LLaDA-2.1-mini, DiffusionGemma 26B-A4B) suggests it generalizes.
How it works
Three pieces:
- On-policy residual replay. After each update, generate fresh trajectories, capture the exact residual states every denoising step consumed (snapshotted asynchronously via CUDA IPC during rollout), and train on those β not approximations.
- Adjacent entropy contraction (AEC). A hinge-squared loss asking each refinement step to cut normalized entropy of unresolved positions by a fraction Ο relative to the (detached) source step:
L = [max(0, H_next β (1βΟ)Β·H_source)]Β². This is the "learn to refine faster" signal; intermediate predictions are additionally supervised against verified outputs. - Stability machinery. Controlled updates to the residual pathway, uncertainty-gated supervision, and a capped reverse-KL anchor on confident predictions.
The systems co-design is substantial: packed, compute-balanced replay of variable-length captured states and a Triton "staircase" block-diffusion attention kernel that skips invisible tiles, giving up to 5.2Γ faster training steps.
Evidence
The parallelism gains are large where it matters: QwenDLM's HumanEval goes from 82.9% accuracy at 1.8 tokens/forward to 89.6% at 11.1 β accuracy up and 6Γ fewer forward passes. Gains on already-parallel DiffusionGemma are smaller (~1.2Γ TPF), which is honest and plausible.
With their dlmrt engine (CUDA-graph denoising loops with on-GPU conditional continuation, NVFP4 experts on Blackwell), they report 5,046 tok/s single-request on one B200 and 2,788 tok/s on a consumer RTX 5090 β the 26B-A4B MoE fits in 32 GB at NVFP4. Data efficiency is notable: LLaDA-2.1-mini needs 4.2M self-generated tokens and 36 H100-hours, claimed ~10Γ less than prior parallel-decoding recipes.
What's released: all three ORL checkpoints plus NVFP4 variants and the QwenDLM-4B base on HF; the training data; VERL/SGLang/LLaMA-Factory forks; frozen eval inputs with pinned container digests; and a bit-for-bit reproduction claim for the QwenDLM recipe on 8ΓH100. That's unusually complete.
Caveats
- Entangled comparisons: base vs. ORL rows each use "family-specific decoders," so the main table compares model+decoder bundles, not the training method in isolation. The README says so itself.
- Throughput numbers require dlmrt, a separate repo; the headline 1,298 tok/s is partly engine (dlmrt is 1.2β1.6Γ faster than SGLang/vLLM on identical checkpoints), so the training contribution to the ~5Γ is more like 3β4Γ.
- Benchmarks are math + code, where answers are verifiable (the on-policy loop needs verification). General-chat quality is only addressed via a transfer table (MMLU-Pro, IFEval, etc.) you'd have to run yourself.
- QwenDLM-4B's offline conversion data is not released; training reproduction needs Apptainer and 1β2 nodes of 8ΓH100. Stars are ~20 β no external validation yet. MIT licensed.
Try it
Fastest path is dlmrt with an NVFP4 checkpoint if you have a Blackwell GPU (RTX 5090 works), or BF16 on H100:
from dlmrt import LLM
llm = LLM("yifanyu/DiffusionGemma-26B-A4B-it-ORL-NVFP4", role="orl")
out = llm.generate("Write a Python function that checks whether a number is prime.",
max_new_tokens=2048)
print(out.text, f"{out.request_tps:.0f} tokens/s")
To check accuracy claims engine-independently, evaluation/scripts/main_table.sh reproduces the paper's table with pinned SGLang/vLLM containers. Repo: https://github.com/Introspective-Diffusion/ORL