Experimental design allocates limited measurement effort across candidate treatments to learn their expected outcomes. Adaptive designs refine allocations as evidence accumulates, improving estimation and treatment selection. Contextual information can inform these decisions, but exploiting unstructured or high-dimensional context remains challenging. We use large language models (LLMs) to transform complex context into proxy outcomes and propose Residual Horizon Optimization for Prediction-Powered Experimentation (RHOPE), a principled Bayesian adaptive experimentation framework that combines true outcomes with LLM-generated proxy outcomes and formulates finite-batch design as a posterior Markov decision process (MDP). Our methodology uses proxy outcomes in two ways: sample augmentation improves estimation precision, while observing proxies before each allocation decision provides advance information. Synthetic experiments and semi-synthetic experiments using Genomics of Drug Sensitivity in Cancer (GDSC) data suggest that estimation precision drives most gains, with smaller advance-information gains, and highlight the importance of proxy informativeness and moment-estimation accuracy.
Figures & tables
btn=100
btn=1000
Policy / ϱ
0.2
0.4
0.6
0.2
0.4
0.6
Without proxy
uniform
100.00 ± 1.60
–
–
100.00 ± 1.55
–
–
TS
79.78 ± 1.44
–
–
77.74 ± 1.37
–
–
TTTS
78.64 ± 1.41
–
–
76.89 ± 1.37
–
–
Sequential Halving
77.17 ± 1.37
–
–
75.00 ± 1.32
–
–
Table 1: Final relative simple regret (%) for (a) Bernoulli and (b) Gumbel with σ2=1 ; uniform is 100 in every column, and lower is better. Entries are mean ± standard error of the mean over 5,000 replications, both as percentages of the mean simple regret of uniform. Boldface marks column minima; dashes denote no-proxy results unchanged across ϱ .
Policy / proxy
Claude Opus 5.5
GPT-6.1 Sol
DeepSeek V4 Pro
DeepSeek V4 Flash
GBT
Ridge
Without proxy
uniform
100.00 ± 1.87
–
–
–
–
–
TS
51.92 ± 1.27
–
–
–
–
–
TTTS
45.84 ± 1.22
–
–
–
–
–
Sequential Halving
60.79 ± 1.38
–
–
–
–
–
TS-SPAS
215.91 ± 3.80
–
–
–
–
–
Table 2: GDSC relative simple regret (%) with known moments. Entries are mean ± standard error of the mean over 10,000 replications, both as percentages of the mean simple regret of uniform; lower is better. Boldface marks column minima among the displayed values.
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
btn=100
btn=1000
Policy / ϱ
0.2
0.4
0.6
0.2
0.4
0.6
Without proxy
uniform
100.00 ± 1.61
–
–
100.00 ± 1.61
–
–
TS
79.75 ± 1.43
–
–
82.64 ± 1.46
–
–
TTTS
79.08 ± 1.43
–
–
80.00 ± 1.43
–
–
Sequential Halving
76.12 ± 1.39
–
–
79.37 ± 1.40
–
–
Appendix
Table 3: Supplementary final relative simple regret results for the Bernoulli–Gumbel synthetic setting. Each entry is a percentage relative to uniform, which is 100 in every column; lower is better. Entries are mean ± standard error of the mean over 5,000 replications, both as percentages of the mean simple regret of uniform. Boldface marks the lowest value in each column. Dashes omit values for no-proxy methods that are unchanged across ϱ .
Policy / ϱ
0.2
0.4
0.6
Without proxy
uniform
100.00 ± 2.46
–
–
TS
51.50 ± 1.62
–
–
TTTS
51.85 ± 1.65
–
–
Sequential Halving
54.99 ± 1.68
–
–
TS-SPAS
166.67 ± 3.56
–
–
Appendix
Table 4: Gumbel outcome-variance ablations for (a) σ2=1/3 and (b) σ2=3 . Entries are final simple regret percentages relative to uniform, mean ± standard error of the mean over 5,000 replications; lower is better. Boldface marks column minima; dashes denote no-proxy results unchanged across ϱ .
Figure 1: Batch-level relative simple regret trajectories in the main synthetic experiments with btn=100 . From top to bottom, the rows have ϱ=0.2,0.4,0.6 ; the columns report Bernoulli, Gumbel, and Bernoulli–Gumbel results, respectively.
Figure 2: Batch-level relative simple regret trajectories in the main synthetic experiments with btn=1000 . From top to bottom, the rows have ϱ=0.2,0.4,0.6 ; the columns report Bernoulli, Gumbel, and Bernoulli–Gumbel results, respectively.
Figure 3: Batch-level relative simple regret trajectories in the Gumbel variance-ablation experiment with btn=100 and σ2=1/3 . The three trajectory panels correspond to ϱ=0.2,0.4,0.6 ; the lower-right panel contains the shared legend.
Figure 4: Batch-level relative simple regret trajectories in the Gumbel variance-ablation experiment with btn=100 and σ2=3 . The three trajectory panels correspond to ϱ=0.2,0.4,0.6 ; the lower-right panel contains the shared legend.
Proxy
Arm 1
Arm 2
Arm 3
Arm 4
Arm 5
Arm 6
Arm 7
Mean
Claude Opus 5.5
0.201
0.164
0.315
0.478
0.467
0.357
0.168
0.307
GPT-6.1 Sol
0.190
0.132
0.290
0.468
0.449
0.358
0.147
0.290
DeepSeek V4 Pro
0.186
0.056
0.251
0.424
0.433
0.311
0.125
0.255
DeepSeek V4 Flash
0.097
0.130
0.148
0.388
0.442
0.147
0.053
0.201
GBT
0.173
0.085
0.182
0.358
0.140
0.266
0.109
0.188
Ridge
0.078
0.108
0.191
0.356
0.160
0.203
0.053
0.164
Appendix
Table 5: Arm-wise proxy–outcome correlations ϱa implied by the known moments of the semi-synthetic instance (627 cell lines, patient-noise variance 4). Arms 1–7 are cisplatin, vismodegib, palbociclib, trametinib, dabrafenib, afatinib, and olaparib, respectively.
(a) Bernoulli setting
btn=100
btn=1000
Policy / ϱ
0.2
0.4
0.6
0.2
0.4
0.6
Without proxy
uniform
100.00 ± 1.60
–
–
100.00 ± 1.55
–
–
TS
78.57 ± 1.41
–
–
77.59 ± 1.39
–
–
TTTS
80.24 ± 1.42
–
–
74.73 ± 1.35
–
–
Appendix
Table 6: Final relative simple regret in the synthetic experiments with moments estimated from the first batch: (a) Bernoulli, (b) Gumbel with σ2=1 , and (c) Bernoulli–Gumbel settings. Each entry is a percentage relative to uniform, mean ± standard error of the mean over 5,000 replications; lower is better. Boldface marks the lowest value in each column when that value is displayed. Dashes omit values for no-proxy methods that are unchanged across ϱ .
Policy / proxy
Claude Opus 5.5
GPT-6.1 Sol
DeepSeek V4 Pro
DeepSeek V4 Flash
GBT
Ridge
Without proxy
uniform
100.00 ± 1.87
–
–
–
–
–
TS
50.00 ± 1.26
–
–
–
–
–
TTTS
46.69 ± 1.23
–
–
–
–
–
myopic
47.34 ± 1.22
–
–
–
–
–
RHO
43.24 ± 1.15
–
–
–
–
–
Appendix
Table 7: GDSC relative simple regret (%) with moments estimated from the first batch. Entries are mean ± standard error of the mean over 10,000 replications, both as percentages of the mean simple regret of uniform; lower is better. Boldface marks column minima among the displayed values.
Proxy–proxy
Residual–proxy
Proxy
Mean
Max
Mean
Max
Claude Opus 5.5
0.274
0.954
0.034
0.128
GPT-6.1 Sol
0.193
0.880
0.037
0.113
DeepSeek V4 Pro
0.160
0.886
0.042
0.095
DeepSeek V4 Flash
0.332
0.799
0.035
0.167
GBT
0.298
0.817
0.056
0.198
Appendix
Table 8: Mean and maximum absolute off-diagonal elements of the proxy covariance matrix Cov(ϵ~t,j) and of the residual–proxy covariance matrix Cov(ϵ~t,j,ϵt,j−Λϵ~t,j) in the semi-synthetic instance, on the correlation scale.
Mean difference
Variance ratio
Correlation
Proxy
Mean
95%
Mean
Min
Mean
Max
Claude Opus 5.5
0.069
0.191
0.990
0.969
0.005
0.064
GPT-6.1 Sol
0.076
0.203
0.989
0.970
0.005
0.065
DeepSeek V4 Pro
0.083
0.216
0.987
0.972
0.004
0.061
DeepSeek V4 Flash
0.079
0.249
0.985
0.956
0.004
0.054
GBT
0.110
0.312
0.975
0.929
0.003
0.027
Appendix
Table 9: Terminal posteriors of the arm means under the unrestricted model (mean μU , covariance VU ) and the working model ( μW , VW ), over arms (or pairs of arms) and the 10,000 replications. Mean difference: ∣μaU−μaW∣/(VaaW)1/2 . Variance ratio: VaaU/VaaW . Correlation: ∣VabU∣/(VaaUVbbU)1/2 , a=b .
Despite their extensive pretraining knowledge and strong reasoning capabilities, large language models (LLMs) struggle to adaptively gather information in experimental design tasks. We study how to amortize sequential Bayesian experimental design (BED) into an LLM by explicitly training the reasoning that guides action selection using information-gain rewards. Our approach specifies the experimental generative model independently of the LLM's own beliefs, allowing us to optimize expected information gain under a model of our choosing. We investigate the design choices for amortization, including alternative generative-model constructions, reward estimation, hypothesis-space specification, multi-step objectives, and computational costs relative to training- and inference-time BED baselines. On Twenty Questions, the resulting policies improve information acquisition and task performance, outperform inference- and training-time BED baselines at substantially lower computational cost, and generalize to unseen categories. We further demonstrate positive transfer from Twenty Questions training to Medi-Q, a real-world clinical dialogue benchmark. These results suggest that information gathering can be learned as a generalizable reasoning skill in LLMs.
The high cost and data scarcity in scientific exploration have motivated the use of large language models (LLMs) as knowledge-driven components in Bayesian optimization (BO). However, existing approaches typically embed LLMs directly into the sampling or surrogate modeling pipeline, without fully leveraging their significantly lower evaluation cost compared to real-world experiments. To address this limitation, we propose LLM-Accelerated Bayesian Optimization (LABO), a framework that combines LLM predictions with experimental observations within a single BO loop. LABO employs a gating criterion to dynamically balance the reliance on LLM predictions versus actual experiments. By leveraging inexpensive LLM evaluations to broadly explore the search space and reserving costly real experiments only for regions with high uncertainty, LABO achieves more sample-efficient optimization. We provide a theoretical analysis with a cumulative regret bound that formalizes this efficiency gain. Empirical results across diverse scientific tasks demonstrate that LABO consistently outperforms existing methods under identical experimental budgets. Our results suggest that LABO offers a practical and theoretically grounded approach for integrating LLMs into scientific discovery workflows.
Zhuo Chen, Xinzhe Yuan, Jianshu Zhang +8
equal contribution · Shanghai Artificial Intelligence Laboratory, Shanghai, China · School of Mechanical Engineering, Shanghai Jiao Tong University, Shanghai, China +7
Bayesian optimization (BO) is a sequential decision-making tool widely used for optimizing expensive black-box functions. Recently, Large Language Models (LLMs) have shown remarkable adaptability in low-data regimes, making them promising tools for black-box optimization by leveraging contextual knowledge to propose high-quality query points. However, LLMs lack explicit surrogate modeling and calibrated uncertainty, and their internal mechanisms remain opaque. This structural opacity can result in unnecessary experiments, which are costly in BO and may prevent the search from approaching the optimum. To address this, we propose LLINBO: LLM-in-the-Loop BO, a general framework that wraps existing LLM-based BO approaches, deciding when and how to act on their suggestions and when to revert to classical BO. We introduce three mechanisms for this interaction, each accompanied by a no-harm theoretical guarantee that ensures sublinear cumulative regret for common kernels while requiring no performance assumptions on the LLM. Beyond these theoretical guarantees, we show through simulation studies that LLINBO makes existing LLM-based BO more reliable while still exploiting the LLM's few-shot learning ability to outperform classical BO. We further demonstrate its practical use on a real-world, expensive 3D printing experiment. Code is available at https://github.com/UMDataScienceLab/LLM-in-the-Loop-BO.