The Scaling Wall in Multi-Task Bayesian Optimization
Bayesian Optimization (BO) is the gold standard for finding the best parameters for expensive "black-box" functions—such as finding the most efficient way to run a database query or designing a new life-saving drug. Multi-task BO (MTBO) attempts to accelerate this process by leveraging data from previous, related tasks.
However, traditional MTBO hits a "scaling wall." Most current methods use a shared "surrogate model" (usually a Gaussian Process) to represent all tasks simultaneously. As hundreds or thousands of tasks are added, these models become computationally bloated or simply stop improving. The core challenge is leveraging a massive history of past optimizations to make the next optimization nearly instantaneous without overwhelming the surrogate model.
The BOLT Framework
To overcome this bottleneck, researchers introduce BOLT (Bayesian Optimization with LLM Transfer). BOLT shifts the burden of "memory" and cross-task knowledge transfer from the optimization model to a fine-tuned Large Language Model (LLM).
The framework relies on a decoupled, closed-loop design:
- Decoupled Architecture: Instead of building one massive model for all tasks, BOLT uses a standard, single-task BO for the heavy lifting. The LLM's sole responsibility is initialization—proposing strong candidate solutions based on the task description.
- The Feedback Loop:
- Inner Loop: A standard BO runs on a new task, starting with candidates suggested by the LLM.
- Outer Loop: The "hall of fame" solutions (the best points found by the BO inner loop) are used to periodically fine-tune the LLM.
- Context-Aware Proposals: The LLM is trained to take a textual or structured task description (like a SQL query string or a peptide sequence) and predict a high-performing solution.
- Self-Augmentation: To save on expensive "oracle calls" (actual real-world experiments), the LLM can generate its own "best guesses" for tasks, which are filtered and used for further fine-tuning, akin to self-instruction.
Experimental Domains
The researchers evaluated BOLT on two high-stakes, high-throughput domains:
- Database Query Optimization: Using the Cardinality Estimation Benchmark (~2,933 queries). The goal is to find join orders that minimize execution latency.
- Antimicrobial Peptide Design: Using a library of 1,000 extinct peptides, the goal is to modify sequences to minimize the Minimum Inhibitory Concentration (MIC) against the pathogen A. baumannii.
Key Findings and Results
- Scaling without Saturation: While traditional MTBO methods plateau after about 20 tasks, BOLT continues to improve even as it scales to 1,500 tasks. The more tasks the LLM "sees" during the outer loop, the better its starting guesses become.
- Initialization is the Secret Sauce: You don't necessarily need a complex multi-task surrogate model if you can start the optimization in the right "neighborhood." BOLT-generated initializations were often better at the very first step than the final results of many baseline methods.
- LLMs as Few-Shot Optimizers: After sufficient fine-tuning, the LLM becomes so proficient that simply taking its top 5 suggestions often outperforms a full "from-scratch" BO run requiring thousands of iterations. In database optimization, BOLT variants outperformed the industry-standard BAO optimizer within just 5 samples.
- Minimal Overhead: Because the LLM only handles the start of the process, the computational cost of fine-tuning is negligible (roughly 1% overhead) compared to the massive GPU-hours required for the actual optimization loops.
- Robustness: The system proved robust to "context shuffling," demonstrating that the LLM actively learns the relationship between the task description and the solution, rather than just memorizing a static list of good points.
Limitations and Future Work
While highly effective, BOLT does have constraints. It requires a meaningful textual or structured description of the task (like a SQL string) to feed the LLM, meaning it cannot be applied to entirely "blind" tasks. Additionally, the current iteration assumes all tasks share the same input domain (e.g., all tasks are about 20-amino-acid peptides).
Finally, while amortized, there is a monetary cost for API-based fine-tuning, though open-source models present a viable alternative. Future work will explore applying BOLT to even more complex domains, such as hardware design or symbolic regression, where the "language" of the task is richer and more complex.
Summary updated