TL;DR
This paper evaluates frontier reasoning large language models (LLMs) as zero-shot batch black-box optimizers across continuous and discrete domains. While LLMs show competitive performance on numerical test functions, their continuous optimization is brittle and heavily reliant on memorized function topologies. Conversely, they excel remarkably in semantically rich discrete settings—such as molecular design via SMILES strings—frequently outperforming specialized deep learning baselines with high sample efficiency.
What Problem Does This Paper Address?
Black-box optimization (BBO) is a ubiquitous challenge in scientific discovery, particularly in fields like drug design where evaluating a candidate (e.g., synthesizing and testing a small molecule) is incredibly expensive and time-consuming. Traditional approaches rely on specialist methods like Bayesian Optimization (BO) to navigate these combinatorially complex spaces under a strict evaluation budget.
While previous studies have looked at older generations of LLMs for optimization, it has remained unclear how well the latest generation of frontier reasoning models performs as batch optimizers. The authors set out to benchmark these models across both continuous (numerical) and discrete (chemical) search spaces to characterize their optimization policies, identify failure modes, and determine if their extensive pretraining provides a useful optimization prior.
Methods
The authors evaluate the Anthropic family of models (specifically designated in this study as Sonnet 4.6, Opus 4.8, and Opus 5) as zero-shot batch optimizers. They test two distinct prompting protocols:
- Single-turn: The model receives the history of previously evaluated points and their objective values in the prompt, then predicts the next batch independently.
- Multi-turn: The model maintains a single, stateful conversation thread, allowing it to emit internal reasoning and "reflect" on past iterations.
The models are evaluated across different batch sizes ($q = 1, 2, 4$ for continuous; $q = 10$ for discrete) under a fixed total evaluation budget. Crucially, to distinguish true optimization capability from simple memorization in the continuous domain, the authors introduce a disguised variation of standard test functions. This disguise applies a per-axis domain bijection (axis permutation, independent Bernoulli flips, and power warps) along with an affine transformation to the output values, shifting the optimum without changing the underlying landscape topology.
Datasets
- Continuous Optimization: Five classical synthetic optimization benchmark functions: Branin (2D), Hartmann-3 (3D), Hartmann-6 (6D), Ackley (5D), and Rastrigin (5D).
- Discrete Optimization: The Practical Molecular Optimization (PMO) benchmark, which consists of 23 deterministic small-molecule evaluation oracles. The search space is initialized using 10 random molecules sampled from the ZINC 250K dataset.
Key Insights and Ideas
-
The Memorization Trap: In continuous optimization, LLMs exhibit a distinct "recognition behavior." They perform exceptionally well on standard, unaltered test functions because they recognize the function's name or coordinate patterns from their pretraining data. When the functions are disguised, their performance drops significantly, particularly in higher dimensions.
Figure 2: Simple regret versus number of function evaluations for Opus 5 in the multi-turn setting with q = 1 for all five tasks, with both variations shown. Solid lines represent the mean across five seeds and shaded bands represent ±1 SE. A dotted line corresponds to 0 regret (up to machine precision). -
Language Models Love Language Spaces: LLMs act as far more robust and sample-efficient optimizers when operating in discrete, semantically rich spaces (like SMILES strings representing chemical structures) than in purely numerical spaces. The discrete text structure aligns naturally with the autoregressive token patterns they were trained on, allowing them to effectively reason over molecular modifications.
- Stateful Reflection is Essential: Multi-turn setups consistently outperform single-turn protocols. Keeping the conversation history active allows the reasoning models to build on top of their prior logic, leading to more systematic exploration and exploitation of the search space.
Key Results
-
Continuous Performance: Opus 5 multi-turn outperforms a strong classical Bayesian Optimization baseline (GP-EI) on a majority of the plain synthetic tasks. However, its performance slightly degrades as the batch size increases and drops sharply when the domain is disguised.
Figure 1: A comparison of the simple regret of Opus 5 multi-turn against GP-EI for batch sizes q = 1, 2, 4 across all five synthetic tasks and both disguised and plain variants. Stars indicate cases where the policy achieved a regret that is truly zero up to machine precision. Bars are ±1 standard error (SE) computed across five seeds. -
Discrete Performance: Under a highly restricted budget of just 210 oracle evaluations, Opus 5 multi-turn proves to be a highly competitive molecular optimizer. It comfortably beats specialized deep learning baselines like REINVENT and SynNet. While it falls slightly behind heavily scaffolded or specialized molecular frameworks (like GenMol, ExLLM, and MolLEO), it achieves this zero-shot without any additional tuning, specialized architectures, or problem scaffolding. Across the 23 PMO oracles, Opus 5 multi-turn was the top-performing LLM variant, winning 17 tasks by Top-10 AUC and 20 tasks by Top-10 mean.
Limitations and Future Work
The authors note that using LLMs as continuous numerical optimizers remains brittle and highly sensitive to task dimensionality, batch size, and coordinate transformations. The models frequently rely on fingerprinting known mathematical functions rather than executing a robust, generalized optimization algorithm.
Promising future directions include extending this evaluation to a wider variety of discrete and numerical BBO formulations. Additionally, the authors suggest designing specific mid- and post-training protocols aimed at enhancing the black-box optimization performance of open-weight reasoning models, moving them beyond zero-shot capabilities.
Summary updated