TDM-R1: Reinforcing Few-Step Diffusion Models with Non-Differentiable Reward
Organizations: Hong Kong University of Science and Technology · The Chinese University of Hong Kong, Shenzhen · hi-Lab, Xiaohongshu Inc · Hong Kong University of Science and Technology (Guangzhou)
Abstract
While few-step generative models have enabled powerful image and video generation at significantly lower cost, generic reinforcement learning (RL) paradigms for few-step models remain an unsolved problem. Existing RL approaches for few-step diffusion models strongly rely on back-propagating through differentiable reward models, thereby excluding the majority of important real-world reward signals, e.g., non-differentiable rewards such as humans' binary likeness, object counts, etc. To properly incorporate non-differentiable rewards to improve few-step generative models, we introduce TDM-R1, a novel reinforcement learning paradigm built upon a leading few-step model, Trajectory Distribution Matching (TDM). TDM-R1 decouples the learning process into surrogate reward learning and generator learning. Furthermore, we developed practical methods to obtain per-step reward signals along the deterministic generation trajectory of TDM, resulting in a unified RL post-training method that significantly improves few-step models' ability with generic rewards. We conduct extensive experiments ranging from text-rendering, visual quality, and preference alignment. All results demonstrate that TDM-R1 is a powerful reinforcement learning paradigm for few-step text-to-image models, achieving state-of-the-art reinforcement learning performances on both in-domain and out-of-domain metrics. Furthermore, TDM-R1 also scales effectively to the recent strong Z-Image model, consistently outperforming both its 100-NFE and few-step variants with only 4 NFEs. Project page: https://github.com/Luo-Yihong/TDM-R1
Figures & tables
| Model | Overall | Single Obj. | Two Obj. | Counting | Colors | Position | Attr. Binding |
|---|---|---|---|---|---|---|---|
| Autoregressive Models: | |||||||
| Show-o ( Xie et al., 2024a ) | 0.53 | 0.95 | 0.52 | 0.49 | 0.82 | 0.11 | 0.28 |
| Emu3-Gen ( Wang et al., 2024 ) | 0.54 | 0.98 | 0.71 | 0.34 | 0.81 | 0.17 | 0.21 |
| JanusFlow ( Ma et al., 2025 ) | 0.63 | 0.97 | 0.59 | 0.45 | 0.83 | 0.53 | 0.42 |
| Janus-Pro-7B ( Chen et al., 2025 ) | 0.80 | 0.99 | 0.89 | 0.59 | 0.90 | 0.79 | 0.66 |
| GPT-4o ( Hurst et al., 2024 ) | 0.84 | 0.99 | 0.92 | 0.85 | 0.92 | 0.75 | 0.61 |
| Model | NFE | Verifiable Metric | Image Quality | Preference Score | ||||
|---|---|---|---|---|---|---|---|---|
| GenEval | OCR Acc. | Aesthetic | DeQA | ImgRwd | PickScore | UniRwd | ||
| SD3.5-M ( Esser et al., 2024 ) | 80 | 0.63 | 0.59 | 5.39 | 4.07 | 0.87 | 22.34 | 3.33 |
| Flow-GRPO † ( Liu et al., 2025 ) | 80 | 0.95 | — | 5.25 | 4.01 | 1.03 | 22.37 | 3.51 |
| DGPO † ( Luo et al., 2025d ) | 80 | 0.97 | — | 5.31 | 4.03 | 1.08 | 22.41 | 3.60 |
| Flow-GRPO † ( Liu et al., 2025 ) | 80 | — | 0.92 | 5.32 | 4.06 | 0.95 | 22.44 | 3.42 |
| DGPO † ( Luo et al., 2025d ) | 80 | — | 0.96 | 5.37 | 4.09 | 1.02 | 22.52 | 3.48 |
| Model | NFE | Verifiable Metric | Model-based Metric | |||||
|---|---|---|---|---|---|---|---|---|
| GenEval | OCR Acc. | HPSv3 | Aesthetic | ImgRwd | PickScore | UniRwd | ||
| Z-Image | 100 | 0.66 | 0.74 | 7.32 | 5.35 | 0.62 | 19.98 | 3.64 |
| Z-Image-Turbo (DMDR) | 4 | 0.73 | 0.78 | 9.13 | 5.40 | 0.78 | 20.28 | 3.70 |
| TDM-R1-Zimage (Ours) | 4 | 0.77 | 0.79 | 9.90 | 5.49 | 0.94 | 20.45 | 3.75 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
RL for Diffusion Models
Reinforcement learning for diffusion models adapts denoising and sampling to rewards, preferences, and task outcomes.
See all 179 papers