Introduction
Black-box optimization (BBO) is a cornerstone of modern scientific discovery, from protein engineering to circuit design. The goal is to find a design $x$ that maximizes an unknown objective function $f^*(x)$. However, real-world BBO faces significant hurdles: high-dimensional search spaces, non-convex landscapes, and a scarcity of labeled data. While unlabeled data (valid designs) may be abundant, reward labels or human preference rankings are often expensive to obtain.
Reframing Optimization as Conditional Sampling
This paper introduces Reward-Conditioned Generation via Diffusion Models (RCGDM), a framework that reframes BBO. Instead of searching for a single global maximum in a potentially adversarial way, RCGDM treats optimization as a conditional sampling task. By learning the underlying distribution of valid designs and conditioning generation on high reward values, the model produces high-fidelity solutions that respect the natural constraints of the data manifold.
The RCGDM Pipeline
The proposed method follows a structured four-step process:
- Reward Learning: A reward estimator is trained on a small labeled dataset, supporting both regression for real-valued rewards and Bradley-Terry models for human preferences.
- Pseudo-labeling: This estimator is used to assign reward values to a much larger pool of unlabeled data.
- Conditional Diffusion Training: A diffusion model is trained on the augmented dataset. To handle high-dimensional data effectively, the authors employ a specialized encoder-decoder score network architecture. This design implicitly captures the low-dimensional latent structures (manifolds) where valid designs reside.
- Guided Generation: New designs are generated by sampling from the diffusion model, conditioned on a target "high reward" value.
Key Insights: Manifolds and Extrapolation
A core contribution of this work is the theoretical grounding of conditioned diffusion. The authors prove that the model naturally learns the data's latent subspace without explicit supervision. This is crucial because it prevents the optimizer from drifting into "invalid" regions of the search space—a common failure mode in traditional BBO.
However, there is an inherent extrapolation trade-off. As the target reward is pushed significantly beyond the range of the training data, the model faces a distribution shift. If the target is too aggressive, the fidelity of the generated samples drops as the model is forced to extrapolate too far from the learned manifold.
Experimental Results
The researchers validated RCGDM across three diverse domains:
- Synthetic High-Dimensional Data: In a 64-dimensional space with a 16-dimensional hidden structure, RCGDM successfully identified the subspace and generated near-optimal samples.
- Directed Text-to-Image: Using Stable Diffusion v1.5, the framework was adapted to generate images that were more "vivid and colorful" based on a custom reward model, while preserving the original prompt's semantic structure.
- Offline Reinforcement Learning: On the D4RL "Hopper" dataset, RCGDM matched or exceeded the performance of specialized methods like Decision Diffuser and Trajectory Transformer. The results highlighted that performance is most robust when the target reward remains within a reasonable range of the training maximum.
Conclusion
RCGDM provides a mathematically rigorous and practically effective approach to black-box optimization. By leveraging the generative power of diffusion models and the efficiency of reward conditioning, it bridges the gap between massive unlabeled datasets and sparse optimization targets. Future work will focus on automating the selection of optimal target rewards and extending the theoretical framework to non-linear manifolds.
Summary updated