Reinforcing Diffusion Models by Instantaneous Trajectory Distribution Matching
Abstract
Forward diffusion reinforcement learning (RL)---enabling deterministic ODE sampling without trajectory backpropagation---has grown increasingly popular for efficiently aligning diffusion models. However, we reveal that existing methods essentially rely on signed reward-weighted regression (RWR), regressing the trainable policy velocity onto rollouts from a behavior distribution. Unbiased baseline subtraction implicitly assumes that the policy velocity equals the behavior marginal velocity---an idealized assumption violated under classifier-free guidance (CFG) rollouts, offline/off-policy updates, and imperfect online self-consistency. This behavior--policy mismatch breaks baseline invariance and injects baseline-induced gradient drift, destabilizing training. To resolve this issue, we propose Instantaneous Trajectory Distribution Matching (iTDM), taking the infinitesimal limit of Trajectory Distribution Matching toward a time-local reward-guided target via the posterior-score identity to yield a sample-level gradient anchored at the behavior velocity without learning an additional reward-tilted target score. Tracking this velocity with an online auxiliary denoiser guarantees exact baseline invariance at the auxiliary optimum, effectively suppressing baseline drift across both online and offline RL. Extensive experiments across compositional generation, text rendering, and preference alignment show that iTDM achieves state-of-the-art in-domain and out-of-domain performance across group-wise online/offline RL and pairwise offline RL. Notably, on the challenging GenEval2 benchmark, iTDM converges nearly 3\times faster than competing methods while scaling smoothly to 0.87 without collapse. Furthermore, iTDM scales effectively to the 5.6B FLUX.3 model, achieving better performance across both in-domain and unseen metrics. Code is available at https://github.com/Luo-Yihong/iTDM
Community
Hi everyone! π Excited to share our new work iTDM (Instantaneous Trajectory Distribution Matching) for reinforcing diffusion and flow-matching models!
TL;DR: Existing forward diffusion RL methods (enabling fast deterministic ODE rollouts without trajectory backprop, e.g., DGPO, DiffusionNFT, AWM) essentially rely on signed Reward-Weighted Regression (RWR) centered at the policy velocity $v_\theta$. We show that subtracting a reward baseline in RWR implicitly assumes $v_\theta = v_q$ (the rollout behavior velocity)βan assumption violated under CFG rollouts, offline/off-policy updates, and imperfect self-consistency, causing baseline-induced gradient drift and coarse few-step rollout artifact fitting.
How iTDM fixes this:
By taking the infinitesimal step-size limit of Trajectory Distribution Matching (TDM) via the Gaussian posterior-score identity, iTDM yields an exact sample-level RL gradient anchored at the behavior velocity $v_q$βwithout training an extra reward-tilted score network. Tracking $v_q$ online with a lightweight auxiliary LoRA denoiser and regularizing toward the frozen reference guarantees exact baseline invariance at the auxiliary optimum, naturally unifying online and offline RL without drift or blurry artifacts.
Key Highlights:
- β‘ ~3Γ Faster & Collapse-Free Scaling: Reaches 0.75 nearly 3Γ faster than DGPO, DiffusionNFT, and AWM on GenEval2 (SD3.5-M), scaling smoothly to 0.87 without training collapse.
- π― Unlocks Stable CFG-Guided Online & Offline RL: Leads CFG-guided online RL across compositional generation (0.97 GenEval), text rendering (0.96 OCR), and preference alignment (24.08 PickScore) on SD3.5-M, while overcoming offline collapse/divergence under frozen rollouts (0.87 GenEval, 0.92 OCR, 22.26 PickScore; outperforming Diffusion-DPO across all tasks at $G=2$)βpreserving/improving 7 unseen DrawBench metrics without background collapse or blurry textures.
- π Scales to 5.6B FLUX.3 Klein Base: Guidance-free (
CFG=1.0) reinforcement with HPSv3++ surpasses even the CFG-guided base model (CFG=3.5) across both in-domain and unseen quality/alignment metrics.
π Links:
- π Project Page: https://luo-yihong.github.io/iTDM/
- π» Code: https://github.com/Luo-Yihong/iTDM
- π Paper: https://arxiv.org/abs/2611.30986
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper