Reinforcing Diffusion Models by Instantaneous Trajectory Distribution Matching

Yihong Luo
11/23/2026
cs.LGcs.AIcs.CV
diffusion-flowrl

Official code: Luo-Yihong/iTDM (12 stars, Python, last commit 2026-11-24).

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 \emph{trainable policy} velocity onto rollouts from a \emph{behavior distribution}.

Show full abstract

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 \emph{behavior--policy mismatch} breaks baseline invariance and injects \emph{baseline-induced gradient drift}, destabilizing training. To resolve this issue, we propose \textbf{I}nstantaneous \textbf{T}rajectory \textbf{D}istribution \textbf{M}atching (\textbf{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. Notably, on the challenging GenEval2 benchmark, iTDM converges nearly $3\times$ faster than competing methods while scaling smoothly to $0.87$ without collapse. Code is available at https://github.com/Luo-Yihong/iTDM

View on arXivView PDF

Code Implementations(1)

Luo-Yihong/iTDMOfficial100%

[Diffusion RL Meets TDM: More Powerful & Efficient] Reinforcing Diffusion Models by Instantaneous Trajectory Distribution Matching

120Python, ShellNov 23, 20261 weeks ago

Similar Papers

Cite this paper

@article{luo2026reinforcing,
  title  = {Reinforcing Diffusion Models by Instantaneous Trajectory Distribution Matching},
  author = {Yihong Luo},
  year   = {2026},
  eprint = {2611.30986},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.30986v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.30986.svg)](https://codeofpaper.com/paper/2611.30986)

Discussion