Manuscript Offprint

arXiv:2610.36553

NextEval: An Agent-Based Solver and Benchmark for Derivative-Free Optimization

Shuo Chen, Li Cui, Cunxin Huang, Ya-Feng Liu, Minghang Xie, Meng Xu, Zaikun Zhang

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.

1 INTRODUCTION

Derivative-free optimization. Derivative-free optimization (DFO) addresses optimization problems in which derivatives are unavailable, unreliable, or too expensive to compute (Conn et al., 2009; Larson et al., 2019). Such problems arise, for example, when objectives are evaluated through simulations or experiments (Audet & Hare, 2017). These evaluations are often expensive, so a central goal is to obtain a good solution within a limited evaluation budget (Moré & Wild, 2009). Therefore, DFO algorithms are commonly compared by the number of objective evaluations needed to reach a given quality, not by runtime.

Choosing and combining numerical methods. Classical DFO chooses evaluation points through direct search or local approximations (Kolda et al., 2003; Powell, 2004; 2006). As function evaluations accumulate, the algorithm decides whether to continue, change parameters, improve the sample set, or try another numerical method. These choices can depend on progress, the geometry of the sample set, and agreement between local-model predictions and actual function changes. We ask whether these choices can be made by a language-model agent instead of predefined strategies coded in the algorithm. We address this question in unconstrained, low-dimensional DFO with a small evaluation budget.

Agent-guided search. Large language model (LLM) agents can use tools and respond to their outputs over multiple interactions (Yao et al., 2023); agent frameworks support conversation state

Figure

Figure 1: Conceptual view of NextEval. The agent selects tools using past evaluations. The illustrated landscape is neither an agent input nor an experimental trajectory.

and repeated LLM–tool interactions (LangChain, 2026). The agent uses evaluation histories to select numerical methods, while numerical tools compute the candidate points.

A sequential policy, not a solution mapping. In our study, the agent pursues a history-dependent policy, not a solution mapping from a fixed input to a minimizer: new evaluations can change the next operation and its parameters. Unlike trained DFO policies (Chen et al., 2017), our agent uses general-purpose LLMs without optimization-specific policy training.

We introduce NextEval, an agent-based DFO solver for unconstrained minimization. Its numerical environment executes the agent's tool requests, records objective calls, and retains method state while enforcing budget and stopping rules (Figure 1).

NextEval Bench reuses this environment to compare LLMs and harnesses, the software that manages LLM calls, conversation history, and tool exchanges.

References (73)