Papers
Topics
Authors
Recent
Search
2000 character limit reached

Agentic ESOpt: Evolutionary Fine-Tuning for LLM Agents

Updated 21 August 2026
  • Agentic ESOpt is a black-box evolution-strategy framework that perturbs full LLM parameters, evaluates complete tool-using trajectories, and updates the model using normalized reward-weighted directions.
  • The method targets long-horizon tasks with branching interactions and sparse rewards, improving Sudoku performance to 53.13% at 15 turns and raising reported Math and DocVQA results by an average of 13.7 points over the base model.
  • By storing perturbation seeds rather than activations, critics, reference models, or optimizer states, Agentic ESOpt enables inference-level GPU memory use and can co-evolve model parameters with prompts, skills, memories, or heuristics.

Agentic ESOpt is an evolution-strategy framework for fine-tuning long-horizon LLM agents with full-parameter updates using inference-level GPU memory. At each optimization iteration, it samples perturbations around the current LLM parameters, evaluates the resulting agents through complete environment trajectories, normalizes scalar rewards, and applies an online reward-weighted update. The framework is designed for agentic settings characterized by branching interactions, sparse or terminal rewards, tool use, and substantial horizon-dependent credit-assignment difficulty. Its broader design includes parameter–context co-evolution, in which LLM parameters and external prompts, skills, memories, or heuristics may be adapted together. The principal paper is “Agentic ESOpt: Fine-Tuning Long-Horizon LLM Agents with Minimal GPU Requirements” (Zheng et al., 18 Aug 2026).

1. Conceptual foundations and scope

Agentic ESOpt treats an LLM agent as a policy πθ\pi_\theta that repeatedly generates actions conditioned on interaction history and external context:

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),

where θ\theta denotes the LLM parameter vector, ata_t is the action at turn tt, ot\boldsymbol{o}_{\leq t} is the observation history, and ctc_t may contain prompts, skills, memories, or tool instructions. An episode produces a trajectory

τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),

with realized horizon HH. The trajectory return is

R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.

In many of the studied environments, intermediate rewards are zero and the useful signal is essentially a terminal success score. The optimization objective for fixed external context is

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),0

Agentic ESOpt is a zeroth-order or black-box optimization method. It does not differentiate through tokens, model activations, action probabilities, or environment transitions. Instead, it estimates parameter-space improvement from the rewards of perturbed agents.

The framework is distinct from several adjacent uses of “agentic optimization.” Primitive Agentic First-Order Optimization applies reinforcement learning to sequentially select among first-order update operators, rather than perturbing LLM parameters (Sala, 2024). EPOCH provides orchestration, evaluation governance, and artifact provenance for multi-round optimization, but does not define an evolutionary strategy (Liu et al., 10 Mar 2026). AEvo introduces meta-editing of the procedure or agent context that controls future evolution, rather than only updating the candidate artifact (Zhang et al., 13 May 2026). AgentOpt studies end-to-end configuration of LLM-agent pipelines using bandits, Bayesian optimization, and other black-box search methods, but does not implement an evolutionary strategy (Hua et al., 7 Apr 2026).

Agentic ESOpt is therefore specifically concerned with full-parameter evolutionary adaptation of an acting LLM policy under scalar trajectory feedback. It is not a population-based optimizer in the conventional sense of maintaining a persistent population of model copies: perturbation directions are sampled for an update population, evaluated independently, and then removed before the reward-weighted parameter update.

2. Motivation: long-horizon agents and reinforcement-learning limitations

The framework is motivated by four interacting limitations of conventional agentic RL.

Memory-intensive full-parameter training: Policy-gradient systems generally require model activations, rollout tokens and hidden states, gradients, optimizer states, and sometimes a reference model, critic, or value function. The paper reports that Qwen3.5-4B inference requires about atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),1 GB in its Sudoku setup, whereas corresponding full-parameter GRPO and PPO configurations require atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),2 GB and atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),3 GB, respectively.

Backpropagation and reference-model overhead: GRPO-like methods require policy computation, reference-policy computation, and backward propagation. PPO additionally requires critic computation. The paper gives approximate model-side FLOPs:

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),4

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),5

and

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),6

Here, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),7 is the number of update rounds, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),8 the prompt batch size, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),9 the number of rollouts or perturbation directions, θ\theta0 the number of model parameters, and θ\theta1 the average number of model-processed tokens per trajectory. These expressions are approximate and describe model-side computation rather than environment-execution cost.

Branching interactions: In a browser, tool-use, GUI, or coding environment, each action changes the next observation and therefore the future prompt. A mistaken click, tool call, navigation step, or intermediate computation may lead to a qualitatively different trajectory. The number of possible interaction paths grows rapidly with the horizon.

Sparse rewards and credit assignment: A terminal reward may provide little evidence about which action caused success or failure. GRPO effectively attaches a trajectory-level relative advantage to many action or token terms:

θ\theta2

A stylized policy-gradient estimator is

θ\theta3

where θ\theta4 is a baseline. Under simplifying assumptions in which the return is weakly correlated with individual actions and per-turn score terms are approximately uncorrelated, the paper gives the scaling argument

θ\theta5

This is a scaling argument rather than a claim that ES variance is independent of horizon. The distinction is that RL explicitly accumulates action-level score terms across turns, whereas ES attributes the complete return to a single coherent parameter perturbation.

3. Evolution-strategy objective and update mechanism

Agentic ESOpt optimizes the Gaussian-smoothed objective

θ\theta6

where θ\theta7 is the perturbation scale and θ\theta8 is a standard Gaussian direction in the full parameter space. A perturbed parameter vector is

θ\theta9

The ES score-function identity gives

ata_t0

Expanding through environment trajectories,

ata_t1

At iteration ata_t2, the method samples ata_t3 independent directions ata_t4. For each direction, it temporarily applies ata_t5, runs the perturbed agent, records a complete trajectory and scalar reward ata_t6, and then reverts the perturbation. The canonical Monte Carlo estimator is

ata_t7

with

ata_t8

A perturbation-independent baseline may replace ata_t9 by tt0, because tt1.

In the implemented update, population rewards are standardized:

tt2

where

tt3

and

tt4

The online reward-weighted parameter update is

tt5

Unlike the canonical estimator, this implementation omits the explicit tt6 factor. Consequently, tt7, rather than tt8, controls the practical update magnitude. High-reward perturbations receive positive weight, low-reward perturbations receive negative weight, and the model moves toward parameter-space directions associated with better complete trajectories.

The method stores random seeds for perturbation directions instead of materializing a full tt9-dimensional noise vector for every candidate. A direction can be regenerated from its seed, applied in place,

ot\boldsymbol{o}_{\leq t}0

and removed after evaluation,

ot\boldsymbol{o}_{\leq t}1

The same seed is replayed when constructing the reward-weighted update. This avoids storing rollout activations and large populations of model copies.

4. Perturbation scheduling and parameter–context co-evolution

Agentic ESOpt uses cosine decay for the perturbation scale:

ot\boldsymbol{o}_{\leq t}2

Here, ot\boldsymbol{o}_{\leq t}3 is the initial perturbation radius, ot\boldsymbol{o}_{\leq t}4 the final radius, ot\boldsymbol{o}_{\leq t}5 the total number of update steps, and ot\boldsymbol{o}_{\leq t}6 the current step. Early iterations use a larger neighborhood for exploration and later iterations use smaller perturbations for local refinement.

The Gaussian-smoothing expansion is

ot\boldsymbol{o}_{\leq t}7

A nonzero ot\boldsymbol{o}_{\leq t}8 therefore optimizes neighborhood behavior rather than exactly the un-smoothed objective. It can discourage sharp local optima, while also introducing smoothing bias. For train-time fine-tuning, the authors generally retain a nonzero ot\boldsymbol{o}_{\leq t}9; for test-time compute, where the goal is the best solution for the current task rather than generalization, ctc_t0 is decayed to zero.

The framework can optimize both LLM parameters and external context. Let ctc_t1 denote trajectories and scores collected at iteration ctc_t2, ctc_t3 the ES update, and ctc_t4 a context-update rule:

ctc_t5

ctc_t6

The external context may include prompts, skill documents, memories, heuristics, or tool instructions. Parameter optimization changes the underlying policy, while context optimization changes the behavior induced by that policy.

In Trace2Skill experiments, the method first adapts the model using No Skill trajectories, after which those trajectories are passed to a skill-distillation procedure. The resulting system combines ES-adapted parameters with a skill document distilled from trajectories. In WebArena, this combination is sequential rather than fully alternating: a 70-generation parameter run is followed by one post-hoc skill-distillation stage.

In automatic heuristic design, an LLM proposes Python heuristics and an external solver evaluates the resulting algorithm. Agentic ESOpt adapts the proposal distribution while Sample or EoH continues to evolve heuristic candidates. For EoH, the original evolutionary operators are preserved and ES updates are attached to mutation operators ctc_t7 and ctc_t8. For Sample, batches of proposals form ES update populations. Thus the coupled search acts over heuristic space and LLM parameter space, with the latter indirectly influencing solver behavior.

5. Evaluation environments and empirical results

Agentic ESOpt has been evaluated in controlled Sudoku, mathematical reasoning, DocVQA, WebArena-Lite, and automatic heuristic-design settings (Zheng et al., 18 Aug 2026).

Sudoku

The Sudoku environment requires one action per masked cell and supplies essentially terminal success feedback. The minimum successful horizon is

ctc_t9

Masking 5, 10, or 15 cells gives τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),0. The setup uses Qwen3.5-4B, four H100 80GB GPUs, 32 training puzzles, and 32 evaluation puzzles per horizon.

Method τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),1 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),2 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),3
PPO τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),4 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),5 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),6
Stronger GRPO τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),7 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),8 τ=(o1,a1,,oH,aH),\boldsymbol{\tau}=(o_1,a_1,\ldots,o_H,a_H),9
Agentic ESOpt HH0 HH1 HH2

The results show a horizon-dependent crossover rather than universal ES superiority. PPO is strongest at five turns, GRPO at ten, and Agentic ESOpt at fifteen, where it exceeds GRPO by HH3 percentage points.

At HH4, Agentic ESOpt reaches HH5, Vanilla ES without sigma decay reaches HH6, and a train-time terminal sigma of zero reaches HH7. These comparisons support the use of broad early exploration followed by smaller but nonzero perturbations.

Mathematical reasoning and DocVQA

The Math experiments use 400 DAPO training problems, 100 held-out DAPO problems, 30 AIME 2026 problems, up to 50 interaction turns, Python/bash tool use, and exact-match final-answer reward. DocVQA uses a 50-question training subset, 100 held-out questions, up to 50 turns, image inspection and OCR tools, ANLS, and thresholded accuracy.

With Qwen3.5-4B, HH8, HH9, and cosine decay from R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.0 to R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.1, Agentic ESOpt without skills improves over the No Skill baseline by:

  • R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.2 points on DAPO Mean@4;
  • R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.3 points on AIME Mean@4;
  • R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.4 points on DocVQA Mean@4 accuracy.

Averaged across these three metrics, the paper reports a R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.5-point improvement over the base model and an R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.6-point improvement over Agentic GRPO. The method also composes with Trace2Skill, producing the strongest Qwen3.5-4B Mean@4 results on the reported Math and DocVQA metrics.

WebArena-Lite

WebArena-Lite contains 165 browser tasks across Reddit, GitLab, CMS, Map, OSS, and Wikipedia. The agent receives WebRL-style textual browser observations and performs id-based browser actions, with binary task success as reward.

The experiment uses Qwen3.5-27B, four H100 80GB GPUs, eight perturbation directions per update, eight web tasks per direction, 70 ES generations, a maximum of 30 browser actions per task, and a 2,048-token response budget.

System WebArena-Lite success
No Skill R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.7
Trace2Skill R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.8
Agentic ESOpt R(τ)=t=1Hγt1rt.R(\boldsymbol{\tau})=\sum_{t=1}^{H}\gamma^{t-1}r_t.9
Agentic ESOpt + Trace2Skill atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),00

Full-parameter Agentic ESOpt improves the No Skill baseline by atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),01 percentage points. The result is primarily a feasibility demonstration for full-parameter adaptation of a 27B model with inference-level memory requirements. It is not a matched-hardware performance comparison against full-parameter RL, because full-parameter RL was not practical in that setting.

Automatic heuristic design

The automatic heuristic-design experiments use Llama-3.1-8B-Instruct on eight RTX 3090 GPUs. They cover constructive TSP, Knapsack, Admissible Set Problem, ACO-style TSP, CVRP, and Bin Packing, with evaluation budgets atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),02 and atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),03, and Sample and EoH as outer search baselines.

For constructive tasks, the normalized optimality gap is

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),04

and the gain over baseline atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),05 is

atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),06

Agentic ESOpt improves 28 of 36 matched method–budget comparisons. For constructive settings, Agentic ESOpt plus EoH improves all six test sets at both budgets, Agentic ESOpt plus Sample improves 9 of 12 comparisons, and the combined constructive comparisons improve 21 of 24 times.

Removing the reward-weighted ES update weakens results, as does removing cosine decay. Retuning EoH’s LLM sampling temperature does not reproduce the gain. The on-the-fly runtime overhead for Agentic ESOpt plus Sample is approximately atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),07–atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),08.

6. Computational properties, limitations, and research significance

Agentic ESOpt’s principal systems claim is that full-parameter optimization requires approximately inference-level GPU memory. Each candidate requires a forward rollout, while the described update requires no policy-gradient computation, retained activation graph, critic, reference model, or optimizer moments. The method moves computational cost from backward propagation and training-state storage to independent forward rollouts and environment evaluations.

This trade-off is favorable when model memory is the binding constraint and environment evaluations are sufficiently affordable. It is less favorable when browser execution, simulation, solver execution, or API access dominates cost, because ES may require more independent trajectories than RL. In Sudoku, the method uses 32 ES directions versus eight GRPO rollouts; the lower per-trajectory model-side cost approximately offsets the larger ES population in the reported FLOPs comparison.

The framework is not universally superior to policy-gradient RL. The Sudoku crossover demonstrates that PPO and GRPO can outperform Agentic ESOpt at shorter horizons. ES remains sensitive to perturbation scale, population size, reward sparsity, parameter-space geometry, and task distribution. A population-sensitivity study reports that Qwen3.5-4B benefits substantially from increasing atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),09 from 8 to 16 on 15-turn Sudoku, whereas Qwen3.5-9B is less sensitive.

Continual-learning behavior remains unresolved. Dense ES updates could induce a random walk in directions unrelated to the objective, potentially damaging previously acquired capabilities. In the WebArena analysis, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),10 of parameter changes are at most atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),11, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),12 are at most the perturbation scale atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),13, and atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),14 are below atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),15. These measurements characterize the reported runs but do not establish long-term preservation of capabilities.

Other limitations include the following:

  • Sparse or nondiscriminative rewards: ES can still fail when few perturbations produce informative outcomes.
  • Expensive environments: More forward rollouts may be costly even when GPU memory is reduced.
  • Hyperparameter sensitivity: atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),16, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),17, atπθ(atot,ct),a_t\sim\pi_\theta(a_t\mid \boldsymbol{o}_{\leq t},c_t),18, and the terminal perturbation scale may depend on model and task.
  • Co-evolution incompleteness: The reported WebArena parameter–skill combination is sequential rather than fully alternating.
  • Quantization: Dense perturbations of quantized weights require scale-aware noise and numerically stable seed replay.
  • Generalization: Scaling to frontier proprietary models and establishing population-scaling laws remain open.
  • Evaluation scope: The reported evidence covers selected reasoning, browser, document, Sudoku, and heuristic-design tasks rather than a broad deployment distribution.

Agentic ESOpt is complementary to other agentic optimization architectures. AEPO balances entropy during rollout and policy updating for multi-turn tool-use RL, but it remains a gradient-based PPO/GRPO-like method rather than an evolutionary strategy (Dong et al., 16 Oct 2025). ODYSSE’s ESPO introduces episode-level rewards and episodic advantage estimation for personalized GUI reasoning, but also remains a policy-gradient method (Beheshti et al., 14 Jul 2026). AgentOpt provides a discrete, end-to-end evaluation substrate for optimizing model assignments across agent-pipeline roles, including cost and latency, and suggests evolutionary extensions for highly epistatic pipeline configurations (Hua et al., 7 Apr 2026). AgentOptics demonstrates protocol-grounded, closed-loop black-box control over optical hardware, but its reported search procedures are finite-grid, threshold, or coordinate-wise methods rather than ES (Wang et al., 23 Feb 2026). Physically Constrained Agentic AI for Energy Scheduling similarly separates LLM proposal from deterministic physical authorization in MIP and MILP scheduling (Zhao et al., 10 Aug 2026).

The central significance of Agentic ESOpt is the alignment between parameter-space perturbation and long-horizon agent behavior. Rather than assigning a sparse terminal outcome to individual token or turn-level decisions, it evaluates whether a nearby version of the entire agent produces a better trajectory. This provides:

  1. Model scalability through full-parameter adaptation with inference-level memory.
  2. Black-box flexibility through a scalar feedback interface compatible with tools, browsers, code execution, solvers, prompts, skills, and heuristic search.
  3. Long-horizon attribution through reward-weighted parameter perturbations without explicit accumulation of action-score terms over the trajectory.
  4. Context compatibility through parameter–context co-evolution.
  5. Search integration through insertion into existing heuristic and evolutionary procedures.

The resulting method should not be interpreted as a universal replacement for RL or classical evolutionary optimization. Its strongest applicability is suggested for settings with sparse feedback, long and branching trajectories, large models whose full-parameter RL training exceeds available memory, and reliable scalar evaluation. Its empirical results support a regime-dependent advantage, particularly at longer horizons and in full-parameter adaptation, while leaving open questions concerning environment cost, continual learning, perturbation scaling, co-evolution, robustness, and formal convergence.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Agentic ESOpt.