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

Large Scale Multi-Task Bayesian Optimization with Large Language Models

Yimeng Zeng, Natalie Maus, Haydn Thomas Jones, Jeffrey Tao, Fangping Wan, Marcelo Der Torossian Torres, Cesar de la Fuente-Nunez, Ryan Marcus, Osbert Bastani, Jacob R. GardnerarXiv 2025 · DOI

Introduction

Bayesian Optimization (BO) is a powerful framework for optimizing expensive "black-box" functions, ranging from SQL query tuning to drug discovery. While BO excels at sample efficiency for single tasks, traditional multi-task BO—which attempts to learn from a history of related tasks—often fails to scale. Standard approaches using multi-output Gaussian Processes (GPs) typically hit a performance plateau after just a few dozen tasks due to the statistical complexity of modeling high-dimensional correlations.

BOLT (Bayesian Optimization with LLM Transfer) addresses this scaling bottleneck by offloading the task of "knowledge transfer" to a Large Language Model (LLM). By fine-tuning an LLM on successful optimization trajectories, BOLT creates a system that becomes progressively smarter, eventually solving new tasks in just a few shots.

Methodology: The Reinforcing Feedback Loop

BOLT operates through a dual-loop architecture that combines the pattern-recognition capabilities of LLMs with the local precision of BO.

The BOLT framework consists of an inner loop for task-specific optimization and an outer loop for cross-task learning via LLM fine-tuning.

1. The Inner Loop (BO Initialization)

When presented with a new task $t$, the LLM (acting as an initialization policy $\pi_n$) suggests a set of high-quality starting points based on the task context $C[f_t]$. These candidates are evaluated, and a standard BO routine (such as Latent Space BO) refines the search. This ensures that the optimizer starts in a promising region of the search space rather than searching blindly.

2. The Outer Loop (Fine-Tuning)

As the system solves batches of tasks, it collects "success stories"—pairs of task descriptions and their optimal solutions. These trajectories are used to fine-tune the LLM (e.g., GPT-4o-mini). Over time, the LLM learns the underlying structure of the problem domain, allowing it to provide increasingly accurate initializations for future tasks.

3. Self-Augmentation

To further accelerate learning without expensive oracle calls, BOLT employs a self-improvement strategy. The LLM generates its own candidate solutions, which are scored by an oracle. The highest-performing self-generated samples are fed back into the training set, mirroring the self-play mechanisms found in reinforcement learning.

Experimental Setup

The researchers evaluated BOLT across two distinct, high-stakes domains:

  • Database Query Optimization: Optimizing join orders for 2,933 queries from the Cardinality Estimation Benchmark (CEB) to minimize execution latency.
  • Antimicrobial Peptide (AMP) Design: Modifying 1,000 extinct seed peptides to minimize the Minimum Inhibitory Concentration (MIC) against pathogens like A. baumannii.

BOLT was compared against single-task BO (STBO), traditional multi-task methods (FSBO, DKT), and transformer-based optimizers (Optformer, LLAMBO).

Key Results and Scaling Insights

BOLT successfully broke the "saturation barrier" that plagues traditional multi-task BO. While other methods plateaued early, BOLT's performance continued to improve as it processed more tasks.

BOLT demonstrates superior few-shot performance in both database query optimization (left) and peptide design (right) as the number of training tasks increases.

Zero-Shot and Few-Shot Efficiency

In the database domain, BOLT models trained on over 1,000 tasks (BOLT-1138 and BOLT-1426) achieved remarkable results. Their very first suggestion (one-shot) often outperformed the execution plans generated by PostgreSQL’s built-in, hand-tuned optimizer. In the peptide domain, BOLT generated near-optimal sequences in just a few shots, reaching performance levels that required thousands of oracle calls for "from-scratch" BO methods.

Flexibility and Portability

A key advantage of BOLT is its modularity. Because the LLM and the BO algorithm only interact through initialization points, the system is "plug-and-play." Users can swap the underlying LLM (preliminary tests with Qwen-2.5-7B were successful) or the specific BO surrogate model without redesigning the architecture.

Conclusion and Future Directions

BOLT represents a significant step toward autonomous optimization systems that truly learn from experience. By treating an LLM as a scalable, fine-tunable prior, BOLT enables multi-task transfer across thousands of examples where traditional statistical models fail.

Future work aims to expand BOLT's cross-domain capabilities, allowing it to transfer knowledge between different schemas or even different scientific fields. Additionally, reducing the financial and computational cost of frequent LLM fine-tuning remains a priority for making this framework accessible for real-time industrial applications.

Summary updated

BibTeX
@misc{zeng2025large,
  author = {Yimeng Zeng and Natalie Maus and Haydn Thomas Jones and Jeffrey Tao and Fangping Wan and Marcelo Der Torossian Torres and Cesar de la Fuente-Nunez and Ryan Marcus and Osbert Bastani and Jacob R. Gardner},
  title = {{Large Scale Multi-Task Bayesian Optimization with Large Language Models}},
  year = {2025},
  eprint = {2503.08131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08131},
}
Figure