TL;DR
This paper introduces the first framework for reward-guided fine-tuning of one-step generative models using Wasserstein Gradient Flow (WGF). By framing fine-tuning as a smooth distributional evolution in probability space, the method successfully optimizes both differentiable and non-differentiable rewards in a single forward pass while robustly preventing mode collapse and reward hacking.
What Problem Does This Paper Address?
While diffusion models excel at generating high-quality data, their iterative nature makes them computationally expensive. To solve this, "one-step" generative models (like Consistency Models and MeanFlow) have emerged, directly mapping noise to data in a single forward pass.
However, aligning these one-step models with specific downstream objectives—such as maximizing image aesthetics or compression ratios—remains a major challenge. Existing reward fine-tuning methods designed for standard diffusion models rely on the intermediate states of a multi-step denoising trajectory. Because one-step models lack these intermediate states and follow linear generation paths, traditional methods cannot be directly applied. Furthermore, naive fine-tuning often causes "reward hacking" (where the model exploits the reward function at the cost of sample quality) or severe mode collapse.
Methods
The authors propose a novel fine-tuning method based on Wasserstein Gradient Flow (WGF). Instead of treating fine-tuning as a standard reinforcement learning or direct regression problem, they model it as a continuous evolution of the pre-trained model's distribution toward a reward-weighted target distribution.
To make this mathematically tractable, they employ the Jordan-Kinderlehrer-Otto (JKO) scheme to discretize the continuous flow into iterative steps. Each JKO step balances two forces: moving toward higher rewards and staying close to the previous distribution (regularized by the 2-Wasserstein distance).
Using a semi-dual formulation, they parameterize these updates directly as a transport map (the generator) and a potential function (the discriminator). Crucially, they integrate importance sampling to estimate the reward-weighted targets. Because the reward function only appears as a scalar weight during sampling, the framework requires no reward gradients, allowing it to seamlessly handle both differentiable and non-differentiable (black-box) rewards.
Datasets
The method was evaluated across three distinct settings:
- 2D Synthetic Data: An 8-Gaussian mixture toy dataset used to analyze training dynamics.
- CIFAR-10 (32×32): Used for low-dimensional image generation benchmarks.
- ImageNet (256×256): Used to test scalability in high-dimensional, complex image generation.
Key Insights and Ideas
- Steepest Descent via Transport Maps: Rather than learning a complex velocity field or solving an iterative ODE at inference time, the semi-dual JKO scheme realizes each distributional update directly as a transport map. This ensures that the fine-tuned model remains strictly a one-step generator.
- Built-in Protection Against Reward Hacking: The 2-Wasserstein distance acts as a natural proximal regularizer. It penalizes large, erratic distribution shifts, forcing the model to make conservative, smooth modifications around the pre-trained distribution.
- Dynamic Reference Updates: The authors found that keeping the pre-trained reference distribution fixed causes optimization instability due to distribution mismatch. Dynamically updating the reference distribution during training ensures steady, stable reward improvement.
Key Results
The proposed method consistently outperformed competitive baselines like Supervised Fine-Tuning (SFT), Reward-Weighted Regression (RWR), and Direct Preference Optimization (DPO).
- Toy Task: On the 8-Gaussians dataset, the WGF method smoothly separated the initial distribution to capture all eight distinct target modes perfectly. Baselines suffered from severe mode averaging, failing to isolate the distinct modes.
- CIFAR-10: For non-differentiable tasks like JPEG incompressibility, the method achieved the highest reward (1.62) while maintaining a significantly better FID (55.9) than SFT and RWR, which completely failed to improve the reward or suffered massive fidelity degradation.
- ImageNet 256×256: The framework scaled successfully to high-resolution images. Across tasks like Black-and-White conversion and CLIP-red alignment, the method maintained high aesthetic scores close to the pre-trained model while successfully editing only the target attributes.
Limitations and Future Work
The primary limitation acknowledged by the authors is that they did not evaluate their framework on prompt-conditional text-to-image generation, which is currently one of the most prominent applications for reward-based fine-tuning. Extending this Wasserstein Gradient Flow framework to conditional text-to-image generation is highlighted as a promising direction for future research.
Summary updated