TL;DR: This paper introduces a gradient preconditioning method that makes reward-guided image generation both faster and more reliable. By projecting reward gradients onto a mathematically defined "white Gaussian noise feasible set," the authors prevent "reward hacking"—where models produce artifacts to chase high scores—and achieve state-of-the-art aesthetic results in just 30% of the time required by previous methods.
The Challenge: Reward Hacking and Inefficiency
One-step generative models, such as distilled versions of FLUX or SDXL, allow researchers to perform "test-time optimization." Instead of simply passing a random noise vector through the model to generate an image, the noise vector can be iteratively tweaked to maximize a specific "reward," such as an aesthetic score or a human preference metric.
However, this optimization process faces two major hurdles:
- Reward Hacking: As the optimizer pushes the latent vector to maximize the reward, the vector frequently drifts away from the "white Gaussian noise" distribution the model was originally trained on. This results in unrealistic images filled with artifacts; essentially, the model "cheats" the reward function.
- Inefficiency: Current methods rely on "soft" regularization, which involves adding a penalty term to the loss function. This approach requires careful hyperparameter tuning and numerous gradient steps, making the process too slow for practical, real-time use.
The Solution: Gradient Preconditioning
To overcome these challenges, the authors propose Gradient Preconditioning. Instead of relying on a soft penalty term, they define a "feasible set"—a mathematical space where the latent vector is strictly constrained to behave like white Gaussian noise.
The key technical components of this approach include:
- Compact Spectral Domain: The authors transform the latent vector into the frequency domain using a Discrete Fourier Transform (DFT). They apply a specific bijective mapping to remove redundancy, creating a compact representation that is easier to manipulate.
- Blockwise Constraints: Within this spectral domain, hard constraints are enforced on the $\ell_1$ and $\ell_2$ norms of small blocks of coefficients. This ensures the noise remains "white" (uncorrelated across space) and strictly follows Gaussian statistics.
- Closed-Form Projection: At each optimization step, the reward gradient is projected onto this feasible set. This reshapes the update direction, ensuring the latent vector only moves in ways that preserve its noise-like properties.
- Computational Efficiency: The projection is mathematically efficient, featuring a complexity of $\mathcal{O}(N \log N)$ that matches the speed of a Fast Fourier Transform (FFT). In practice, this step accounts for only 0.04% of the total runtime.
A major insight of this work is that hard constraints outperform soft regularization. By using a hard projection, the method eliminates the need for a regularization weight hyperparameter and provides a mathematical guarantee that the latent stays within the desired distribution. Furthermore, by preconditioning the gradient rather than just the latent vector, the optimizer makes much more efficient progress by ignoring "forbidden" directions that lead to reward hacking.
Experimental Setup
The authors evaluated their method using several state-of-the-art one-step generative models, including FLUX-schnell, SDXL-Turbo, SANA-Sprint, and SD-Turbo.
They optimized for and evaluated against four human-preference metrics: Aesthetic Score, PickScore, HPSv2, and ImageReward. Testing was conducted using prompts from the animal dataset (for Aesthetic Score) and T2I-CompBench++ (for compositional text-to-image evaluation).
Key Findings and Results
- Significant Speedups: On the FLUX model, the proposed method reached aesthetic scores comparable to the previous state-of-the-art (MPGR) using only 30% of the wall-clock time.
- Higher Rewards: Given the same time budget (e.g., 200 iterations), the gradient preconditioning method achieved significantly higher rewards—reaching an Aesthetic Score of ~8.9 compared to ~7.1 for baselines—while maintaining high quality on "held-out" metrics the model wasn't explicitly optimizing for.
- Improved Reliability: Qualitative results demonstrated that while baselines often produce "fried" or artifact-heavy images when pushed for high scores, this method consistently produces clean, realistic images that faithfully follow the prompt.
- Maintained Diversity: Using metrics like the Inception Score and Vendi Score, the authors confirmed that their method does not cause "mode collapse." The generated images remain as diverse as those from the unoptimized baseline.
Limitations and Future Directions
While highly effective, the method is inherently bound by the quality of the underlying reward model. If a reward model has inherent biases or blind spots, the optimization process will still amplify them, even if the image remains perfectly "noise-aligned."
Additionally, the current work focuses primarily on one-step models. While applying this technique to multi-step diffusion models—where reward evaluation is significantly more expensive—was not the primary focus, the authors suggest it represents a promising direction for future research. Finally, because this method makes reward optimization highly efficient, it could potentially be misused to optimize for harmful objectives, underscoring the need for robust safety filters in deployment.
Summary updated