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 50, 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 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.
2 Preliminaries
2.1 Score-Based Generative Models
Given samples from a data distribution qdata∈Δ(X), where X⊂Rd is the sample space, we aim to learn a model distribution pθ that approximates qdata and is easy to sample from. Score-based generative models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2021, SGMs) define a forward SDE from time 0 to T
dXt=−g2(t)Xtdt+2g(t)dBt, where X0∼qdata.
Here, g:R+→R is a positive smooth function, and (Bt)t≥0 is the standard Wiener process in Rd. Let qt:=law(Xt). We have that qt(Xt∣X0)=N(Xt;αˉtX0,(1−αˉt)I), where we define αˉt:=exp(−2∫0tg2(s)ds). Under regularity conditions, the forward process has an equivalent backward SDE (Anderson, 1982) from time 0 to T
dXt←=[g2(T−t)Xt←+2g2(T−t)∇logqT−t(Xt←)]dt+2g(T−t)dBt←, where X0←∼qT,
where (Bt←)t∈[0,T] is the reversed Brownian motion, and ∇logqt is the score function for qt. Particularly, the marginal distribution of Xt← follows qT−t for any t∈[0,T]. By Tweedie’s formula (Efron, 2011), the posterior mean of X0 conditioned on Xt← is given by
Given a pre-trained SGM, guided generation aims to generate a sample X with a desired property Y=y from the distribution P(X∣Y=y). To this end, we need to learn the conditional score function ∇xtlogqt(xt∣y). By Bayes’ rule, we have
where the unconditional score can be estimated by the pre-trained score network, i.e., stθ(xt)≈∇xtlogqt(xt). To estimate ∇xtlogqt(y∣xt), classifier guidance (Dhariwal and Nichol, 2021) trains auxiliary classifiers on noisy samples xt with discrete labels and then uses the gradient of of its log conditional probability as the guidance score. Since such classifiers are domain-specific and generally not readily available, classifier-free guidance (Ho and Salimans, 2021, CFG) instead jointly trains conditional and unconditional diffusion models and combines their score estimates during generation. However, CFG requires the diffusion model to be trained with the desired conditioning information and does not readily accommodate new guidance modalities without retraining. To address this issue, diffusion posterior sampling Chung et al. (2023, DPS) and forward universal guidance (Bansal et al., 2024, Algorithm 1) approximate the conditional score by
∇xtlogqt(y∣xt)≈∇xtlogq0(y∣mt(xt)).
Algorithm 1 ForwardUniversalGuidance (Bansal et al., 2024)
1: guidance function f:X→R, guidance strength η:R+→R+
Let X⊂Rd be a compact domain. Bayesian optimization (Frazier, 2018, BO) aims to solve maxx∈Xf(x), where f:X→R is the objective function. BO consists of two main components: a Bayesian statistical model for modeling the objective function, and an acquisition function for deciding where to sample next. One common choice for the Bayesian statistical model is the Gaussian Process (Rasmussen and Williams, 2005, GP). A GP(μ(x),κ(x,x′)) is specified by its mean function μ(x)=E[f(x)] and covariance (or kernel) function κ(x,x′)=E[(f(x)−μ(x))(f(x′)−μ(x′)]. Without loss of generality, we assume that μ(x)=0 for GPs not conditioned on data. Given noisy evaluations {yn}n=1N at a collection of points {xn}n=1N, where yn=f(xn)+εn with i.i.d. Gaussian noise εn∼N(0,τ2), the conditional distribution of f(x) is a Gaussian distribution N(μN(x),σN2(x)), where
To sample the next point xN+1 for evaluation, the GP-UCB algorithm (Srinivas et al., 2010) proposes to use the Upper Confidence Bound (UCB) as an acquisition function to select the candidate
xN+1=x∈XargmaxμN(x)+cNσN(x),
where cN is a hyperparameter. The UCB acquisition function prefers points whose objective value is uncertain (large σN(⋅)) and expected to be high (large μN(⋅)). GP-UCB has demonstrated strong performance in low- to moderate-dimensional optimization problems. However, directly optimizing the UCB acquisition function becomes challenging in high-dimensional data spaces. Instead, our method uses UCB to guide exploration toward promising regions of the data space, while leveraging a pre-trained diffusion model to generate high-fidelity samples.
3 Guidance Sampling for High-Dimensional Black-Box Optimization
Existing diffusion model-based black-box optimization methods often rely on a sufficiently large reward-labeled dataset to train a reward model or a reward-conditioned score network. In many real-world applications, however, one often has access to abundant unlabeled data while reward labels must be actively acquired. In this section, we propose a guidance sampling framework for high-dimensional black-box optimization.
3.1 Problem Setup
The objective is to optimize a black-box function
x∈Xargmaxf⋆(x), where f⋆:X→[0,1].
We consider a high-dimensional data space X, such as the space of images. Moreover, we assume access to a large unlabeled dataset sampled from the data distribution qdata. Importantly, we do not assume access to an offline reward-labeled dataset. Rather, reward labels are actively acquired through an online interaction protocol (see the RHS of Figure 1). At each iteration k, the algorithm generates a sample xk, queries its reward from the environment, and uses the newly acquired pair (xk,yk) to update its reward estimator and subsequent sampling strategy. This setting differs from conventional Bayesian optimization (BO) problems (Frazier, 2018), which typically operate in low- to moderate-dimensional search spaces. Directly applying BO methods can be challenging, as modeling the black-box objective and optimizing the acquisition function become increasingly difficult as the dimensionality grows. Our setting also differs from existing diffusion model-based black-box optimization frameworks (Krishnamoorthy et al., 2023; Yuan et al., 2023; Li et al., 2024; Wu et al., 2024; Kong et al., 2025), which assume access to a pre-collected labeled dataset for offline training.
3.2 Guided Sampling of Diffusion Models via Black-Box Rewards
In this section, we introduce the framework of Black-box Reward-guided Sampling of Diffusion Model (BReaD, Algorithm 2). Our approach combines a diffusion model that is pre-trained on an unlabeled dataset with a Gaussian process (GP) that models the black-box objective. The GP helps discover high-reward regions of the data space, and the pre-trained diffusion model serves as prior distribution and generates valid and high-fidelity sample. At each iteration k, BReaD refits the GP posterior using the reward-labeled samples observed so far (Line 2), generates a new sample xk via guided diffusion sampling (Lines 3-8), queries its reward yk∼N(f⋆(xk),τ2) from the environment (Line 9), and augments the reward-labeled dataset with the newly observed sample-reward pair (Line 10).
Algorithm 2 Black-box Reward-guided Sampling of Diffusion Model (BReaD)
10: Observe reward yk∼N(f⋆(xk),τ2) for the generated sample xk.
11: Update the reward-labeled dataset Dreward=Dreward∪{(xk,yk)}.
12: end for
We consider two complementary strategies for steering generation toward high-reward samples. The first is motivated by reward-conditioned generation (Krishnamoorthy et al., 2023), which generates samples conditioned on a target reward value. During optimization, the conditioning value is iteratively updated to the best reward observed so far. The second is motivated by gradient-based guidance (Dhariwal and Nichol, 2021; Bansal et al., 2024), which uses gradients of a differentiable function as the guidance signal. Since the true gradients are unavailable in our black-box setting, we use the fitted GP as a differentiable surrogate to construct the guidance functions in both strategies. Accordingly, we introduce two subroutines that use forward universal guidance (Bansal et al., 2024, Algorithm 2) with different guidance functions derived from the GP.
Sub-Routine A. Reward-conditioned guidance via GP-likelihood. This sub-routine aims to generate samples whose rewards are close to a pre-specified target value y⋆. Ideally, we would sample from the reward-conditioned target distribution
qy⋆(x)∝qdata(x)N(y⋆;f⋆(x),τ2),
where qdata is the data distribution and τ2 is the observation-noise variance. Given the GP fitted at iteration k, we approximate the target distribution by qGP,y⋆k(x)∝qdata(x)pGPk(y⋆∣x), where we denote by pGPk(y⋆∣x) the GP predictive likelihood of observing the target reward y⋆ for sample x. Specifically, let μk and σk2 be the mean (9) and the variance (10) of the conditional distribution of f⋆, we have pGPk(y⋆∣x):=N(y⋆;μk(x),σk2(x)+τ2). To approximately sample from this distribution, we use the guided score
at each time t of the reverse process, where sT−tθ is the unconditional score estimated by the pre-trained diffusion model, x^0θ(xt←,T−t) is the predicted posterior mean (5). We analyze the total-variation (TV) distance between the generated distribution and the target reward-conditioned distribution. Our analysis decomposes the distribution mismatch into five sources, including GP approximation, score estimation, discretization, posterior averaging, and initialization errors. The GP approximation error arises from the discrepancy between the GP surrogate and the true black-box objective, which decreases as the GP surrogate becomes more accurate with additional reward observations. The remaining errors arise from approximating the reward-conditioned sampling process using forward universal guidance. The complete bound is provided in Appendix B.3.
Theorem 1 (Distribution mismatch, simplified).
Let q^y⋆k denote the sample distribution generated by Subroutine A of Algorithm 2 at iteration k. Under Assumptions 1-8 in Appendix B.2, the total-variation distance between q^y⋆k and the target distribution (13) satisfies
Sub-Routine B. Uncertainty-aware guidance via UCB. To encourage exploration in the data space, this subroutine incorporates the Upper Confidence Bound (Auer et al., 2002, UCB) into guidance. We use the guided score
at each time t of the reverse process, where UCBk(xt←):=[μk+λσk](x^0θ(xt←,T−t)) is the (predicted) UCB value for the noisy sample, and λ controls the trade-off between exploitation and exploration. The guided process (16) aims to approximate the data distribution reweighted by the UCB value, i.e., qUCBk(x)∝qdata(x)exp(UCBk(x)). In the GP bandit literature (Srinivas et al., 2010), UCB provides an optimistic estimate of the black-box objective f⋆. By steering generation toward the high-UCB region of the data space and querying reward labels for these samples, the GP acquires informative observations that improve its estimation. This further enables the discovery of the promising high-reward region. In numerical experiments, we find that UCB guidance often leads to more effective optimization.
(a) Unguided (ImageReward: 0.31)
(b) Forward universal guidance by exact gradients (ImageReward: 1.61)
(c) BReaD-SubA (Round 21, ImageReward: 1.29)
(d) BReaD-SubB (Round 11, ImageReward: 1.75)
Figure 2: Human preference-guided generation (Task 2, Section 4.1). A painting of a girl walking in a hallway and suddenly finds a giant sunflower on the floor blocking her way. BReaD generates high-score samples with only a few evaluations without accessing reward gradients. Images are generated with the same seed.
Extension to Deep Kernel Learning. To construct expressive kernel functions in high-dimensional spaces, we utilize deep kernel learning (Wilson et al., 2015, DKL), which uses a deep neural network to transform data into a low-dimensional representation, i.e., g(⋅;w):X→Rd. We then define the GP kernel over the learned representations as
κw(x,x′):=κ(g(x;w),g(x′;w)),
where κ is a base kernel function, e.g., the radial basis function (RBF) kernel. The weights can be learned by maximizing the marginal likelihood of the observed data
(a) Style guidance (Task 1): Matching the text prompt, A portrait of a woman, guided by Pablo Picasso’s painting, Brick Factory at Tortosa
(b) Human-preference guidance (Task 2): A painting of a girl walking in a hallway and suddenly finds a giant sunflower on the floor blocking her way
Figure 3: Image generation guided by black-box rewards (Section 4.1). Optimization for style loss (Left) and ImageReward score (Right). Results are averaged over 10 trials.
Baselines. In this section, we report the performance of the proposed framework across image generation, protein design, and a simulated nuclear fusion control task. Particularly, we compare BReaD-SubA (BReaD with Subroutine A) and BReaD-SubB (BReaD with Subroutine B) against the following baselines: 1) MLP RM-guided, which guides the generation through a three-layer multi-layer perceptron reward model trained at each iteration to predict the black-box objective using all observations collected so far; 2) DM-GP-UCB, GP-UCB (Srinivas et al., 2010) using the diffusion model (DM) as a priori for searching; it generates 10 candidate samples from the DM at each iteration and selects the one with the highest UCB value for evaluation; 3) fwd. uni-guided, which applies Forward universal guidance (Bansal et al., 2024) using the exact reward gradients of the black-box objective; 4) unguided, which generates samples from the pre-trained diffusion model without reward guidance (while retaining prompt guidance in image generation)). We use the labels for 20 unconditionally generated samples to initialize the GP in BRead and DM-GP-UCB methods and the reward model in the MLP RM-guided baseline. We report both the mean and the standard error. When reporting the results, we plot the curve for the best-so-far observed loss/reward for BReaD-SubA, BReaD-SubB, MLP-guided, GP-UCB, and random search. Since the unguided and fwd. uni-guided baselines do not adapt to new observations, we report the best loss/reward among 30 generated images.
Summary of results. We summarize the numerical results as follows. The proposed methods achieve performance comparable to the fwd. uni-guided baseline, despite not having access to the exact reward gradients. Meanwhile, they also consistently outperform the MLP-guided baseline. This demonstrates the benefit of GP-based surrogate modeling and guidance in low-data settings. Compared with GP-UCB, which follows a generate-then-select strategy over candidates sampled unconditionally from the diffusion model, our methods consistently generate higher-reward samples, especially when such samples may have low probability under the unconditional data distribution. Finally, incorporating UCB into the guidance process further promotes exploration of promising regions and often leads to more effective optimization performance. Additional experimental results and implementation details are postponed to Appendix E.
4.1 Results for Image Generation
Task 1. Style-guided generation. We perform style-guided image generation using Stable Diffusion v1.5 (Rombach et al., 2022). The style loss is defined as the cosine distance between the CLIP embeddings (Radford et al., 2021) of the generated and reference images, i.e., ℓstyle(xgen)=1−cos⟨CLIP(xref),CLIP(xgen)⟩, where xref is the image in the reference style and xgen is the generated image. Figure (3(a)) reports results for generating images that match the text prompt, A portrait of a woman, and the style of Pablo Picasso’s painting, Brick Factory at Tortosa. Example generated images can be found in Figure 6 in the Appendix. Our methods can effectively produce images that match the reference style and achieve a loss comparable to the fwd. uni-guided baseline that has access to the exact loss gradient. Moreover, incorporating UCB into guidance leads to faster reduction in style loss.
Task 2. Human preference-guided generation. One practical low-data setting is personalized image generation, where a user may wish to generate images with desired properties based on only a few rounds of feedback. To simulate such feedback, we use ImageReward (Xu et al., 2023), a text-to-image human-preference reward model trained on 137k expert comparisons, as the black-box objective. We generate images with Stable Diffusion v1.5 and optimize the ImageReward score through iterative queries. Figures (3(b)) and 2 show one such example where BReaD effectively discovers images with substantially higher rewards and fidelity using only a small number of evaluations.
4.2 Results for Ligand optimization
Structure-based drug design aims to identify ligand molecules that bind strongly to a target protein. We consider optimizing the Vina score (Trott and Olson, 2010), a widely used molecular docking score that approximates the binding affinity between a ligand and a protein binding pocket. A lower Vina score indicates favorable predicted binding. Directly applying gradient-based optimization methods can be challenging since the Vina score is non-differentiable. We use the pre-trained DiffSBDD model (Schneuing et al., 2024), which generates three-dimensional ligand structures conditioned on a target protein pocket. Figure 4 reports results on DPP4 and p38-MAPK. We do not include the forward universal-guidance baseline because gradients of the Vina scoring function are unavailable. BReaD effectively improves the Vina score for both protein targets using only a small number of evaluations and outperforms the baselines.
(a) Dipeptidyl peptidase-4 (DPP4)
(b) p38 MAP kinase (MAPK)
Figure 4: Ligand optimization for Vina scores. DPP4 and p38-MAPK. Results are averaged over 10 trials.
4.3 Results for Controllable Nuclear Fusion
Nuclear fusion is a promising path toward sustainable energy. Our goal is to access the Wide-Pedestal QH mode (Li et al., 2022, WPQH), an advanced plasma scenario that achieves high energy confinement without damaging transient heat pulses. The labeled data for this plasma scenario is scarce. Among approximately 10k shots in the historical dataset of the DIII-D Tokamak in San Diego, we only have the WPQH labels for around 400 shots. We pre-trained a diffusion model on the historical shot data. Specifically, given the plasma state and actuator sequence during the first 200ms of the flat-top phase (10 control steps), the diffusion model models the plasma state and actuator sequence over the subsequent 3800ms (190 control steps). In the experiment, we parameterize six controllable actuators, including beam power, beam torque, Ip, q95, and ECH, using 21 parameters that determine their control waveforms.
Simulation results. We evaluate the methods in simulation. To simulate the tokamak dynamics, we train an ensemble of 25 recurrent probabilistic neural networks (RPNNs) on the historical DIII-D dataset, following (Char et al., 2024; Sonker et al., 2025). Given an actuator configuration, the RPNN ensemble predicts the resulting plasma trajectories. Additionally, we train a WPQH detector using labeled experimental data to identify whether the plasma is in WPQH mode at each timestep. The trained detector achieves 85.49% accuracy on real experimental trajectories and 72.46% accuracy when applied to trajectories rolled out by the RPNN ensemble. We then compute the WPQH ratio as the fraction of time steps during the flat-top phase classified as WPQH. We provide additional details in Appendix D. Figure 5 reports the best-so-far WPQH ratio over 30 optimization rounds. The results show that the proposed uncertainty-aware guidance method progressively improves the WPQH ratio and matches the performance of the forward universal guidance baseline that has direct access to the objective gradients.
Figure 5: Accessing the Wide-Pedesatal QH in a simulated tokamak environment. Results are averaged over 10 trials.
5 Discussion
We propose BReaD, a framework for optimizing black-box reward functions in high-dimensional data spaces. BReaD uses a Gaussian process as a differentiable surrogate for the unknown reward function and constructs guidance signals for guided generation from a diffusion model that is pre-trained on unlabeled data. Numerical results on image generation, protein design, and simulated fusion plasma control tasks demonstrate that our framework can effectively optimize black-box rewards in low-data scenarios. An important direction for future work is to deploy and evaluate BReaD on real-world systems, such as the DIII-D tokamak. Another promising direction is to extend the framework to multi-objective and constrained optimization problems, which commonly arise in scientific applications.
References
B. D.O. Anderson Reverse-time diffusion equation models. Stochastic Processes and their Applications 12 (3), pp. 313–326. External Links: ISSN 0304-4149, Document, Link Cited by: §2.1.
P. Auer, N. Cesa-Bianchi, and P. Fischer Finite-time analysis of the multiarmed bandit problem. Mach. Learn. 47 (2–3), pp. 235–256. External Links: ISSN 0885-6125, Link, Document Cited by: §3.2.
A. Bansal, H. Chu, A. Schwarzschild, R. Sengupta, M. Goldblum, J. Geiping, and T. Goldstein Universal guidance for diffusion models. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: Appendix A, Appendix C, §1, §2.2, §3.2, §4, Algorithm 1.
F. Berkenkamp, A. Krause, and A. P. Schoellig Bayesian optimization with safety constraints: safe and automatic parameter tuning in robotics. Machine Learning 112 (10), pp. 3713–3747. Cited by: §1.
M. Binois and N. Wycoff A survey on high-dimensional gaussian process modeling with application to bayesian optimization. ACM Trans. Evol. Learn. Optim. 2 (2). External Links: ISSN 2688-299X, Link, Document Cited by: §1.
D. Brookes, H. Park, and J. Listgarten Conditioning by adaptive sampling for robust design. In Proceedings of the 36th International Conference on Machine Learning, K. Chaudhuri and R. Salakhutdinov (Eds.), Proceedings of Machine Learning Research, Vol. 97, pp. 773–782. External Links: Link Cited by: Appendix A.
I. Char, Y. Chung, J. Abbate, E. Kolemen, and J. Schneider Full shot predictions for the diii-d tokamak via deep recurrent networks. External Links: 2404.12416, Link Cited by: Appendix D, §4.3.
S. Chen, S. Chewi, J. Li, Y. Li, A. Salim, and A. Zhang Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. In The Eleventh International Conference on Learning Representations, External Links: Link Cited by: §B.4.2, §B.4.2, §B.4.3, Assumption 5, Assumption 6, Assumption 7.
H. Chung, J. Kim, M. T. Mccann, M. L. Klasky, and J. C. Ye Diffusion posterior sampling for general noisy inverse problems. In The Eleventh International Conference on Learning Representations, External Links: Link Cited by: Appendix A, §1, §2.2.
P. Dhariwal and A. Q. Nichol Diffusion models beat GANs on image synthesis. In Advances in Neural Information Processing Systems, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan (Eds.), External Links: Link Cited by: Appendix A, §1, §2.2, §3.2.
B. Efron Tweedie’s formula and selection bias. Journal of the American Statistical Association 106 (496), pp. 1602–1614. Cited by: §2.1.
D. Eriksson and M. Jankowiak High-dimensional bayesian optimization with sparse axis-aligned subspaces. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, Proceedings of Machine Learning Research, Vol. 161, pp. 493–503. Cited by: Appendix A.
D. Eriksson, M. Pearce, J. R. Gardner, R. Turner, and M. Poloczek Scalable global optimization via local bayesian optimization. In Advances in Neural Information Processing Systems, Vol. 32. Cited by: Appendix A.
P. Esser, S. Kulal, A. Blattmann, R. Entezari, J. Müller, H. Saini, Y. Levi, D. Lorenz, A. Sauer, F. Boesel, D. Podell, T. Dockhorn, Z. English, and R. Rombach Scaling rectified flow transformers for high-resolution image synthesis. In Forty-first International Conference on Machine Learning, External Links: Link Cited by: Appendix D.
P. I. Frazier A tutorial on bayesian optimization. External Links: 1807.02811, Link Cited by: §1, §2.3, §3.1.
N. Gruver, S. Stanton, N. Frey, T. G. J. Rudner, I. Hotzel, J. Lafrance-Vanasse, A. Rajpal, K. Cho, and A. G. Wilson Protein design with guided discrete diffusion. In Advances in Neural Information Processing Systems, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.), Vol. 36, pp. 12489–12517. External Links: Document, Link Cited by: Appendix A.
J. Ho, A. Jain, and P. Abbeel Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33, pp. 6840–6851. External Links: Link Cited by: §1, §2.1.
J. Ho and T. Salimans Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, External Links: Link Cited by: Appendix A, §1, §2.2.
D. Khatamsaz, R. Neuberger, A. M. Roy, S. H. Zadeh, R. Otis, and R. Arróyave A physics informed bayesian optimization approach for material design: application to niti shape memory alloys. npj Computational Materials 9 (1), pp. 221. Cited by: §1.
S. Kim, M. Kim, and D. Park Test-time alignment of diffusion models without reward over-optimization. In The Thirteenth International Conference on Learning Representations, Cited by: Appendix A.
L. Kong, Y. Du, W. Mu, K. Neklyudov, V. D. Bortoli, D. Wu, H. Wang, A. M. Ferber, Y. Ma, C. P. Gomes, and C. Zhang Diffusion models as constrained samplers for optimization with unknown constraints. In Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, Y. Li, S. Mandt, S. Agrawal, and E. Khan (Eds.), Proceedings of Machine Learning Research, Vol. 258, pp. 4582–4590. External Links: Link Cited by: §1, §3.1.
S. Krishnamoorthy, S. M. Mashkaria, and A. Grover Diffusion models for black-box optimization. In Proceedings of the 40th International Conference on Machine Learning, A. Krause, E. Brunskill, K. Cho, B. Engelhardt, S. Sabato, and J. Scarlett (Eds.), Proceedings of Machine Learning Research, Vol. 202, pp. 17842–17857. External Links: Link Cited by: Appendix A, §1, §3.1, §3.2.
A. Kumar and S. Levine Model inversion networks for model-based optimization. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33, pp. 5126–5137. External Links: Link Cited by: Appendix A.
Z. Li, X. Chen, C. M. Muscatello, K.H. Burrell, X. Xu, B. Zhu, R. Hong, T.H. Osborne, B. A. Grierson, T.L. Rhodes, T.Y. Xia, G.R. McKee, Z. Yan, G. Yu, and D. Team Numerical modeling of pedestal stability and broadband turbulence of wide-pedestal qh-mode plasmas on diii-d. Nuclear Fusion 62 (7), pp. 076033. External Links: Document, Link Cited by: §4.3.
Z. Li, H. Yuan, K. Huang, C. Ni, Y. Ye, M. Chen, and M. Wang Diffusion model for data-driven black-box optimization. External Links: 2403.13219, Link Cited by: §1, §3.1.
M. Malu, G. Dasarathy, and A. Spanias Bayesian optimization in high-dimensional spaces: a brief survey. In 2021 12th International Conference on Information, Intelligence, Systems & Applications (IISA), Vol. , pp. 1–8. External Links: Document Cited by: §1.
S. M. Mashkaria, S. Krishnamoorthy, and A. Grover Generative pretraining for black-box optimization. In Proceedings of the 40th International Conference on Machine Learning, A. Krause, E. Brunskill, K. Cho, B. Engelhardt, S. Sabato, and J. Scarlett (Eds.), Proceedings of Machine Learning Research, Vol. 202, pp. 24173–24197. External Links: Link Cited by: Appendix A.
L. Papenmeier, L. Nardi, and M. Poloczek Increasing the scope as you learn: adaptive bayesian optimization in nested subspaces. In Advances in Neural Information Processing Systems, A. H. Oh, A. Agarwal, D. Belgrave, and K. Cho (Eds.), External Links: Link Cited by: Appendix A.
E. O. Pyzer-Knapp Bayesian optimization for accelerated drug discovery. IBM Journal of Research and Development 62 (6), pp. 2:1–2:7. External Links: Document Cited by: §1.
A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, G. Krueger, and I. Sutskever Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, M. Meila and T. Zhang (Eds.), Proceedings of Machine Learning Research, Vol. 139, pp. 8748–8763. External Links: Link Cited by: §4.1.
R. Rajagopalan, D. Dutta, Y. Wei, and R. R. Choudhury Personalized image generation via human-in-the-loop bayesian optimization. In Forty-third International Conference on Machine Learning, External Links: Link Cited by: Appendix A.
R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer High-Resolution Image Synthesis with Latent Diffusion Models . In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vol. , Los Alamitos, CA, USA, pp. 10674–10685. External Links: ISSN , Document, Link Cited by: §4.1.
J. Schneider Bayesian optimization and embedded learning systems. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, New York, NY, USA, pp. 413. External Links: ISBN 9781450342322, Link, Document Cited by: §1.
A. Schneuing, C. Harris, Y. Du, K. Didi, A. Jamasb, I. Igashov, W. Du, C. Gomes, T. L. Blundell, P. Lio, M. Welling, M. Bronstein, and B. Correia Structure-based drug design with equivariant diffusion models. Nature Computational Science 4 (12), pp. 899–909. Cited by: §4.2.
B. Shahriari, K. Swersky, Z. Wang, R. P. Adams, and N. de Freitas Taking the human out of the loop: a review of bayesian optimization. Proceedings of the IEEE 104 (1), pp. 148–175. External Links: Document Cited by: §1.
J. Snoek, H. Larochelle, and R. Adams Practical bayesian optimization of machine learning algorithms. In Advances in Neural Information Processing Systems, F. Pereira, C.J. Burges, L. Bottou, and K. Weinberger (Eds.), Vol. 25, pp. . External Links: Link Cited by: §1.
J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, F. Bach and D. Blei (Eds.), Proceedings of Machine Learning Research, Vol. 37, Lille, France, pp. 2256–2265. External Links: Link Cited by: §1, §2.1.
Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, External Links: Link Cited by: §2.1.
R. Sonker, A. Capone, A. Rothstein, H. J. F. Kaga, E. Kolemen, and J. Schneider Multi-timescale dynamics model Bayesian optimization for plasma stabilization in tokamaks. In Proceedings of the 42nd International Conference on Machine Learning, A. Singh, M. Fazel, D. Hsu, S. Lacoste-Julien, F. Berkenkamp, T. Maharaj, K. Wagstaff, and J. Zhu (Eds.), Proceedings of Machine Learning Research, Vol. 267, pp. 56465–56479. External Links: Link Cited by: §4.3.
N. Srinivas, A. Krause, S. Kakade, and M. Seeger Gaussian process optimization in the bandit setting: no regret and experimental design. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML’10, Madison, WI, USA, pp. 1015–1022. External Links: ISBN 9781605589077 Cited by: §2.3, §3.2, §4.
S. Stanton, W. Maddox, N. Gruver, P. Maffettone, E. Delaney, P. Greenside, and A. G. Wilson Accelerating Bayesian optimization for biological sequence design with denoising autoencoders. In Proceedings of the 39th International Conference on Machine Learning, K. Chaudhuri, S. Jegelka, L. Song, C. Szepesvari, G. Niu, and S. Sabato (Eds.), Proceedings of Machine Learning Research, Vol. 162, pp. 20459–20478. External Links: Link Cited by: Appendix A.
K. Y. Tan, Y. Lyu, I. W. Tsang, and Y. Ong Fast direct: query-efficient online black-box guidance for diffusion-model target generation. In The Thirteenth International Conference on Learning Representations, Cited by: Appendix A.
M. Tesch, J. Schneider, and H. Choset Expensive multiobjective optimization for robotics. In 2013 IEEE International Conference on Robotics and Automation, Vol. , pp. 973–980. External Links: Document Cited by: §1.
O. Trott and A. J. Olson AutoDock vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading. Journal of Computational Chemistry 31 (2), pp. 455–461. External Links: Document, Link, https://onlinelibrary.wiley.com/doi/pdf/10.1002/jcc.21334 Cited by: §4.2.
Z. Wang, M. Zoghi, F. Hutter, D. Matheson, and N. de Freitas Bayesian optimization in high dimensions via random embeddings. In Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence, pp. 1778–1784. Cited by: Appendix A.
A. G. Wilson, Z. Hu, R. Salakhutdinov, and E. P. Xing Deep kernel learning. External Links: 1511.02222, Link Cited by: §1, §3.2.
D. Wu, N. L. Kuang, R. Niu, Y. Ma, and R. Yu Diff-BBO: diffusion-based inverse modeling for black-box optimization. In NeurIPS 2024 Workshop on Bayesian Decision-making and Uncertainty, External Links: Link Cited by: Appendix A, §1, §3.1.
J. Xu, X. Liu, Y. Wu, Y. Tong, Q. Li, M. Ding, J. Tang, and Y. Dong ImageReward: learning and evaluating human preferences for text-to-image generation. In Thirty-seventh Conference on Neural Information Processing Systems, External Links: Link Cited by: §4.1.
H. Yuan, K. Huang, C. Ni, M. Chen, and M. Wang Reward-directed conditional diffusion: provable distribution estimation and reward improvement. In Thirty-seventh Conference on Neural Information Processing Systems, External Links: Link Cited by: Appendix A, §1, §3.1.
T. Yun, K. Om, J. Lee, S. Yun, and J. Park Posterior inference with diffusion models for high-dimensional black-box optimization. In Forty-second International Conference on Machine Learning, External Links: Link Cited by: Appendix A, §1.
Appendix A Related Work
High-dimensional Bayesian optimization. Bayesian optimization (BO) is effective for optimizing expensive black-box objectives but often struggles in high-dimensional spaces. REMBO [Wang et al., 2013] assumes that the objective has low effective dimensionality and performs BO in a randomly embedded low-dimensional subspace. TuRBO [Eriksson et al., 2019] performs BO within local trust regions and adaptively expands or contracts these regions during optimization. SAASBO [Eriksson and Jankowiak, 2021] places a sparsity-inducing prior over input dimensions. BAxUS [Papenmeier et al., 2022] progressively scales up the dimensionality of the target subspace.
Diffusion models and controlled generation. A separate line of work uses pre-trained diffusion models to generate samples with desired properties. Classifier guidance [Dhariwal and Nichol, 2021] modifies the diffusion score using gradients from an auxiliary classifier, while classifier-free guidance [Ho and Salimans, 2021] performs conditional generation by jointly learning the estimation of unconditional and conditional scores. Diffusion Posterior Sampling [Chung et al., 2023] extends gradient-guided diffusion to inverse problems by incorporating gradients derived from an observation likelihood. Universal Guidance enables a pre-trained diffusion model to be controlled by arbitrary differentiable guidance functions without retraining task-specific components [Bansal et al., 2024]. These approaches assume access to a differentiable function that provides guidance gradients during sampling, which are not readily available in black-box settings.
Generative black-box optimization. Generative models have increasingly been used to optimize black-box objectives in high-dimensional design spaces. Brookes et al. [2019] propose adaptive sampling of generative models that estimates a distribution over the design space conditioned on desired properties. Model inversion networks [Kumar and Levine, 2020, MINs] learn an inverse function that maps values to corresponding inputs. DDOM [Krishnamoorthy et al., 2023] trains a reward-conditioned diffusion model from a large labeled dataset and generates candidates conditioned on a high objective value. Diff-BBO [Wu et al., 2024] further extends this approach to an online setting and uses an uncertainty-aware acquisition strategy to propose the conditioned objective. Reward-directed generation [Yuan et al., 2023] uses a pseudo-labeler trained on labeled data to annotate an unlabeled dataset and then trains a reward-conditioned diffusion model. Recent work integrates Bayesian optimization into generative model-based optimization. GenBO [Mashkaria et al., 2023] approximates a target distribution proportional to BO’s acquisition function to propose the next query locations. BONET [Mashkaria et al., 2023] approximates the dynamics of black-box optimizers using an autoregressive sequence model. LaMBO [Stanton et al., 2022] and LaMBO-2 [Gruver et al., 2023] jointly train a diffusion model with a discriminator and perform gradient-based optimization of an acquisition function. Fast Direct [Tan et al., 2025] updates a GP surrogate using batched black-box evaluations and constructs a pseudo-target for guidance. DAS [Kim et al., 2025] performs Sequential Monte Carlo (SMC) during the reverse diffusion process to approximate a reward-tilted distribution at test time. DiBO [Yun et al., 2025] iteratively retrains and fine-tunes a diffusion model to sample from the posterior distribution induced by a deep-ensemble reward surrogate to balance exploration and exploitation. Multi-BO [Rajagopalan et al., 2026] performs BO on the diffusion model’s attention features and iteratively uses human feedback to generate new candidates.
Appendix B Distibution Mismatch Analysis of Subroutine A
B.1 Notations and Definitions
Table 1: Notation and definitions in the proof
Notation
Definition
f⋆
(Unknown) Reward function
N(0,τ)
Noise in the observed rewards
y⋆
Target score
qdata
Data distribution
qt
Marginal distribution of Xˉt in process (17)
QT←
Path distribution of the backward SDE (18)
mt(xt)
Posterior mean Eq0(⋅∣xt)[x0] (3)
Jm(xt,t)
Jacobian matrix ∇xtmt(xt) of the posterior-mean map
qy⋆(x)∝qdata(x)N(y⋆;f⋆(x),τ2)
Target-conditioned distribution
Zy⋆
Normalizer ∫N(y⋆;f⋆(x0),τ2)qdata(x0)dx0
qy⋆,t
Marginal distribution of Xˉy⋆,t in process (19)
Qy⋆,T←
Path distribution of the backward SDE (20)
pˉt(y⋆∣xt)
Ex0∼q0(⋅∣xt)[N(y⋆;f⋆(x0),τ2)]
qGP,y⋆k(x)∝qdata(x)N(y⋆;μk(x),σk2(x)+τ2)
GP-conditioned distribution at the k-th iteration
Zk
Normalizer ∫qdata(x)N(y⋆;μk(x),σk2(x)+τ2)dx
qGP,y⋆,tk
Marginal distribution of Xˉtk in process (22)
QGP,y⋆,Tk,←
Path distribution of the backward SDE (23)
pˉGP,tk(y⋆∣xt)
Ex0∼q0(⋅∣xt)[N(y⋆;f^k(x0),τ2)]
q^y⋆k
Generated distribution at the k-th online iteration
f^k
GP posterior mean of f⋆ fitted at the k-th online iteration
x^0θ(xt,t)
Predicted posterior mean (5)
Jx^0θ(xt,t)
Jacobian matrix ∇xtx^0θ(xt,t) of the posterior-mean prediction map
ϵuncond2
Bound on the per-step score estimation error (24)
ϵˉuncond2
Bound on the weighted-average score estimation error (39)
ϵˉHess2
Bound on the weighted-average score Hessian estimation error (40)
ϵpost-avg2
Posterior-averaging error (53)
Lτ
(29)
Lτ,Var
(30)
h
Discretization length
m22
Assumption 6
Gk
Assumption 8
J^max
(38)
Jmax
(41)
B⋆
Assumption 1
rk
GP mean-approximation error (27)
r∇,k
GP gradient-approximation error (42)
vk2
GP variance (28)
v∇,k
Gradient of the GP variance (43)
Mk
(46)
Bk
(45)
cτ
(31)
cτ,k
(47)
Lk
Assumption 5
L~k
Assumption 5
B.2 Preliminaries
Unconditional generation processes
In the proof, we consider g(t)≡1 in the forward SDE (1), that is,
dXˉt=−Xˉtdt+2dBt,X0∼qdata,
and we have qt(xt∣x0)=N(xt;αˉtx0,1−αˉtI), where αˉt=exp(−2t). The corresponding backward SDE is given by
where pˉGP,T−tk(y⋆∣Xˉ←,kt)=Ex0∼q0(⋅∣xt)[N(y⋆;μk(x0),σk2(x0)+τ2)].
Our proof is based on the following assumptions.
Assumption 1 (Bounded reward).
We have f⋆(x)∈[0,1] and ∥∇f⋆(x)∥≤B⋆ for any x∈X.
Assumption 2.
The true reward f⋆:X→[0,1] belongs to the RKHS Hκ associated with the kernel κ(x,x′) and satisfies ∥f⋆∥Hκ≤B. At online iteration k, the observed reward is yk=f⋆(xk)+εk, where the noise εk is conditionally zero-mean given the history and is R-sub-Gaussian.
where the second inequality uses the fact that ∣Zk−Zy⋆∣≤Eqdata[∣N(y⋆;f⋆(x),τ2)−N(y⋆;μk(x),σk2(x)+τ2)∣]. By the Lipschitz property of the Gaussian likelihood in its mean, there exists a constant
Lτ:=2πeτ21≥μ∈Rsup∂μ∂N(y⋆;μ,τ2),
such that ∣N(y⋆;f⋆(x),τ2)−N(y⋆;μk(x),τ2)∣≤Lτ∣μk(x)−f⋆(x)∣≤Lτrk. On the other hand, since
where the last inequality uses the fact that e−z/2∣z−1∣≤1 for z≥0. Hence, we have ∣N(y⋆;μk(x),τ2)−N(y⋆;μk(x),σk2(x)+τ2)∣≤Lτ,Varvk2. Furthermore, since y⋆,f⋆(x)∈[0,1] by Assumption 1, we have
where q~y⋆k is the (discretized) reverse sampling process (23), and the last inequality holds by the data processing inequality. For the second term, we have
DTV(qGP,y⋆,Tk,ε)≲DKL(qGP,y⋆k∥ε)exp(−T)
Next, we bound the total variation distance between qGP,y⋆k and q~y⋆k, i.e., DTV(qGP,y⋆k,q~y⋆k). Let QGP,y⋆,Tk,← denote the law of the ideal reverse path (23), which produces qGP,y⋆k. Define 0=t0<t1<⋯<tJ=T as the time grid for the discretized backward SDE, where h=JT≲Lk−1 and tj=jh. We denote by Q~GP,y⋆,Tk,← the path law of the corresponding discretized backward SDE that produces q~y⋆k, which uses s~T−tj−1(Xtj−1←) for t∈[tj−1,tj]. Therefore, by the data processing inequality for total variation and Pinsker’s inequality, we derive
By the same localization and approximation argument as in the proof of [Chen et al., 2023, Theorem 9], the Girsanov path-space KL bound remains valid without assuming Novikov’s condition. Combining this and Inequality (32), we have that
where A(xt):=∫ϕ(x0)qdata(x0)qt(xt∣x0)dx0. Since ϕ is bounded and the Gaussian kernel qt(xt∣x0) is smooth in xt, we can interchange the derivative and the integral and obtain that
where we utilize the fact that ∇xtqt(xt∣x0)=qt(xt∣x0)∇xtlogqt(xt∣x0) to derive the last equation. We conclude the proof. ∎
Appendix C Detailed Implementation
BReaD-SubA & BReaD-SubB At each round, BReaD fits a GP/DKL surrogate using the observed labeled samples collected so far. Given the current noisy sample at a denoising step, it first predicts the posterior mean (5) and extracts a differentiable feature representation from the predicted clean sample. The GP posterior is then evaluated on this representation to further compute target-conditioned likelihood in BReaD-SubA or the upper confidence bound (UCB) in BReaD-SubB. The resulting guidance gradient is differentiated with respect to the noisy sample by back-propagating through the feature extractor and the diffusion model.
MLP RM-guided The MLP-guided baseline uses a lightweight multilayer perceptron (MLP) to predict the black-box objective value from the same feature representation used by BReaD. The MLP shares the same architecture as the feature map within our deep kernel learning (DKL) surrogate, but directly outputs a scalar reward prediction. At each denoising step, it first predicts the posterior mean (5) of the current noisy sample Xt←. This estimate is then forwarded to extract the feature input to the MLP surrogate. Then, the guidance gradient is computed via backpropagation and used to modify the noise estimate in the forward universal guidance style.
DM-GP-UCB The GP-UCB baseline follows a generate-and-select strategy. At each iteration, it first generates a batch of 10 candidate samples from the pre-trained diffusion model. The UCB values of these samples are computed from a GP surrogate that is fitted on the observed data so far. The candidate with the highest UCB value is selected for evaluation at the current iteration.
fwd. uni-guided The implementation of the forward universal guidance baseline follows [Bansal et al., 2024]. At every timestep, the current noisy sample is used to predict the posterior mean 5. This estimate is passed to the true objective function to compute the exact reward gradient for guidance.
Input features for BReaD-SubA, BReaD-SubB, MLP RM-guided, and DM-GP-UCB. For a given experiment, all four methods use the same feature representation to ensure a consistent comparison. For image generation tasks in Section 4.1, the feature is the 768-dimensional CLIP embedding of the predicted clean image. For the ligand optimization task in Section 4.2, we obtain the 256-dimensional feature by first extracting the hidden representation immediately before the EGNN output projection and then mean-pooling the representations over the ligand atoms. For the WPQH experiment in Section 4.3, we parameterize the generated sequence of six actuators into 21 parameters and use these parameters as the surrogate input.
Appendix D Additional Details in Section 4.3: Results for Controllable Nuclear Fusion
Controllable nuclear fusion and Wide-Pedestal QH.
Nuclear fusion is a promising path toward sustainable energy, and tokamaks are among the leading candidates for producing controlled thermonuclear fusion power. Conventional approaches to plasma control typically combine precomputed actuator trajectories, such as coil-current programs, with feedback controllers designed for specific target quantities. These control systems have demonstrated reliable performance within a wide range of discharges, but their design requires substantial engineering effort and expertise, especially for advanced plasma scenarios. One such example is accessing the Wide-Pedestal QH (WPQH) mode. The WPQH mode is an advanced plasma-confinement regime characterized by a wide edge transport barrier that enables high energy confinement while avoiding damaging edge-localized modes (ELMs).
Modeling DIII-D Tokamak dynamics using an RPNN ensemble.
We follow [Char et al., 2024] and model plasma dynamics in the DIII-D Tokamak using an ensemble of recurrent probabilistic neural networks (RPNNs). Each RPNN autoregressively predicts the distribution of the change in plasma state between consecutive timesteps, conditioned on the current plasma state, actuator inputs, and a recurrent hidden state that summarizes the preceding trajectory. The predicted state difference is then added to the current state to obtain the next-state prediction. The network architecture is shown below. We train an ensemble of 25 RPNNs to predict 12 plasma states, consisting of 10 scalar states and two plasma profiles, with each profile represented by four PCA components, from a sequence of 14 actuators parameterized by 19 input variables. To evaluate the predictive accuracy of the learned dynamics model, we report the explained variance (EV) of the predicted timestep differences, i.e., the change from the current state to the next state, for each state variable in Table 2.
Table 2: Per-variable explained variance (EV) of the RPNN ensemble trained on historical DIII-D experimental data. Higher values indicate better agreement with held-out real trajectories.
Variable
Ensemble EV
Variable
Ensemble EV
βN
0.7983
denv1
0.4912
βp
0.8137
temp_pca1
0.6892
WMHD
0.8012
temp_pca2
0.5145
prmtan_tewid
0.3132
temp_pca3
0.3936
prmtan_newid
0.2460
temp_pca4
0.4799
prmtan_teped
0.3803
dens_pca1
0.6918
prmtan_neped
0.4126
dens_pca2
0.5333
FS04_max
0.5999
dens_pca3
0.5380
denr0
0.4538
dens_pca4
0.5692
Average Ensemble EV
0.5400
Signal Group
Signals
Actuator
Controllable
State
Scalar States
βN (Normalized Plasma Pressure)
✗
✗
✓
βp (Poloidal Beta)
✗
✗
✓
MHD Stored Energy (WMHD)
✗
✗
✓
Electron Temperature Pedestal Width (prmtan_tewid)
✗
✗
✓
Electron Density Pedestal Width (prmtan_newid)
✗
✗
✓
Electron Temperature Pedestal Height (prmtan_teped)
✗
✗
✓
Electron Density Pedestal Height (prmtan_neped)
✗
✗
✓
FilterScope (FS04max)
✗
✗
✓
denr0
✗
✗
✓
denv1
✗
✗
✓
Profile States
Electron Temperature Profile (Te)
✗
✗
✓
Electron Density Profile (ne)
✗
✗
✓
Plasma Control
NBI Total Power (Pinj)
✓
✓
✗
NBI Torque (Tinj)
✓
✓
✗
Plasma Current (Ip)
✓
✓
✗
Safety Factor (q95)
✓
✓
✗
Shape Variables
Separatrix Distance (dRsep)
✓
✓
✗
Bottom Triangularity (tribot)
✓
✗
✗
Top Triangularity (tritop)
✓
✗
✗
Elongation (κ)
✓
✗
✗
Minor Radius (aminor)
✓
✗
✗
Radial Positions of Magnetic Axis (Raxis)
✓
✗
✗
Vertical Positions of Magnetic Axis (Zaxis)
✓
✗
✗
Electron Cyclotron Heating (ECH)
ec_j_eccd_param1
✓
✓
✗
ec_j_eccd_param2
✓
✓
✗
ec_j_eccd_param3
✓
✓
✗
ec_qrfe_param1
✓
✓
✗
ec_qrfe_param2
✓
✓
✗
ec_qrfe_param3
✓
✓
✗
Other Actuators
Toroidal Field (BT)
✓
✗
✗
Gas Puffing (gasA)
✓
✗
✗
Table 3: Plasma state and actuator signals used for modeling the DIII-D tokamak dynamics in the WPQH experiments. The controllable column indicates actuator signals that can be optimized when searching for WPQH access strategies.
Training WPQH mode detector.
To evaluate whether a plasma trajectory accesses the WPQH mode, we train a binary classifier to identify WPQH operation at each timestep. Our labeled dataset contains 477 DIII-D shots that successfully accessed WPQH and 308 shots that did not. After data preprocessing, including removing shots with missing required signals, 434 shots remain for training the detector. The WPQH detector is a multilayer perceptron (MLP) that predicts whether the plasma is in the WPQH mode at a given timestep using a local temporal window of plasma states and actuator signals spanning 60 ms before and after the target timestep. At each timestep, we use five scalar plasma states (βN, WMHD, βp, electron-temperature pedestal width (prmtan_tewid), and electron-density pedestal width (prmtan_newid)), the first two PCA components of the electron-temperature (Te) and electron-density (ne) profiles, and five actuator signals (NBI power Pinj, plasma current (Ip), NBI torque (Tinj), q95, and separatrix distance (dRsep)). The resulting window is flattened and passed through two fully connected hidden layers with 128 and 64 units and ReLU activations, followed by a binary classification head.
We evaluate the detector under two settings. Real-data detection directly applies the detector to measured plasma trajectories and achieves 85.49% accuracy and 83.98% precision on WPQH predictions. Rollout-data detection first replays the experimental shots using the learned RPNN dynamics model and then applies the same detector to the simulated trajectories. Despite the additional error introduced by the rollouts, the detector achieves 72.46% accuracy and 69.21% precision on simulated trajectories. These results indicate that the detector retains reasonable predictive performance on model-generated rollouts, making it reasonable to use it to estimate the WPQH ratio in our simulation experiments.
Pre-training diffusion model on DIII-D dataset.
We pre-train a conditional diffusion model (DM) on historical DIII-D trajectories to generate future plasma states and actuator sequences. Each training sample consists of a trajectory of 200 timesteps (4000ms), where the first 10 timesteps (200ms) are provided as a clean conditioning prefix, and the model generates the remaining 190 timesteps (3800ms). The DM jointly models plasma states and actuator sequences (in Table 3), and it enables both joint trajectory generation and conditional generation, i.e., predicting the corresponding plasma dynamics given the actuator trajectories. We parameterize the diffusion model using a temporal Diffusion Transformer [Esser et al., 2024, DiT]. At each timestep, the plasma state and actuator signals are represented by separate tokens with dedicated input projections and learnable type embeddings. The model consists of eight transformer blocks with a hidden dimension of 256 and eight attention heads. Each block contains masked self-attention across the generated trajectory, cross-attention to the clean conditioning prefix, and a feed-forward network. The diffusion timestep is incorporated through adaptive layer normalization (AdaLN). For forward prediction, actuator signals are kept fixed while the DM denoises the plasma-state sequence. We train the model using an exponential noise schedule with 1k diffusion steps and an OU forward process. To evaluate the learned dynamics, we condition the model on the initial plasma state and actuator trajectory and measure the explained variance (EV) between the generated and real plasma trajectories.
Appendix E Additional Numerical Results
(a) BReaD-SubA
(b) BReaD-SubB
(c) Best-so-far style loss
Figure 6: Style guidance on Stable Diffusion v1.5 to match the text prompt, A portrait of a woman, and the style of Pablo Picasso’s painting, Brick Factory at Tortosa. Results are averaged over 10 trials.
(a) BReaD-SubA
(b) BReaD-SubB
(c) Best-so-far style loss
Figure 7: Style guidance on Stable Diffusion v1.5 to match the text prompt, A colorful photo of an Eiffel Tower, and the style of Vincent van Gogh’s painting, The Starry Night. Results are averaged over 10 trials.
(a) BReaD-SubA
(b) BReaD-SubB
(c) Best-so-far style loss
Figure 8: Style guidance on Stable Diffusion v1.5 to match the text prompt, A fantasy photo of an volcanoes, and the style of Leonid Afremov’s painting, Melody of The Night. Results are averaged over 10 trials.
(a) unguided (Reward: −0.94)
(b) BReaD-SubB (Round 11, Reward: 1.37)
(c) Best-so-far ImageReward score
Figure 9: Guidance sampling of Stable Diffusion v1.5 to match the text prompt, Landscape photography by Marc Adams, mountains with some forests, small lake in the center, fog in the background, sunrays, golden hour, high quality, where the rewards are given by the ImageReward model. The images demonstrated use the same seed. Results are averaged over 10 trials.
(a) unguided
(b) fwd. uni-guided
(c) MLP-guided
(d) DM-GP-UCB
(e) BReaD-SubA
(f) BReaD-SubB
Figure 10: Image generation for optimizing the ImageReward score. A painting of a girl walking in a hallway and suddenly finds a giant sunflower on the floor blocking her way.