NextEval: An Agent-Based Solver and Benchmark for Derivative-Free Optimization
Organizations: Independent Researcher · Beijing Normal University · The Hong Kong Polytechnic University · Beijing University of Posts and Telecommunications ·
Abstract
Derivative-free optimization (DFO) addresses problems where derivatives are unavailable or costly to obtain. This setting often arises in simulation-based and experimental applications, where evaluating the black-box objective can itself be costly. Thus, it remains a central challenge in DFO to effectively exploit accumulated observations to select informative evaluation points under a limited budget. In this light, we introduce the NextEval solver, an agent-based DFO solver, which integrates the capabilities of a large language model (LLM) to guide the sequential selection of evaluation points. Specifically, we establish a system that combines an LLM agent with a numerical environment. The environment provides tools for analyzing past evaluations and executing numerical methods, while maintaining a shared evaluation history and method-specific state to support continuation across method switches. Using observations and tool feedback, the LLM agent selects tools, configures their parameters, and allocates the evaluation budget, while numerical methods compute and evaluate candidate points. Building on this system, we also introduce NextEval Bench, a benchmark protocol for comparing agent configurations on shared DFO tasks using the same numerical tools under matched evaluation budgets and information constraints. Numerical results on low-dimensional DFO problems demonstrate that the NextEval solver outperforms the state-of-the-art DFO baselines in function-evaluation efficiency.
Figures & tables
| Study | Research question |
|---|---|
| Solver performance | Can the NextEval solver improve evaluation efficiency over classical DFO solvers? |
| Case study | How does the agent adapt its search in one audited trajectory? |
| Model choice | How does the choice of LLMs affect optimization performance? |
| Reasoning setting | Does additional reasoning improve optimization performance? |
| Execution harness | How sensitive is optimization performance to the execution harness? |
| Solver | Aggregate score | Perf. | Data | Perf. | Data |
|---|---|---|---|---|---|
| NextEval | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 |
| COBYQA | 0.805 | 0.847 | 0.899 | 0.796 | 0.856 |
| NEWUOA (PDFO) | 0.820 | 0.862 | 0.913 | 0.807 | 0.864 |
| Powell (SciPy) | 0.354 | 0.370 | 0.466 | 0.300 | 0.393 |
| BFGS (finite differences) | 0.810 | 0.843 | 0.793 | 0.818 | 0.756 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Field | DeepSeek Flash feature suite | Model configuration studies |
|---|---|---|
| Repetitions | Earlier cohorts: 3; rotated: 10 | Ten in each study |
| Features | Perturbed starts alone, with noise, or with rotation; start/noise levels | Perturbed starts with noise; both levels |
| Harness | Earlier cohorts: historical task-mode; rotated: built-in task-mode runner | GPT and Qwen thinking: Codex; harness study: built-in vs. Claude Code |
| Models | DeepSeek V4 Flash (observed ID below) | GPT configurations, Qwen 3.8 Flash, and DeepSeek V4 Flash |
| Thinking | Earlier cohorts: historical setting; rotated: disabled | GPT: medium; Qwen thinking: off/medium; harness comparison: off |
| Session wall limit | Earlier cohorts: 1,800 seconds; rotated: 3,600 seconds | GPT: 1,800 seconds; Qwen thinking: no solver-side wall cap; harness: 3,600 seconds |
| Quantity | Perturbed start | Perturbed start + noise |
|---|---|---|
| Problems | 92 | 92 |
| All displayed solver trials | 1,380 | 1,380 |
| Agent trials | 276 | 276 |
| Runner interruptions | 8 | 12 |
| Session wall limits | 17 | 47 |
| Invalid initial values | 2 | 2 |
| Repetition | Qwen medium | Qwen off | Best classical | Best classical value | Medium strict improvements |
|---|---|---|---|---|---|
| rep02 | PDFO | 35 | |||
| rep08 | PDFO | 13 |
| Case | Model and recorded evaluation sequence | Paired classical observations |
|---|---|---|
| ROSENBRTU rep04 | GPT-5.5; evaluations 53–58; incumbent before three line-search calls without a strict decrease; scale_restart followed, with observed values (evaluation 58), (61), and (89). | Powell: 96/100 calls after its last strict improvement, then evaluation-limit termination at ; COBYQA/PDFO: 43/45 and 46/48 plateau calls before a trust-region radius lower bound. |
| SNAIL rep09 | GPT-5.6 Terra; evaluations 78–82; see the audited case above for the full recorded action sequence; observed value at evaluation 98. | Powell: successful termination after 73 calls at , with 50 calls after its last strict improvement; COBYQA/PDFO: 11/52 and 7/59 plateau calls, with PDFO near . |
| LOGHAIRY rep08 | GPT-5.6 Terra; evaluations 38–39; incumbent and a Newton candidate of ; subsequent trust-region calls reached at evaluation 67. | Powell: 72/100 calls after its last strict improvement and evaluation-limit termination at ; COBYQA/PDFO: 32/49 and 10/48 plateau calls before a trust-region radius lower bound, with best observed value near . |
| Case | Dim. | Budget | Final observed | Recorded evaluation sequence | Paired classical observations |
|---|---|---|---|---|---|
| SNAIL rep08 | 2 | 100 | Line search without a strict decrease near broad trust region to Newton to trust-region continuation. | Powell/COBYQA/PDFO best values ; plateau tails 23/100, 3/51, and 17/55 calls. | |
| ECKERLE4LS rep08 | 3 | 150 | Coordinate search without a strict decrease trust-region restart to line search to trust-region refinement. | Powell/COBYQA/PDFO best values ; plateau tails 61/141, 35/66, and 46/75 calls. | |
| MGH09LS rep03 | 4 | 200 | Line search and broad trust-region calls without a strict decrease coordinate search. | Powell/COBYQA/PDFO best values ; plateau tails 8/200, 29/98, and 27/145 calls. |
| Harness | Performance | Data |
|---|---|---|
| Built-in | 0.947 | 0.966 |
| Claude Code | 0.999 | 1.000 |
| Operation | Numerical work | Retained information |
| Trust-region campaign | Quadratic interpolation, step acceptance, geometry repair | Radius, resolution, sample set, Hessian |
| Line-search campaign | Bracketing and safeguarded parabolic search | Direction and successful scale |
| Poll / coordinate search | Directional tests and step-size adaptation | Poll length / one scale per axis |
| Newton jump | Safeguarded minimizer of a fitted quadratic | Model checks and recent outcome |
| Geometry rebuild | Construct a usable local sample set | Samples and geometry report |
| Model preview | Fit a surrogate and inspect its candidate | No new objective evaluations |
Derivative-Free Optimization
Derivative-free optimization searches for better solutions using objective evaluations instead of gradients, especially for black-box or non-differentiable problems.
See all 22 papers