FunBO: Discovering Acquisition Functions for Bayesian Optimization with FunSearch
Virginia Aglietti, Ira Ktena, Jessica Schrouff, Eleni Sgouritsa, Francisco J. R. Ruiz, Alan Malek, Alexis Bellot, Silvia Chiappa
TL;DR
FunBO tackles the problem of finding acquisition functions that are robust across diverse optimization problems by learning AFs as code with an LLM, guided by a FunSearch-inspired discovery loop. It demonstrates that AFs discovered in this way generalize within and across function classes and can outperform general-purpose AFs while nearing performance of function-specific, transfer-learned AFs. The method emphasizes interpretability and practical deployability by returning executable AF code and using a population-based, islanded program database. Overall, FunBO broadens the applicability of AF design in Bayesian optimization and highlights the potential of LLM-driven algorithm discovery for sampling policy design.
Abstract
The sample efficiency of Bayesian optimization algorithms depends on carefully crafted acquisition functions (AFs) guiding the sequential collection of function evaluations. The best-performing AF can vary significantly across optimization problems, often requiring ad-hoc and problem-specific choices. This work tackles the challenge of designing novel AFs that perform well across a variety of experimental settings. Based on FunSearch, a recent work using Large Language Models (LLMs) for discovery in mathematical sciences, we propose FunBO, an LLM-based method that can be used to learn new AFs written in computer code by leveraging access to a limited number of evaluations for a set of objective functions. We provide the analytic expression of all discovered AFs and evaluate them on various global optimization benchmarks and hyperparameter optimization tasks. We show how FunBO identifies AFs that generalize well in and out of the training distribution of functions, thus outperforming established general-purpose AFs and achieving competitive performance against AFs that are customized to specific function types and are learned via transfer-learning algorithms.
