arXiv:2611.22965cs.LGNov 2026

Manuscript Offprint

arXiv:2611.22965

High-Dimensional Black-Box Optimization via Guidance Sampling of Diffusion Models

Xiaoyan Hu, Rohit Sonker, Jalal Butt, Jiayu Chen, Egemen Kolemen, Jeff Schneider

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Many real-world optimization problems involve optimizing black-box objectives for which only a limited number of evaluations are available. Bayesian optimization (BO) is a powerful framework for such problems, but its effectiveness often deteriorates in high-dimensional spaces. Recent work leverages diffusion models for black-box optimization, often through pre-training a reward-conditioned score network to steer generation towards high-reward samples. Alternatively, gradient-based guidance methods assume access to a differentiable reward function from which guidance gradients are queried. However, these approaches either require large amounts of labeled data for offline training or access to exact reward gradients, limiting their applicability in black-box settings. We propose BReaD (Black-box Reward-guided Sampling of Diffusion Model), a guidance sampling framework for optimizing black-box rewards without assuming access to a labeled dataset or reward gradients. The proposed method uses a Gaussian process (GP) as a differentiable surrogate for the unknown objective and actively queries labels for the generated samples. We provide a theoretical analysis of the total-variation distance between the generated distribution and the target distribution. Using Upper Confidence Bound (UCB) as guidance signals, our method balances exploration and exploitation during generation and enables the discovery of high-reward regions in the data space. Numerical experiments on scientific discovery and image generation tasks demonstrate that our framework can effectively optimize black-box rewards in low-data scenarios.

1 Introduction

Optimizing expensive black-box functions arises in many real-world applications such as robotics (Tesch et al., 2013), material design (Khatamsaz et al., 2023), and drug discovery (Pyzer-Knapp, 2018). In the black-box setting, the objective function is unknown and can only be evaluated through costly queries. Bayesian optimization (Snoek et al., 2012; Shahriari et al., 2016; Frazier, 2018; Schneider, 2016; Berkenkamp et al., 2023, BO) has emerged as a powerful framework for optimizing such black-box functions. Despite its success, BO often struggles to scale to high-dimensional spaces, where modeling the objective and searching for promising query points become increasingly challenging (Malu et al., 2021; Binois and Wycoff, 2022).

Meanwhile, diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020) have demonstrated remarkable capabilities in modeling complex data distributions. Controlled generation methods (Dhariwal and Nichol, 2021; Ho and Salimans, 2021; Chung et al., 2023; Bansal et al., 2024) further enable sample generation with desired properties, which motivates recent work on diffusion model-based methods for data-driven black-box optimization (Krishnamoorthy et al., 2023; Yuan et al., 2023; Li et al., 2024; Wu et al., 2024; Kong et al., 2025; Yun et al., 2025). Due to limited space, we defer a detailed discussion of related work to Appendix A. Existing approaches typically require large amounts of labeled data to learn a reward model or a reward-conditioned score network, making them challenging to apply when only a small number of reward evaluations, e.g., on the order of 5050, are available. For example, a user may wish to personalize image generation to their preferences after providing only a few rounds of feedback (Figure 1). In scientific discovery applications such as nuclear fusion and protein design, labeled data can be scarce and costly to obtain. This motivates the following question:

Can we optimize black-box rewards in high-dimensional space using only a few evaluations?

Figure

Figure 1: Black-box Reward-guided Sampling of Diffusion Models (BReaD). By actively exploring and querying reward labels in promising regions of the (embedded) sample space, BReaD can effectively optimize black-box rewards in high-dimensional but low-data regimes.

In this paper, we propose BReaD, shorthand for Black-box Reward-guided Sampling of Diffusion Model, a framework for optimizing black-box reward functions in high-dimensional data spaces. BReaD combines a diffusion model that is pre-trained on an unlabeled dataset with a Gaussian process (GP) that models the unknown reward function from limited labeled data. We introduce two mechanisms for guided generation from the pre-trained diffusion model. The first, reward-directed sampling, uses reward-conditioned gradients derived from the fitted GP to guide generation toward samples that yield a target reward. We provide a theoretical analysis that bounds the total-variation distance (TV) between the resulting guided distribution and the target distribution. The second, uncertainty-guided sampling, incorporates Upper Confidence Bound (UCB) into guidance to encourage exploration toward sample space with both high predicted rewards or high uncertainty. To effectively model the black-box objectives in high-dimensional data spaces, we leverage deep kernel learning (Wilson et al., 2015) to construct expressive GP kernels over learned low-dimensional representations. We evaluate BReaD on several image generation tasks and simulated fusion plasma control. Our results demonstrate that the proposed framework can effectively optimize black-box rewards with only a small number of labeled samples, achieving performance comparable to guidance methods with access to the exact reward gradient. Moreover, UCB-based exploration improves sample efficiency and enables more effective discovery of high-reward regions.

Our contributions are summarized as follows.

  • We propose a guidance sampling framework for black-box optimization in high-dimensional spaces. By combining a pre-trained diffusion model with a GP that models the black-box objective, our method effectively generates high-fidelity data with desired properties using only a few rounds of evaluations.
  • We introduce two subroutines for guiding generation toward high-reward samples. Reward-directed sampling uses the GP likelihood conditioned on a target reward as the guidance signal. Uncertainty-guided sampling uses the UCB as the guidance signal to balance exploitation and exploration in the sample space.
  • We provide a theoretical analysis of the total-variation distance between the generated distribution and the target distribution.
  • Numerical experiments on image generation tasks and simulated fusion plasma control show that our method can effectively optimize black-box rewards with only a small number of reward evaluations and achieve performance comparable to guidance methods that have access to the exact reward gradients.