DiffusionNFT: Online Diffusion Reinforcement with Forward Process

Kaiwen Zheng, Huayu Chen, Haotian Ye, Haoxiang Wang, Qinsheng Zhang, Kai Jiang, Hang Su, Stefano Ermon, Jun Zhu, Ming-Yu Liu

Reinforcement Learning (RL) has been the "secret sauce" for aligning Large Language Models (LLMs) with human preferences. However, bringing that same magic to diffusion models has been notoriously difficult. A new paper, "DiffusionNFT: Online Diffusion Reinforcement with Forward Process," proposes a radical shift in how we train these models, making the process up to 25 times more efficient.

TL;DR

DiffusionNFT moves reinforcement learning from the complex, multi-step reverse sampling process to the much simpler forward noising process. By contrasting "positive" and "negative" generated images, it optimizes models directly via flow matching. This eliminates the need for intractable likelihood estimations and allows for 25x faster training than current state-of-the-art methods like FlowGRPO.

What Problem Does This Paper Address?

In the LLM world, we use techniques like PPO or GRPO to fine-tune models based on rewards. When we try to apply this to diffusion models (like Stable Diffusion), we hit a wall.

Current methods try to treat the multi-step denoising process as a sequence of decisions (a Markov Decision Process). This approach has three major headaches:

  1. Intractable Likelihoods: Calculating the exact probability of a generated image is computationally expensive and requires messy approximations.
  2. Solver Restrictions: To keep the math tractable, researchers are often stuck using simple, slow "first-order" samplers, preventing them from using faster, modern ODE solvers.
  3. Forward-Reverse Inconsistency: Focusing only on the reverse path can cause the model to "drift" away from the underlying physics of the forward diffusion process, leading to model collapse.

Methods: The Forward Process and Negative-Aware Learning

The authors introduce Diffusion Negative-aware FineTuning (DiffusionNFT). Instead of trying to optimize the "how" of the denoising steps, they focus on the "what" of the final result.

DiffusionNFT Architecture
  • The Forward Shift: DiffusionNFT performs policy optimization on the forward process using a flow-matching objective. This means the model learns by looking at how clean images are turned into noise, which is mathematically much cleaner than the reverse.
  • Negative-Aware Learning: The "NFT" part comes from a contrastive approach. The system generates a batch of images, evaluates them with a reward model, and splits them into "positive" (high reward) and "negative" (low reward) sets.
  • Implicit Policy Improvement: Rather than just training on good images, the model is explicitly taught to move toward the positive distribution and away from the negative one.
  • Solver Agnostic: Because the training happens on the forward process, you can use any black-box solver (ODE or SDE) to generate the images for evaluation. You don't need to store the entire sampling trajectory, just the final clean image.

Datasets

The researchers evaluated DiffusionNFT using SD3.5-Medium as the base model. They utilized several key benchmarks and reward models:

  • Rule-Based Rewards: GenEval (for compositional reasoning) and OCR (for text rendering accuracy).
  • Model-Based Rewards: PickScore, ClipScore, HPSv2.1, and Aesthetic scores.
  • Prompt Datasets: They trained on Pick-a-Pic and evaluated on DrawBench.

Key Insights and Ideas

  • Negatives are Non-Negotiable: In LLMs, you can often get away with just "Rejection Fine-Tuning" (training only on the good stuff). In diffusion, the authors found that without the negative signal (penalizing bad generations), the model collapses almost instantly.
  • CFG-Free by Design: Classifier-Free Guidance (CFG) is the standard way to make diffusion models follow prompts better, but it's slow because it requires running two models at once. DiffusionNFT "bakes" the guidance directly into the model weights. The resulting model outperforms standard models without needing the extra overhead of CFG at inference time.
  • Efficiency is King: By simplifying the objective to flow matching on the forward process, the researchers eliminated the need for importance sampling and trajectory storage, leading to massive gains in training speed.

Key Results

Performance and Efficiency Comparison
  • 25x Efficiency Gain: In head-to-head comparisons on the GenEval task, DiffusionNFT reached a score of 0.98 in just 1,000 steps. For comparison, FlowGRPO took over 5,000 steps and still only reached 0.95.
  • Outperforming the Giants: A fine-tuned SD3.5-Medium (2.5B parameters) using DiffusionNFT actually outperformed much larger models like SD3.5-Large (8B) and FLUX.1-Dev (12B) across every benchmark tested.
  • Superior Text and Logic: Qualitative results show a dramatic improvement in rendering complex text (OCR) and following spatial prompts (e.g., "a toothbrush below a pizza"), areas where base models often fail.

Limitations and Future Work

  • Reward Model Dependency: Like all RLHF-style methods, DiffusionNFT is only as good as the reward models used. If a reward model has a "blind spot" or bias, the fine-tuned model will inherit it.
  • Hyperparameter Sensitivity: While more stable than previous methods, the "soft-update" (EMA) strategy and the guidance strength require careful tuning to balance learning speed with stability.
  • Future Directions: The authors suggest that this forward-process RL framework could be a promising foundation for scaling RL to even more complex modalities, such as video generation, where tracking reverse trajectories is even more difficult.

Summary updated

BibTeX
@inproceedings{zheng2026diffusionnft,
  author = {Kaiwen Zheng and Huayu Chen and Haotian Ye and Haoxiang Wang and Qinsheng Zhang and Kai Jiang and Hang Su and Stefano Ermon and Jun Zhu and Ming-Yu Liu},
  title = {{DiffusionNFT: Online Diffusion Reinforcement with Forward Process}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=VJZ477R89F},
}
Figure