Directly Aligning the Full Diffusion Trajectory with Fine-Grained Human Preference

Xiangwei Shen1,2*, Zhimin Li1*, Zhantao Yang1, Shiyi Zhang3, Yingfang Zhang1, Donghao Li1,
Chunyu Wang1, Qinglin Lu1, Yansong Tang3,✝
1Hunyuan, Tencent
2School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen 3Shenzhen International Graduate School, Tsinghua University
*Equal contribution Corresponding author

Abstract

Teaser Image

Recent studies have demonstrated the effectiveness of directly aligning diffusion models with human preferences using differentiable reward. However, they exhibit two primary challenges: (1) they rely on multistep denoising with gradient computation for reward scoring, which is computationally expensive, thus restricting optimization to only a few diffusion steps; (2) they often need continuous offline adaptation of reward models in order to achieve desired aesthetic quality, such as photorealism or precise lighting effects. To address the limitation of multistep denoising, we propose Direct-Align, a method that predefines a noise prior to effectively recover original images from any time steps via interpolation, leveraging the equation that diffusion states are interpolations between noise and target images, which effectively avoids over-optimization in late timesteps. Furthermore, we introduce Semantic Relative Preference Optimization (SRPO), in which rewards are formulated as text-conditioned signals. This approach enables online adjustment of rewards in response to positive and negative prompt augmentation, thereby reducing the reliance on offline reward fine-tuning. By fine-tuning the FLUX.1.dev model with optimized denoising and online reward adjustment, we improve its human-evaluated realism and aesthetic quality by over 3x.

Key contribution

Direct Align. We introduce a new sampling strategy for diffusion fine-tuning that can effectively restore highly noisy images, leading to an optimization process that is more stable and less computationally demanding, especially during the initial timesteps.

Faster Training. By rolling out only a single image and optimizing directly with analytical gradients—a key distinction from GRPO—our method achieves significant performance improvements for FLUX.1.dev in under 10 minutes of training. To further accelerate the process, our method supports replacing online rollouts entirely with a small dataset of real images; we find that fewer than 1500 images are sufficient to effectively train FLUX.1.dev.

Free of Reward Hacking. We have improved the training strategy for method that direct backpropagation on reward signal (such as ReFL and DRaFT). Moreover, we directly regularize the model using negative rewards, without the need for KL divergence or a separate reward system. In our experiments, this approach achieves comparable performance with multiple different rewards, improving the perceptual quality of FLUX.1.dev without suffering from reward hacking issues, such as overfitting to color or oversaturation preferences.

Potential for Controllable Fine-tuning. Our work is the first in online RL to incorporate dynamically controllable prompt augmentation directly into the reward model, enabling online adjustment of reward preference towards styles within the scope of the reward model.

Enhanced Realism (without AI look)

Enhanced Aesthetic (without AI look)

Framework

Teaser Image

To enable precise reward assignment during the early stages of the diffusion process, we reconstruct a clean image from an intermediate noisy image using a ground-truth noise prior and a single-step denoising operation. Specifically, we first generate a clean image and inject Gaussian noise, thereby establishing a closed-form expression for recovering images at any diffusion timestep. The Direct-Align pipeline consists of four key stages: (0) generating images for training; (1) injecting noise into the images; (2) performing a one-step denoising or inversion operation; and (3) recovering the images. The SRPO modifies the reward model by introducing two branches—penalty and reward—prior to scoring, which respectively evaluate the denoising and inversion processes.

Cross-Reward Performance (without Reward Hacking)

Teaser Image

Lighting and Sytle Control

Teaser Image

Ablations

Teaser Image

BibTeX

@misc{shen2025directlyaligningdiffusiontrajectory,
      title={Directly Aligning the Full Diffusion Trajectory with Fine-Grained Human Preference}, 
      author={Xiangwei Shen and Zhimin Li and Zhantao Yang and Shiyi Zhang and Yingfang Zhang and Donghao Li and Chunyu Wang and Qinglin Lu and Yansong Tang},
      year={2025},
      eprint={2509.06942},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2509.06942}, 
}