TL;DR
BBOWP-Bench is a novel benchmark designed to evaluate how well Large Language Models (LLMs) can act as "meta-solvers" for black-box optimization (BBO) problems described in natural language. The framework tests an LLM's ability to infer both a suitable search space and an appropriate optimization algorithm directly from a word problem. The authors find that while current LLMs excel at picking algorithms based on evaluation budgets, they frequently struggle to accurately define search spaces when problem descriptions are vague or highly domain-specific.
What Problem Does This Paper Address?
Formulating an optimization problem—identifying the right design variables, constraints, and objectives—typically requires significant domain expertise. While recent research has explored using LLMs to automate this process, existing benchmarks focus almost exclusively on problems with explicit mathematical formulations (like linear programming).
However, many real-world engineering and scientific problems are "black-box" optimization (BBO) tasks. In BBO, we don't have a neat mathematical formula for the objective function; we can only observe the outputs of expensive simulations, physical experiments, or machine learning training runs. To solve a BBO problem, a practitioner must carefully construct a search space (choosing which variables to tune, their types, and their ranges) and select a compatible optimization algorithm. This paper introduces the Black-Box Optimization Word Problem (BBOWP) setting to evaluate whether LLMs can automate these crucial, expert-level formulation steps.
Methods
The authors formalize the BBOWP task: given a natural-language description $d$ (which includes task background, a performance metric, and an evaluation budget $N_{max}$), an LLM must output a JSON file specifying a search space $S$ and an optimization algorithm $a$.
Evaluating an LLM-generated search space is tricky because LLMs might use non-standard variable names (e.g., calling a learning rate lr instead of learning_rate). To handle this, the authors designed an automated evaluation pipeline:
- Identifier Mapping: The benchmark uses pre-defined "alias lists" to resolve semantic equivalences between LLM-generated variables and canonical variables.
- Wrapper Objective: Omitted variables are filled with default values. If the LLM generates ambiguous or invalid spaces, the system returns a worst-possible penalty value ($\omega_d$).
- Formulation Ranking Score (FRS): To compare performance across vastly different domains in a scale-invariant way, the authors introduce FRS. FRS uses a Monte Carlo approximation (sampling 100,000 random configurations) to calculate the probability that the LLM's chosen setup will outperform a baseline distribution.
The overall workflow of this evaluation framework is illustrated below:
Datasets
The authors introduced BBOWP-Bench, a dataset consisting of 23 instances spanning four distinct real-world application domains:
- YAHPO Gym: Hyperparameter optimization (HPO) for machine learning models like Random Forests and SVMs.
- Olympus: Experimental science simulations, such as chemical reaction optimizations.
- MECHBench: Structural mechanics and shape optimization for vehicle components.
- MuJoCo: Physics-based continuous-control robotic tasks.
To rigorously test the models, each task features three text description difficulty levels:
- Easy: Explicitly details the full canonical design space and bounds.
- Intermediate: Provides partial clues to infer the search space.
- Hard: Contains only the high-level background and optimization objective, forcing the model to rely entirely on its internal domain knowledge.
Key Insights and Ideas
- Strong Budget Awareness: LLMs show a highly rational shift in algorithm selection depending on the evaluation budget. When the budget is small ($N_{max} = 100$), they favor sample-efficient surrogate methods like Bayesian Optimization (GP, TPE). When the budget is large ($N_{max} = 10,000$), they correctly pivot to population-based evolutionary strategies like CMA-ES.
- The Danger of Over-Optimization: In "Easy" settings, advanced models can sometimes be too aggressive. For example, Gemini 3.1 Pro attempted to optimize a Random Forest task by fixing four variables to constant values. While this dimensionality reduction seems smart, it inadvertently collapsed critical regions of the search space, trapping the optimizer in a suboptimal subspace.
- Domain Fragility: LLMs perform remarkably well on machine learning hyperparameter tasks even in the "Hard" setting, likely due to an abundance of HPO code in their training data. However, they struggle severely in physical domains like chemistry or structural mechanics, often failing to propose realistic physical ranges or missing critical variables entirely.
Key Results
- Model Comparisons: In the Small budget setting across key tasks, GPT-5 mini achieved the highest overall average FRS (0.724), closely followed by Gemini 3 Flash (0.709). Surprisingly, larger models like Gemini 3.1 Pro lagged behind (0.542) due to extreme fragility on "Hard" tasks.
- Varying Difficulty: In the Easy setting, models acted as excellent instruction followers, nearly matching the human expert baseline FRS of 0.964 (Gemini 3 Flash scored 0.965). In the Hard setting, performance plummeted; on a chemical reaction task (Task 14), Gemini 3.1 Pro scored an FRS of just 0.005 because it completely failed to include the vital variable of chemical concentration.
Limitations and Future Work
The authors note several limitations that pave the way for future research:
- Rigid Identifier Matching: The benchmark relies on static alias dictionaries. If an LLM invents a valid variable name not in the dictionary, it gets discarded. Integrating vector embeddings (like Word2Vec) or an auxiliary LLM translator could make matching more flexible.
- Lack of Conditional Spaces: BBOWP-Bench does not currently support conditional search spaces (e.g., tuning a parameter that only matters if a specific architecture choice is selected), which is common in advanced machine learning pipelines.
- Fixed Optimizer Pool: Models are restricted to choosing from a predefined list of standard algorithms rather than generating or modifying custom optimization code on the fly.
Summary updated