NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adaptive Acquisition Selection for Bayesian Optimization with Large Language Models

Giang Ngo, Dat Phan Trong, Dang Nguyen, Sunil Gupta, Svetha Venkatesh

Introduction

Bayesian Optimization (BO) is the gold standard for finding the global optimum of "expensive" black-box functions, such as tuning massive neural networks or designing new chemical compounds. Central to BO is the Acquisition Function (AF), a mathematical heuristic that decides where to sample next by balancing exploration (searching new areas) and exploitation (refining known good areas).

However, no single AF is universally optimal. The best choice is non-stationary and highly problem-dependent. To address this, researchers have introduced LMABO (Language Model-Assisted Bayesian Optimization), a novel framework that casts a pre-trained Large Language Model (LLM) as a zero-shot, online strategist to manage the BO process. By reasoning over a rich, textual summary of the optimization state, LMABO dynamically selects the best acquisition function at each step, significantly outperforming traditional adaptive methods.

The Challenge of Acquisition Function Selection

While "adaptive portfolio" methods exist to switch between AFs during an optimization run, they are often narrow-minded. They typically base their decisions solely on past performance rewards, ignoring critical strategic context such as the remaining optimization budget, how "wiggly" the surrogate model thinks the function is (via Gaussian Process lengthscales), or whether the search has stalled. Designing a manual algorithm that can synthesize all this complex, multi-faceted information has proven incredibly difficult.

Methodology: The LMABO Framework

LMABO recasts AF selection as an in-context decision-making task for an LLM. Instead of using the LLM to predict numerical values directly—a task where they traditionally struggle—LMABO uses the LLM as a high-level semantic controller. The heavy mathematical lifting, like Gaussian Process (GP) regression, remains handled by standard libraries like BoTorch.

Algorithm detailing the LMABO framework.

At each iteration, the numerical state of the BO process is converted into a structured text prompt. This state serialization includes:

  • Process Status: Current iteration, remaining budget, and dimensionality.
  • Performance History: The best value found so far (the incumbent), the range of observed values, and the distance of the last sample from previous ones to detect stagnation.
  • GP Model Characteristics: Hyperparameters like lengthscales (indicating function smoothness) and outputscale.

The LLM (e.g., Gemini-2.5 Flash, as used in the main experiments) is given a role-playing instruction as a BO expert alongside a portfolio of 12 different AFs, including Expected Improvement (EI), Upper Confidence Bound (UCB), Thompson Sampling (TS), and information-theoretic options like MES and PES. It then selects the most appropriate AF and provides a justification for its choice.

Datasets and Evaluation

The researchers evaluated LMABO on a robust suite of 50 benchmark problems:

  • 30 Synthetic Functions: 15 from the COCO platform and 15 from the BoTorch library, ranging from 2D to 50D.
  • 20 Real-World HPO Tasks: Hyperparameter optimization problems from the Bayesmark suite, involving tuning models like Random Forests, SVMs, and MLPs on datasets like Breast Cancer, Digits, and Wine.

Key Results and Insights

LMABO demonstrates a significant performance improvement over strong static, adaptive portfolio, and other LLM-based baselines.

Performance comparison of LMABO against static and adaptive baselines.
  • Superior Performance: LMABO achieved a total Area Under the Regret Curve (AUC) that was 9.7% lower than the best static AF and 16.6% lower than the best traditional adaptive portfolio method. It ranked among the top four methods on average across all 50 problems.
  • Budget Awareness: The LLM naturally "understands" the budget. LMABO becomes more exploitative as the budget runs out, recognizing that long-term exploration is futile with only a few samples left.
  • Agile Stagnation Recovery: Traditional adaptive methods often get stuck on a single AF. LMABO exhibits a bi-directional strategy; if an exploitative AF like EI fails to improve the best value for several rounds, it decisively switches back to exploratory functions like Thompson Sampling.
  • Context Matters: Providing a simple text description of the function (e.g., "this function has many local minima") acts as a safeguard, helping the LLM avoid local optima that trap vanilla versions.
  • Computational Efficiency: While calling an LLM adds latency (about 1 second per iteration), this is negligible in the context of expensive BO, where a single function evaluation might take minutes or hours. The API cost was also minimal (roughly $0.01 for a 50-iteration run).

Limitations and Future Directions

Currently, LMABO is focused on standard BO using Gaussian Processes. Future iterations could adapt the framework to other surrogate models like Random Forests or Deep Hit-and-Run. Additionally, the authors suggest that LLMs could be particularly powerful in Constrained BO, where the model must balance finding the optimum while staying within safe or feasible boundaries—a task requiring complex trade-off reasoning. Finally, while the zero-shot approach is robust, performance remains tied to the underlying LLM's reasoning capabilities, with smaller models (e.g., 8B parameters) showing a noticeable performance drop compared to larger frontier models.

Summary updated

BibTeX
@inproceedings{ngo2026adaptive,
  author = {Giang Ngo and Dat Phan Trong and Dang Nguyen and Sunil Gupta and Svetha Venkatesh},
  title = {{Adaptive Acquisition Selection for Bayesian Optimization with Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=EPKmSgXvRe},
}
Figure