🤖 AI Summary
This work proposes a novel agent-driven paradigm for Bayesian optimization that overcomes the limitations of traditional approaches in incorporating domain priors and mitigates the reduced exploratory capacity often caused by rigid or overly constrained roles in existing large language model (LLM) methods. At its core, an LLM agent acts as the central decision-maker, interfacing with an uncertainty-aware Bayesian backend built upon the modular BoTorch framework Lenz. Through a structured interface, the agent dynamically reformulates the optimization problem, adapts the surrogate model and acquisition function, and reshapes the search space. This framework achieves the first deep integration of LLM agents with Bayesian optimization, preserving the reliability of standard BO when no prior knowledge is available—outperforming pure LLM baselines—and significantly surpassing conventional BO when natural-language priors are provided, while also demonstrating unique adaptability in dynamic requirement scenarios.
📝 Abstract
Bayesian optimization (BO) has become the standard tool for sample-efficient optimization and owes its efficiency to uncertainty-aware search driven by generic statistical priors. Richer domain priors can improve BO in principle, but encoding them through tailored kernels or problem structure is difficult and rarely done in practice. LLMs can help sidestep this difficulty by making informal priors from natural language, code, and documentation directly available to the optimizer. However, existing LLM-based BO methods either insert the LLM into a fixed role (surrogate, acquisition proxy, or configuration interface) or hand it broad control, sacrificing the systematic exploration that makes BO reliable. We introduce agentic Bayesian optimization: a paradigm in which an LLM agent is the central decision maker in the BO loop while a Bayesian backend provides the uncertainty-aware optimization substrate. The agent configures the problem, queries the backend, selects and commits evaluations, and can revise the optimization strategy during the run by tightening bounds, switching acquisition functions, proposing targeted evaluations, or even reframing the problem following new instructions or observed evidence. We instantiate this idea in Sara, a surrogate-augmented autoresearch agent, and lenz, a modular BoTorch-based backend that the agent can inspect and modify through a structured interface. Across synthetic and real-world benchmarks, Sara preserves the reliability of state-of-the-art BO without prior knowledge, outperforms LLM-based baselines, and uses natural-language priors to improve beyond standard BO. We further demonstrate the practical value of agentic BO in dynamic settings, where Sara reconfigures the full optimization problem on the fly as requirements change, a capability not previously available in standard BO.