TL;DR
LLM agents are transforming black-box optimization (BBO) by moving beyond raw numbers to leverage task semantics and custom code. This paper introduces AgenticBBO-Bench, a standardized benchmark that reveals agentic systems consistently outperform both traditional numerical optimizers and direct LLM prompting by building their own task-specific search strategies.
What Problem Does This Paper Address?
Black-box optimization—finding the best parameters for a system when you don't have a mathematical formula for it—is a cornerstone of engineering, from tuning databases to designing new molecules. Traditionally, we’ve relied on numerical methods like Bayesian Optimization (BO). Recently, researchers have started using Large Language Models (LLMs) as "agents" that can read task descriptions, write code, and use tools to solve these problems.
However, the field has been a "Wild West." Every study uses different tasks, different prompts, and different evaluation metrics, making it impossible to tell if a new agent is actually better or just tested on an easier problem. The authors address this fragmentation by providing a unified, cross-domain evaluation framework to isolate what actually makes an agentic BBO system work.
Methods
The authors formalize the Agentic BBO Loop. Unlike traditional BO, which follows a rigid, predefined sequence (fit surrogate $\rightarrow$ acquisition $\rightarrow$ evaluate), an agentic loop allows the LLM to dynamically decide its next move. It can read documentation, analyze past trials, write a Python script to find patterns, or invoke a numerical tool before deciding which candidate to evaluate next.
The study uses the Codex agent harness and evaluates models under a strict "finite-budget" protocol: only actual evaluations of the objective function count toward the budget, while the agent's internal reasoning and code execution are "free" in terms of the optimization budget (though not in terms of wall-clock time or API costs).
Datasets
The authors introduce AgenticBBO-Bench, which aggregates 77 tasks across five diverse families:
- Synthetic (BBOB): Standard numerical functions used to test optimization logic.
- Hyperparameter Optimization (Bayesmark): Tuning machine learning models.
- Database Tuning (DBTune): Optimizing MySQL and PostgreSQL configurations.
- Chip Design (BBOPlace-Bench): Placing macros on a silicon canvas under physical constraints.
- Molecular Design (GuacaMol): Searching for SMILES strings that match specific chemical properties.
They also propose a Five-Task Frontier Challenge, a compact subset designed for rapid benchmarking of new frontier LLMs.
Key Insights and Ideas
- Agents are DIY-ers: Surprisingly, giving agents sophisticated numerical tools (like Gaussian Process proposals) doesn't always help. Agents often prefer writing their own custom Python analysis. For example, in chip placement, an agent might fit its own linear proxy model to the data rather than relying on a generic optimizer.
- Semantics > Raw Priors: Knowing that a variable is a "learning rate" (semantics) is broadly beneficial across all tasks. However, providing highly specific "domain priors" (e.g., "this variable usually follows a bell curve") is hit-or-miss and can even hurt performance if the prior is slightly off.
- The "Handoff" Strategy: You don't need an expensive LLM to be "always on." The authors found that an agent can "warm up" the search trajectory and then hand it off to a traditional numerical optimizer like TuRBO, which can then effectively finish the job.
Key Results
- Performance Gains: Agentic BBO achieved a 30.3% average relative improvement over direct LLM prompting and outperformed the best numerical optimizers in four out of five domains.
- Frontier Leaderboard: In the Frontier Challenge, GPT-6 Astra and DeepSeek-V4.1-Flash emerged as the top performers.
- Cost Efficiency: The results show that performance isn't strictly tied to price. DeepSeek-V4.1-Flash achieved scores nearly identical to GPT-6 Astra but at a significantly lower token cost, placing it on the Pareto frontier of efficiency.
Limitations and Future Work
The authors note that while LLMs can develop optimizers (writing reusable code), these generated tools often struggle to generalize to "held-out" tasks they weren't designed for.
Future directions include:
- Task-Adaptive Tooling: Developing agents that can select the right optimizer from a portfolio based on the current search state.
- Cost-Aware Routing: Automatically deciding when a task is "easy" enough for a numerical tool and when it requires the "expensive" reasoning of an LLM.
- Experience Libraries: Building systems that can retrieve successful strategies from past optimization trajectories rather than starting every new problem from scratch.
Summary updated