Abstract
Diffusion models excel at high-quality generation but struggle with precise control, especially for non-differentiable objectives. We present Reward-Guided Diffusion Model (RGDM), a training framework that treats denoising as a Markov Decision Process optimized via Reinforcement Learning. By sampling from a reward-aware payoff distribution, RGDM enables effective steering toward complex goals like specific 3D geometries or molecular properties without requiring differentiable classifiers. Our results demonstrate significant improvements in fine-grained 3D shape generation and chemical property optimization.
Introduction
While diffusion models are the current gold standard for generating high-quality images, 3D shapes, and molecules, "steering" them to generate specific outcomes—controllable generation—remains a significant challenge. Existing solutions typically rely on conditional models, which require massive labeled datasets for every constraint, or classifier guidance, which necessitates differentiable classifiers. The latter is particularly restrictive, as many domain-specific evaluators (e.g., physics simulators or chemical property calculators) are non-differentiable "black boxes."
Furthermore, applying standard Reinforcement Learning (RL) to diffusion is difficult due to the multi-step nature of the generation process, which leads to high gradient variance and sparse reward issues. To address these challenges, we introduce RGDM (Reward-Guided Diffusion Model), a framework that bridges generative modeling with maximum entropy RL to optimize for complex, non-differentiable goals.
Methodology
RGDM treats the denoising process as a Markov Decision Process (MDP). The core innovation lies in a training-phase framework that avoids the high variance typically associated with RL in high-dimensional spaces.
Reward-Aware Payoff Distribution
Instead of calculating gradients based on the model's own initial attempts, RGDM samples from a "payoff distribution." This distribution is mathematically designed to favor samples that yield higher rewards. By sampling from a stationary payoff distribution rather than a non-stationary policy, the framework significantly reduces noise in gradient updates.
Exploration and Black-Box Compatibility
During training, the model explores the "neighborhood" of intermediate samples to find directions that maximize a reward function $r(X)$. Because this uses a sampling-based approach to identify high-reward directions, the reward function can be a black box. This allows for the integration of any external evaluator without needing its gradients.
Experimental Setup
The model was evaluated on two distinct domains:
- 3D Shape Generation (FG3D): Using a dataset of over 25,000 shapes, the task was to generate specific sub-categories (e.g., "helicopters" within the broader "airplane" class).
- Molecule Generation (QM9): Using 130k small organic molecules, the model optimized for chemical properties like drug-likeness (QED) and synthetic accessibility (SA).
Results
RGDM demonstrated superior performance in both domains. In 3D shape generation, it significantly outperformed baselines like 3D-DDPM and Test-Phase Manipulation (TPM). For the helicopter generation task, RGDM achieved a Minimum Matching Distance (MMD) of 0.113, compared to 0.176 for 3D-DDPM. It also showed much higher Coverage (COV), indicating a wider variety of valid generated shapes.
In molecular experiments, RGDM improved the average QED from 0.461 to 0.542 and the average SA from 4.41 to 5.87 compared to the state-of-the-art Equivariant Diffusion Model (EDM), while maintaining high validity and stability (above 90%).
Conclusion
RGDM provides a robust framework for controllable diffusion by formalizing the link between denoising and Maximum Entropy RL. While the approach requires a "smart" initialization through pre-training to handle sparse rewards and introduces some computational overhead, it effectively enables the use of non-differentiable reward functions for complex generation tasks. Future work will focus on more sophisticated sampling strategies to further improve efficiency and discovery in sparse reward landscapes.
Summary updated