arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2606.28374v1 [cs.AI] 17 Jun 2026

Recursive Self-Evolving Agents via Held-Out Selection

Michael Nguyen Affiliation: School of Information Technology    Quoc Nguyen Affiliation: Monash University Malaysia    Paul Vuong Affiliation: {michael.nguyen, quoc.nguyen, paul.vuong}@monash.edu
Abstract

LLM agents are increasingly improved without weight updates, by evolving a natural-language artifact – reflections, workflows, playbooks, cheatsheets, or optimized prompts – that conditions a frozen policy. Such methods are typically reported as wins on the single benchmark where they help. We study them apples-to-apples and surface a sharper picture. We introduce RSEA (Recursive Self-Evolving Agent), which carries a compact three-layer natural-language state – an imperative strategy, reusable skills, and a procedural playbook – and across generations rewrites all three layers from its own trajectories, committing a candidate only if it does not regress on a disjoint held-out split (a strict keep-better gate). Across four diverse benchmarks (ALFWorld, GAIA, τ\tau-bench, WebShop) and six faithful baselines (ReAct, Reflexion, GEPA, AWM, ACE, Dynamic Cheatsheet), all on one shared local backbone, we find: (i) no artifact universally wins – RSEA is the strongest single-pass method on ALFWorld (69.3%69.3\% vs. ReAct 64.6%64.6\%, McNemar p=0.015p{=}0.015; 79.4%79.4\% with retry, best overall), while concrete-workflow induction (AWM) is best on the strong-backbone tool-use tasks; (ii) unguarded context evolution is high-variance and unsafe – Dynamic Cheatsheet, which curates context online with no held-out gate, is near-best on ALFWorld (70.7%70.7\%) yet collapses on WebShop (score 0.140.14 vs. ReAct 0.430.43); and (iii) RSEA’s strict held-out selection is what makes recursive self-evolution monotone-safe: it never significantly underperforms the base agent on any benchmark, falling back to vanilla ReAct when evolved context would hurt. Controlled ablations show that every layer of the evolved state helps and that removing held-out selection causes severe overfitting (a perfect in-sample score but a 3333-point drop to test). We argue the reliability of context evolution comes less from the artifact and more from the selection gate, and release the full harness, the six baseline re-implementations, and pre-registered manifests.

1 Introduction

A central paradigm for building self-improving LLM agents adapts the context rather than the weights: the policy is frozen and an evolving natural-language artifact – accumulated reflections, induced workflows, curated playbooks, online cheatsheets, or optimized system prompts – is injected at inference. Context adaptation is attractive for concrete reasons: it is interpretable and auditable, integrates new knowledge at runtime, transfers across model versions, and – with long-context inference and KV-cache reuse – is increasingly cheap to serve.

Despite rapid progress, these methods are almost always evaluated in isolation: a single benchmark, weak or non-matched baselines, and a backbone or decoding budget that varies between methods. This makes their relative merits and, crucially, their failure modes hard to read. When we re-run six representative methods on one shared backbone across four diverse agent benchmarks, two uncomfortable facts emerge. First, which artifact helps is benchmark-dependent: a method that tops one benchmark is middling or harmful on another. Second, and more importantly, evolving context is not a free lunch. We name the failure mode context distraction: an injected artifact that degrades an otherwise-capable base policy. Context distraction is not hypothetical – in our study an unguarded online method (Dynamic Cheatsheet) goes from near-best on ALFWorld (70.7%70.7\%) to a WebShop score of 0.1360.136 versus the ReAct baseline’s 0.4290.429, a catastrophic regression caused entirely by the context it added.

We argue that the reliability of context evolution comes less from the artifact being evolved and more from the selection gate that decides whether to commit it. An evolution loop that commits whatever it produces inherits the variance of its own rewrites; one that commits a change only when it improves held-out performance cannot do worse than not evolving at all. We make this gate the design center of our method rather than an afterthought.

Concretely, we present RSEA (Recursive Self-Evolving Agent). RSEA carries a compact three-layer natural-language state – strategy (an imperative preamble), skills (reusable sub-routines), and playbook (procedures distilled from successes) – and across generations (i) rolls the current state out on a small evolve pool, (ii) rewrites all three layers from the resulting trajectories, and (iii) commits the candidate only if it does not regress on a disjoint validation split, updating the frozen best state only on a strict improvement. Only the frozen best state is run on a held-out test split, so there is no leakage. RSEAR{}_{\text{R}} injects this frozen prior into a per-task retry loop.

Contributions. (1) A formulation of cross-task NL self-evolution centered on a strict held-out keep-better gate that makes the operation monotone-safe4). (2) A faithful, single-backbone re-implementation of six classic and recent baselines on a shared harness (§5). (3) A four-benchmark study with multi-seed statistics and paired tests, yielding an honest scope condition rather than a universal-win claim (§67). (4) Controlled ablations that isolate the contribution of each state layer and quantify the cost of removing held-out selection (§8).

Key findings. (a) On ALFWorld (134 tasks ×\times 5 seeds, 7B) the single-pass evolved prior significantly beats ReAct, GEPA, and AWM, and RSEAR{}_{\text{R}} is best overall (79.4%79.4\%). (b) On the strong-backbone tool-use benchmarks no NL artifact dominates; RSEA is statistically tied with ReAct (and never significantly worse), while AWM’s concrete workflows give the only consistent small lift. (c) Methods without a held-out gate are high-variance and can catastrophically regress; RSEA’s strict gate converts “context evolution” from a coin-flip into a monotone-safe operation. (d) Ablations show every layer of the evolved state helps (the layers overlap rather than being strictly complementary) and that removing held-out selection overfits the evolve pool (100%100\% in-sample, a 3333-point drop to test).

Refer to caption
Figure 1: No context-evolution artifact universally wins, and unguarded evolution is unsafe. Single-pass methods across four benchmarks on one shared backbone (ALFWorld 7B; GAIA/τ\tau-bench/WebShop 30B). RSEA (red) is the strongest single-pass method on ALFWorld and never significantly underperforms ReAct (grey) elsewhere; AWM is best on the tool-use tasks; and Dynamic Cheatsheet – which curates context online with no held-out gate – is near-best on ALFWorld yet collapses on WebShop (0.14 vs. ReAct 0.43). RSEA’s strict held-out gate is what makes evolution monotone-safe.

2 Related Work

LLM agents that reason and act.

A now-standard recipe interleaves free-form reasoning with tool/environment actions: ReAct (Yao et al., 2023b) couples chain-of-thought with acting, elaborated with deliberate search (Yao et al., 2023a), self-critique and revision (Madaan et al., 2023), learned tool use (Schick et al., 2023), and grounded planning in embodied or open-ended worlds (Huang et al., 2022; Wang et al., 2023). Recent work strengthens the reasoning substrate – multi-perspective, semiotically grounded logical reasoning (Zhang et al., 2025e), “system-2” vision-language-action policies (Song et al., 2025; Fang et al., 2025), and spatio-temporal chains of thought for control (Zeng et al., 2025a) – while cognitive-architecture and survey treatments organize the pieces into memory, planning, and action modules (Sumers et al., 2024; Wang et al., 2024a; Park et al., 2023; Yang et al., 2026a). RSEA keeps this loop unchanged and intervenes only through an evolved natural-language state, isolating the contribution of context from scaffold.

Tool-use agents and tool learning.

A large body studies how agents select and compose tools (Qu et al., 2025b): mastering tools via self-driven interaction (Qu et al., 2025a), fine-grained supervision for tool-integrated reasoning (Qu et al., 2026), similarity/dependency-aware experience networks for multi-tool selection (Zhang et al., 2025f), self-critique under tool-calling errors (Huang et al., 2025), tree-search tool planning (Yang et al., 2026b), GUI grounding (Lian et al., 2025), and agentic text-to-SQL (Li et al., 2026b; Su, 2026). Most closely, test-time tool evolution adapts an agent’s tools at inference (Lu et al., 2026). RSEA is complementary: rather than evolving the tool set, it evolves a natural-language strategy over a fixed action/tool interface, and our τ\tau-bench/WebShop results explain when such NL strategy adds little beyond an already-detailed tool API.

Prompt and context optimization.

A second line optimizes the prompt itself: discrete instruction search (Zhou et al., 2023), LLM-as-optimizer loops (Yang et al., 2024), declarative pipelines with compiled prompt/demonstration optimization (Khattab et al., 2024; Opsahl-Ong et al., 2024), evolutionary search (Fernando et al., 2023), and reflective genetic-Pareto evolution (Agrawal and others, 2025); prompts are also notoriously brittle to surface form (Cai et al., 2025). These methods optimize a single flat artifact and usually treat selection as an implementation detail. We instead hold the artifact family fixed and show that the strictness of held-out selection – not the sophistication of the optimizer – governs whether evolution helps or hurts.

Self-evolving and self-improving agents.

Closest in spirit are agents that improve from their own experience. Beyond context, this includes bootstrapping reasoning from self-generated data (Zelikman et al., 2022) and searching over agent code/topology (Hu et al., 2024). Within the agent loop, recent methods self-evolve tool-use policies via blame-aware mutation and diversity-aware selection (Yang et al., 2026c), evolve intrinsic skills in hierarchical RL (Li et al., 2026d), self-improve unified multimodal models from self-generated supervision (Han et al., 2026), and evolve task-specific prototypes (Zhu et al., 2025b). RSEA shares the self-evolution goal but is deliberately weight-frozen and NL-state-based, and – unlike most of these – makes a strict held-out selection gate the center, which our ablations and transfer results identify as the decisive ingredient for safety.

Reinforcement learning for LLM agents.

A parallel thread trains agents/reasoners with RL: verifiable meta-reasoning rewards for long-horizon agents (Zhang et al., 2026c), reasoning re-ranking agents (Zhang et al., 2025a), and RL for contextual integrity (Lan et al., 2025a). A recurring concern is the design of the optimization signal and diversity collapse under verifiable rewards (Li et al., 2025b), addressed via divergence choice (Li et al., 2025b), reward-confidence correction (Li et al., 2026c), preference optimization with priors (Lan et al., 2025b), and intrinsic self-reflection (Li et al., 2025c). Our weight-frozen method avoids RL’s cost and instability while still exploiting execution feedback through the rewrite/selection loop.

Agent memory, experiential learning, and overfitting.

Closest to RSEA’s artifact are methods accumulating reusable NL experience: ExpeL (Zhao et al., 2024), Agent Workflow Memory (Wang et al., 2024b), Agentic Context Engineering (Zhang et al., 2025c), Dynamic Cheatsheet (Suzgun et al., 2025), and memory-augmented agents with explicit stores (Packer et al., 2023; Zeng et al., 2025b). Two failure modes from adjacent fields motivate our selection-first view: catastrophic forgetting / collapse, studied in continual learning (Chen and Zeng, 2025) and observed as logical-reasoning collapse (Zhang et al., 2026a); and classical overfitting, controlled by difficulty-aware reweighting and adversarial robustness (Zhou et al., 2022; Zhou et al., 2024b; Zhou et al., 2024a). RSEA’s strict held-out gate is precisely a mechanism that prevents the evolved context from overfitting or collapsing, which we demonstrate empirically.

Benchmarks, multi-agent systems, and the broader landscape.

We evaluate on a deliberately diverse slate – embodied text households (Shridhar et al., 2021), grounded web shopping (Yao et al., 2022), open-ended assistants (Mialon et al., 2023), tool-agent-user interaction (Yao et al., 2024), interactive coding (Trivedi et al., 2024), and multimodal deep research (Zeng et al., 2026) – a spread that surfaces the benchmark-dependence single-benchmark studies miss. Beyond single agents, multi-agent and social-simulation systems coordinate many LLM agents (Zhang et al., 2025d; Zhang et al., 2026b). Finally, our techniques sit within a broad ecosystem of LLM and multimodal systems where self-improvement, evolution, and robust reasoning recur: medical and scientific vision-language models (Zhu et al., 2025a; Wu et al., 2025), multimodal misinformation detection (Li et al., 2026a; Li et al., 2025a), vision-language alignment and compositionality (Zhang et al., 2024a; Zhang et al., 2025b), retrieval and query expansion (Zhang et al., 2024b; Xie et al., 2025; Xie et al., 2026a; Xie, 2026; Xie et al., 2026b), controllable generation and editing (Xu et al., 2024), automated optimization modeling (Liu et al., 2026), and efficient models via knowledge distillation and compression (Lan and Tian, 2025; Lan et al., 2026b; Lan et al., 2026a).

3 Background and Motivation

Context adaptation.

Given a frozen policy πθ\pi_{\theta} and a benchmark of tasks, context adaptation seeks an artifact cc (a string injected into the prompt) that improves πθ(c)\pi_{\theta}(\cdot\mid c) without touching θ\theta. Methods differ in (i) the form of cc, (ii) the update operator that edits cc from execution feedback, and (iii) the selection rule that decides which cc to keep. Table 1 casts the methods we study in this (form,update,selection)(\text{form},\text{update},\text{selection}) view; the third column is where they differ most and, we argue, where reliability is won or lost.

Limitations of existing methods.

Reflexion (Shinn et al., 2023) adapts within a single task across retries but carries nothing across tasks. Prompt/context optimizers carry a cross-task artifact but optimize a single form: GEPA (Agrawal and others, 2025) a flat prompt via reflective Pareto evolution; AWM (Wang et al., 2024b) a list of induced workflows; ACE (Zhang et al., 2025c) an itemized bullet playbook with add-only deltas; Dynamic Cheatsheet (Suzgun et al., 2025) a single cheatsheet curated online. Two issues recur. Single-form artifacts conflate complementary kinds of knowledge – a high-level strategy, a reusable sub-routine, and a concrete procedure are not interchangeable, yet most methods fold them into one string. Unguarded commitment is the more damaging: methods that append or rewrite without a held-out check (notably online curation) commit context that can distract the base policy, and – because the same mechanism that helps when context is useful is unconstrained when it is not – they are high-variance across benchmarks (§7). RSEA targets both: a three-layer form, and a strict held-out gate.

Table 1: Context-adaptation methods as (form, update operator, selection rule). The selection rule – whether a candidate is committed only after improving held-out performance – is what we argue governs reliability.
Method Artifact form Update operator Selection rule
Reflexion per-task reflection verbal self-feedback none (within-task retry)
GEPA flat prompt reflective mutation Pareto on val minibatch
AWM workflow list induction from successes none (induce & inject)
ACE bullet playbook add-only deltas val keep-best (non-strict)
Dynamic Cheatsheet single cheatsheet online rewrite none (no held-out gate)
RSEA (ours) 3-layer state holistic rewrite of all layers strict held-out keep-better

4 Method: RSEA

Three-layer evolving state.

The agent state is a triple s=(strategy,skills,playbook)s=(\textsc{strategy},\textsc{skills},\textsc{playbook}): (1) strategy, an imperative natural-language preamble (\leq a few sentences); (2) skills, a short list of reusable sub-routines / conditional rules; and (3) playbook, a list of procedures (ordered step sequences) distilled from successful trajectories. The three layers are deliberately complementary – a policy of what to prefer, a library of reusable moves, and procedures for recurring task families. At inference, ss is rendered to a compact preamble and injected immediately ahead of the task in an otherwise canonical ReAct loop (Fig. 2); the only difference from vanilla ReAct is this injected, evolved state, which keeps the comparison clean.

The self-rewrite operator.

A development pool is split into a disjoint evolve set DeD_{e} and val set DvD_{v}. Generation gg rolls the current state sg1s_{g-1} out on DeD_{e}, collecting (task, trajectory, env-verified outcome) tuples, then prompts the same frozen LLM to act as its own meta-optimizer: given the current three layers and a balanced sample of successful and failed trajectories, it returns a rewritten triple s~g\tilde{s}_{g}. The rewrite prompt asks the model to derive transferable rules from the trajectories – quoting action phrasings that succeeded, recording where objects/values were found, and adding rules that would have averted the observed failures – and to keep every skill and playbook entry a single, general, instance-agnostic string. Unlike add-only methods, the operator may rewrite or drop any layer, so the state does not monotonically grow (avoiding unbounded context); unlike a flat-prompt optimizer, it edits three structured layers at once.

Strict held-out keep-better selection.

The candidate s~g\tilde{s}_{g} is scored on the held-out DvD_{v}. We accept it as the new working state if it does not regress on DvD_{v} (allowing lateral exploration), but we update the frozen best state only on a strict improvement (Alg. 1, line 1). This asymmetry is the crux: lateral acceptance lets the search escape plateaus, while strict best-update guarantees the returned state is never worse than vanilla ReAct on held-out val – if no candidate strictly improves, RSEA returns the empty state and reduces exactly to ReAct. Only the frozen best state is later run on the test split. We use env-verified success as the selection signal where it is dense enough (ALFWorld, τ\tau-bench) and the benchmark’s dense reward where success is sparse (WebShop).

Algorithm 1 RSEA evolution (strict held-out keep-better).
Input: frozen LLM π\pi; evolve set DeD_{e}, val set DvD_{v}; generations GG
ss\leftarrow\varnothing; ss^{\star}\leftarrow\varnothing; vEval(π,,Dv)v^{\star}\leftarrow\textsc{Eval}(\pi,\varnothing,D_{v}) // empty state = vanilla ReAct
for g=1Gg=1\dots G do
     TRollout(π,s,De)T\leftarrow\textsc{Rollout}(\pi,s,D_{e}) // trajectories + env-verified outcomes
     s~SelfRewrite(π,s,T)\tilde{s}\leftarrow\textsc{SelfRewrite}(\pi,s,T) // rewrite all 3 layers
     vEval(π,s~,Dv)v\leftarrow\textsc{Eval}(\pi,\tilde{s},D_{v}) // held-out score
     if vEval(π,s,Dv)v\geq\textsc{Eval}(\pi,s,D_{v}) then
          ss~s\leftarrow\tilde{s} // lateral accept
     end if
     if v>vv>v^{\star} then
          ss~s^{\star}\leftarrow\tilde{s}; vvv^{\star}\leftarrow v // strict best-update
     end if
end for
return ss^{\star} // frozen; run on held-out test

RSEAR{}_{\text{R}}: evolution ×\times retry.

The frozen evolved prior is orthogonal to per-task retry. RSEAR{}_{\text{R}} injects ss^{\star} into a Reflexion-style multi-trial loop, combining a good starting policy with within-task self-correction; §8 shows the two contribute near-independent gains.

Refer to caption
Figure 2: RSEA recursively rewrites a three-layer natural-language state of a frozen LLM agent. The state is injected as a preamble into a standard ReAct loop; across generations it is rewritten from evolve-set trajectories and frozen only on a strict held-out validation improvement, which makes the loop monotone-safe.

5 Experimental Setup

Backbone (fairness iron law).

Every method – ours and all baselines – uses the same locally served model and decoding budget; the task LLM and the reflection/rewrite LLM are identical. We serve Qwen2.5-7B-Instruct for ALFWorld (to keep the base agent below ceiling) and Qwen3-30B-A3B-Instruct for the tool-use benchmarks (GAIA, τ\tau-bench, WebShop), via vLLM across 4×\timesA100, round-robined so every method shares identical compute.

Benchmarks.

(i) ALFWorld (text household tasks; env-verified success): a balanced 134-task test set, 5 seeds, disjoint 30-task dev pool. (ii) GAIA(v1) Level-1 text tasks with self-built search/fetch/python tools and the official deterministic scorer (30 tasks). (iii) τ\tau-bench (retail): a tool-calling agent with an LLM user simulator and the official DB-hash reward (60 held-out eval). (iv) WebShop (1,000-product subset, Lucene retrieval): dense attribute/option/price reward (100 held-out eval). For the tool-use benchmarks the official dev split is saturated for our backbone, so we carve disjoint evolve/val/eval slices from a seed-shuffled test pool (no leakage).

Baselines.

ReAct, Reflexion, GEPA, AWM, ACE, and Dynamic Cheatsheet, each a faithful re-implementation on our harness (we open the original repositories and port the core loops), injected at the same point as RSEA and held to the same per-method rollout budget. For ALFWorld we additionally report “+retry” (R{}_{\text{R}}) variants that add the same Reflexion-style multi-trial loop on top of each evolved prior, isolating evolution from retry. We report success rate (ALFWorld/GAIA/τ\tau-bench) or mean dense score (WebShop), multi-seed mean±\pm95% CI where applicable, and paired McNemar over matched (task[, seed]) cells.

6 Results on ALFWorld: the evolved prior significantly helps

Our evaluation shows that: (i) RSEA is the strongest single-pass context method on ALFWorld and significantly beats ReAct (§6); (ii) no NL artifact dominates the strong-backbone transfer benchmarks, where RSEA ties ReAct and never regresses (§7); (iii) held-out selection is decisive – unguarded methods are high-variance (§7) and removing the gate overfits (§8); and (iv) every layer of the evolved state helps8).

Table 2 reports the full 10-method comparison. The single-pass evolved prior (RSEA, 69.3%69.3\%) significantly improves over vanilla ReAct (64.6%64.6\%, McNemar p=0.015p{=}0.015) and over the recent single-pass baselines GEPA (63.9%63.9\%, p=0.004p{=}0.004) and AWM (65.4%65.4\%, p=0.037p{=}0.037), and ties the strongest single-pass baselines ACE (66.9%66.9\%, p=0.20p{=}0.20) and Dynamic Cheatsheet (70.7%70.7\%, p=0.45p{=}0.45). The story of the single-pass column is that on a 7B backbone most injected-context baselines barely move over ReAct – an evolved prompt frequently distracts the policy – whereas RSEA’s holistic three-layer rewrite plus strict val-selection is the method that most reliably nets positive. Adding retry, RSEAR{}_{\text{R}} attains the best overall success (79.4%79.4\%), significantly above ReAct (p<104p{<}10^{-4}), single-pass RSEA (p<104p{<}10^{-4}), and every no-evolution baseline, and trends above the strongest retry baselines Reflexion (76.4%76.4\%, p=0.09p{=}0.09), ACER{}_{\text{R}} (76.7%76.7\%, p=0.13p{=}0.13), and GEPAR{}_{\text{R}} (75.8%75.8\%, p=0.052p{=}0.052).

Table 2: ALFWorld (134 tasks ×\times 5 seeds, Qwen2.5-7B). Success rate mean±\pm95% CI; subscripts are McNemar-significant gains (green) over ReAct. “+retry” adds the same multi-trial loop to each prior. RSEA is the strongest single-pass context method; RSEAR{}_{\text{R}} is best overall.
Single-pass Succ. (%) + retry Succ. (%)
ReAct 64.6±4.364.6\pm 4.3 Reflexion 76.476.4
GEPA 63.9±5.363.9\pm 5.3 GEPAR{}_{\text{R}} 75.8±5.475.8\pm 5.4
AWM 65.4±3.365.4\pm 3.3 ACER{}_{\text{R}} 76.7±4.976.7\pm 4.9
ACE 66.9±2.566.9\pm 2.5
Dynamic Cheatsheet 70.7±3.470.7\pm 3.4
RSEA (ours) 69.3±9.3\mathbf{69.3\pm 9.3} +4.7+4.7 RSEAR{}_{\text{R}} (ours) 79.4±7.4\mathbf{79.4\pm 7.4} +14.8+14.8

Where the gains come from.

Table 3 breaks ALFWorld down by task family and connects the quantitative gains to the interpretable evolved state (App. A). RSEA’s improvements concentrate exactly where its learned content applies: examine tasks jump 6.7%26.7%6.7\%\to 26.7\% (44.4%\to 44.4\% with retry), because the evolved skill “use <desklamp> before examining objects” is the precise fix for the base agent’s dominant failure; pick_two and pick_and_place gain 7799 points from the playbook’s take-before-place procedures. The single regression (clean, 6.5-6.5 points) is mild distraction, and is recovered by retry. This tight correspondence between the human-readable state and the per-family gains is a property the single-string baselines do not expose.

Table 3: ALFWorld success by task family (%, 5 seeds). RSEA’s gains concentrate in the families its evolved skills/playbook directly address (examine, pick_two, pick_and_place).
Method examine pick_two pick_and_place heat cool clean
ReAct 6.7 36.5 82.5 76.5 81.0 80.0
RSEA 26.7 43.5 91.7 79.1 83.8 73.5
RSEAR{}_{\text{R}} 44.4 67.1 99.2 87.0 88.6 79.4

7 Transfer to GAIA, τ\tau-bench, and WebShop

Table 4 reports the cross-benchmark comparison; the tool-use benchmarks use the stronger 30B backbone. Three honest findings stand out. (1) No single method dominates. RSEA is the strongest single-pass method on ALFWorld but on the 30B tool-use benchmarks the concrete-workflow method AWM is marginally best (τ\tau-bench 51.7%51.7\%, WebShop 0.4600.460): when the long domain wiki / detailed tool API already encodes most of what an evolved strategy would add, a library of concrete procedures has more to offer than an abstract policy. (2) RSEA never regresses. Where injected NL context does not help, RSEA’s strict gate falls back toward vanilla ReAct – e.g. on WebShop every evolved candidate hurt held-out val, so the frozen state is empty and RSEA \approx ReAct (0.4370.437 vs. 0.4290.429); RSEA is statistically tied with ReAct on τ\tau-bench, WebShop, and GAIA (McNemar p>0.1p{>}0.1). GAIA in particular is within run-to-run web noise: two independent evaluations of the same frozen states disagree on the sign of the 1\leq 1-task gap. (3) Selection matters: unguarded methods are high-variance. Dynamic Cheatsheet, which curates context online with no held-out gate, is near-best on ALFWorld (70.7%70.7\%) yet collapses on WebShop (score 0.1360.136 vs. ReAct 0.4290.429) and is worst on τ\tau-bench (36.7%36.7\%) – the same unguarded mechanism is high-reward when context helps and catastrophic when it does not. The held-out val metric improves over generations where there is signal (Fig. 3; τ\tau-bench val 0.200.360.20{\to}0.36) and the strict gate rejects all regressive candidates where there is not (WebShop).

Table 4: Cross-benchmark comparison (single-pass). ALFWorld: success % (134×\times5 seeds, 7B). GAIA: accuracy % (30, 30B). τ\tau-bench retail: success % (60 eval, 30B). WebShop: mean dense score (100 eval, 30B). Bold=column best. \star: RSEA p=0.015p{=}0.015 vs. ReAct (ALFWorld). DC has no held-out gate and is high-variance (best on ALFWorld, worst on WebShop/τ\tau-bench); RSEA is significantly best on ALFWorld and never regresses elsewhere.
Method ALFWorld \uparrow GAIA \uparrow τ\tau-bench \uparrow WebShop \uparrow
succ.% acc.% succ.% score
ReAct 64.6 16.7 41.7 0.429
GEPA 63.9 41.7 0.415
AWM 65.4 51.7 0.460
ACE 66.9 40.0 0.453
Dynamic Cheatsheet 70.7 36.7 0.136
RSEA (ours) 69.369.3^{\star} 13.3 40.0 0.437
Refer to caption
Figure 3: RSEA self-evolution: held-out validation over generations (strict keep-better). The best-kept state improves where there is signal (τ\tau-bench 0.200.360.20{\to}0.36) and the strict gate rejects every regressive candidate where there is not (WebShop), so the frozen state never underperforms ReAct.

8 Ablations

We ablate the two design choices that distinguish RSEA from a generic prompt optimizer: the three-layer state and the strict held-out selection. Both ablations use the ALFWorld test set (where RSEA helps), the identical ReAct loop, and temp-0.6 multi-seed decoding; only the injected preamble (resp. the selection rule) changes.

Each layer helps; the layers overlap (Table 6).

We take the frozen ALFWorld state and inject individual and combined subsets of its layers. Every subset improves over ReAct (64.2%64.2\%): each layer on its own lifts success to 676770%70\%, with the skills and playbook layers (the concrete sub-routines and procedures) carrying most of the benefit (69.8%69.8\% each). Combining layers does not strictly improve further at this scale (full state 68.5%68.5\%, within the multi-seed band), so the three layers encode overlapping procedural knowledge rather than three orthogonal signals: the gain comes from injecting the distilled procedures in any of these forms (consistent with the per-family analysis, Table 3). The three-layer structure is best read as an interpretable organization of that knowledge – and the substrate the selection gate operates on – not as a claim that all three are individually necessary.

Held-out selection prevents overfitting (Table 6).

We re-run the evolution with no held-out split (selecting on the evolve set itself) and freeze the result. The no-gate state overfits sharply: it reaches a perfect 100%100\% in-sample selection score but only 66.7%66.7\% on test – a 3333-point train–test gap – versus held-out RSEA’s 67.3%67.3\% (63.6%63.6\% for ReAct). On ALFWorld even the overfit state edges out ReAct, but the danger of unguarded commitment is starkest on the transfer benchmarks (§7): there, the method with no held-out gate (Dynamic Cheatsheet) regresses catastrophically (WebShop 0.140.14 vs. 0.430.43), while RSEA’s strict gate keeps performance at the ReAct level. The gate – not the rewrite operator – is what bounds the downside and makes recursive self-evolution safe to deploy.

Robustness.

The strict best-update is what bounds the downside: with a non-strict (\geq) best-update, a candidate that merely ties on a small or unrepresentative val draw can be frozen and then hurt on test; the strict variant returns the simpler (often empty) state in that case, which is exactly the fall-back-to-ReAct behavior we observe on WebShop and τ\tau-bench.

Table 5: Layer ablation (ALFWorld test, 54×\times3 seeds). Every subset beats ReAct; layers overlap.
Injected state Succ. (%)
empty (= ReAct) 64.2
strategy only 67.3
skills only 69.8
playbook only 69.8
strategy + skills 67.9
full RSEA 68.5
Table 6: Selection ablation (ALFWorld). No gate \Rightarrow 100% in-sample but a 33-pt drop to test (overfitting).
Variant in-samp. test
ReAct (empty) 63.6
RSEA, no held-out gate 100.0 66.7
RSEA, strict gate 67.3

9 Compute and Cost

Because every method shares one backbone and an iso-rollout budget, cost differences come from the number of meta-LLM calls (rewrites/reflections) and the injected context length. RSEA’s evolution is a fixed GG generations of (evolve rollout + one rewrite + val rollout); the rewrite is a single call per generation, so the meta-overhead is O(G)O(G) calls – e.g. the τ\tau-bench evolution used 190190 meta + selection calls in total. At inference RSEA adds only the rendered preamble (\leq a few hundred tokens, bounded by construction since the rewrite may drop layers), versus online methods whose context grows unboundedly with the test stream. Crucially, the strict gate means this overhead is only ever spent to match or beat ReAct, never to underperform it – the favorable risk profile that the other methods lack.

10 Discussion and Limitations

When does cross-task NL evolution help?

The scope condition is clear: an evolved NL state helps most when the bottleneck is procedural strategy (text-action ReAct agents such as ALFWorld), where the state encodes exactly the procedures a weak base policy lacks; it helps least when a strong backbone already follows a detailed tool API (τ\tau-bench) or when the bottleneck is retrieval/grounding (WebShop, GAIA). This predicts which of many proposed methods will transfer to a new agent setting.

Why our framing is selection-first.

The same data that makes the benchmark-dependence visible also shows that the dangerous failures (DC’s WebShop collapse) come from committing context without a held-out check. RSEA’s contribution is to make that check strict and central, which is what converts a high-variance idea into a safe one.

Limitations.

The transfer benchmarks use a single seed of the shuffled split and modest eval sizes; GAIA uses live web retrieval, which adds run-to-run noise (the 1\leq 1-task gap flips sign across runs). Our scope is the weight-frozen, NL-state regime; we do not compare to code- or weight-updating self-improvement. The strict gate guarantees safety on held-out val, not on every test draw when val is small.

11 Conclusion

Apples-to-apples against six classic and recent context-evolution methods on one shared backbone, no NL artifact universally wins, and unguarded evolution is unsafe. RSEA’s contribution is a strict held-out selection gate over a complementary three-layer state: it yields significant gains where strategy is the bottleneck (ALFWorld), is best overall with retry, and – unlike the baselines – never significantly regresses anywhere. We release the harness, baseline re-implementations, and manifests to support faithful comparison.

References

  • Agrawal et al. (2025) L. A. Agrawal et al. GEPA: reflective prompt evolution can outperform reinforcement learning. arXiv preprint arXiv:2507.19457. Cited by: §2, §3.
  • Cai et al. (2025) H. Cai, B. Shen, L. Jin, L. Hu, and X. Fan Does tone change the answer? evaluating prompt politeness effects on modern llms: gpt, gemini, llama. arXiv preprint arXiv:2512.12812. Cited by: §2.
  • Chen and Zeng (2025) X. Chen and M. Zeng Prototype conditioned generative replay for continual learning in NLP. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), pp. 12754–12770. Cited by: §2.
  • Fang et al. (2025) Z. Fang, Z. Liu, J. Liu, H. Chen, Y. Zeng, S. Huang, Z. Chen, L. Chen, S. Zhang, and F. Zhao DualVLA: building a generalizable embodied agent via partial decoupling of reasoning and action. arXiv preprint arXiv:2511.22134. Cited by: §2.
  • Fernando et al. (2023) C. Fernando, D. Banarse, H. Michalewski, S. Osindero, and T. Rocktäschel Promptbreeder: self-referential self-improvement via prompt evolution. arXiv preprint arXiv:2309.16797. Cited by: §2.
  • Han et al. (2026) R. Han, Z. Fang, X. Sun, Y. Ma, Z. Wang, Y. Zeng, Z. Chen, L. Chen, W. Huang, W. Xu, et al. UniCorn: towards self-improving unified multimodal models through self-generated supervision. arXiv preprint arXiv:2601.03193. Cited by: §2.
  • Hu et al. (2024) S. Hu, C. Lu, and J. Clune Automated design of agentic systems. arXiv preprint arXiv:2408.08435. Cited by: §2.
  • Huang et al. (2025) S. Huang, Z. Fang, Z. Chen, S. Yuan, J. Ye, Y. Zeng, L. Chen, Q. Mao, and F. Zhao CRITICTOOL: evaluating self-critique capabilities of large language models in tool-calling error scenarios. arXiv preprint arXiv:2506.13977. Cited by: §2.
  • Huang et al. (2022) W. Huang, P. Abbeel, D. Pathak, and I. Mordatch Language models as zero-shot planners: extracting actionable knowledge for embodied agents. In International Conference on Machine Learning (ICML), Cited by: §2.
  • Khattab et al. (2024) O. Khattab, A. Singhvi, P. Maheshwari, Z. Zhang, et al. DSPy: compiling declarative language model calls into self-improving pipelines. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • Lan et al. (2025a) G. Lan, H. A. Inan, S. Abdelnabi, J. Kulkarni, L. Wutschitz, R. Shokri, C. G. Brinton, and R. Sim Contextual integrity in LLMs via reasoning and reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Lan et al. (2025b) G. Lan, S. Zhang, T. Wang, Y. Zhang, D. Zhang, X. Wei, X. Pan, H. Zhang, D. Han, and C. G. Brinton MaPPO: maximum a posteriori preference optimization with prior knowledge. arXiv preprint arXiv:2507.21183. Cited by: §2.
  • Lan et al. (2026a) Q. Lan, J. I. Choi, and Q. Tian Visual detector compression via location-aware discriminant analysis. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 3546–3555. Cited by: §2.
  • Lan et al. (2026b) Q. Lan, Y. Hsu, N. S. Khan, and X. Jiang ReCo-KD: region- and context-aware knowledge distillation for efficient 3d medical image segmentation. arXiv preprint arXiv:2601.08301. Cited by: §2.
  • Lan and Tian (2025) Q. Lan and Q. Tian ACAM-KD: adaptive and cooperative attention masking for knowledge distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 3957–3966. Cited by: §2.
  • Li et al. (2026a) F. Li, J. Wu, T. Fu, D. Li, H. Wan, W. Zhou, and M. Kan What’s left unsaid? detecting and correcting misleading omissions in multimodal news previews. arXiv preprint arXiv:2601.05563. Cited by: §2.
  • Li et al. (2025a) F. Li, J. Wu, C. He, and W. Zhou CMIE: combining mllm insights with external evidence for explainable out-of-context misinformation detection. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 9342–9354. Cited by: §2.
  • Li et al. (2025b) L. Li, Z. Zhou, J. Hao, J. K. Liu, Y. Miao, W. Pang, X. Tan, W. Chu, Z. Wang, S. Pan, et al. The choice of divergence: a neglected key to mitigating diversity collapse in reinforcement learning with verifiable reward. arXiv preprint arXiv:2509.07430. Cited by: §2.
  • Li et al. (2026b) L. Li, Z. Zhou, J. Long, P. Liu, W. Xu, Z. Wang, S. Pan, and C. Qu SQL-ASTRA: alleviating sparse feedback in agentic sql via column-set matching and trajectory aggregation. External Links: 2603.16161, Link Cited by: §2.
  • Li et al. (2025c) Y. Li, T. Lan, and Z. Qi INSPO: unlocking intrinsic self-reflection for llm preference optimization. arXiv preprint arXiv:2512.23126. Cited by: §2.
  • Li et al. (2026c) Y. Li, T. Lan, and Z. Qi When right meets wrong: bilateral context conditioning with reward-confidence correction for grpo. arXiv preprint arXiv:2603.13134. Cited by: §2.
  • Li et al. (2026d) Y. Li, R. Miao, Z. Qi, and T. Lan ARISE: agent reasoning with intrinsic skill evolution in hierarchical reinforcement learning. arXiv preprint arXiv:2603.16060. Cited by: §2.
  • Lian et al. (2025) S. Lian, Y. Wu, J. Ma, Y. Ding, Z. Song, B. Chen, X. Zheng, and H. Li UI-AGILE: advancing gui agents with effective reinforcement learning and precise inference-time grounding. arXiv preprint arXiv:2507.22025. Cited by: §2.
  • Liu et al. (2026) W. Liu, H. Wu, Y. Kuang, X. Han, T. Zhong, J. Feng, and W. Lu Automated optimization modeling via a localizable error-driven perspective. arXiv preprint arXiv:2602.11164. Cited by: §2.
  • Lu et al. (2026) J. Lu, Z. Kong, Y. Wang, R. Fu, H. Wan, C. Yang, W. Lou, H. Sun, L. Wang, Y. Jiang, et al. Beyond static tools: test-time tool evolution for scientific reasoning. arXiv preprint arXiv:2601.07641. Cited by: §2.
  • Madaan et al. (2023) A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, et al. Self-refine: iterative refinement with self-feedback. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Mialon et al. (2023) G. Mialon, C. Fourrier, C. Swift, T. Wolf, Y. LeCun, and T. Scialom GAIA: a benchmark for general ai assistants. arXiv preprint arXiv:2311.12983. Cited by: §2.
  • Opsahl-Ong et al. (2024) K. Opsahl-Ong, M. J. Ryan, J. Purtell, D. Broman, C. Potts, M. Zaharia, and O. Khattab Optimizing instructions and demonstrations for multi-stage language model programs. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Cited by: §2.
  • Packer et al. (2023) C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez MemGPT: towards llms as operating systems. arXiv preprint arXiv:2310.08560. Cited by: §2.
  • Park et al. (2023) J. S. Park, J. C. O’Brien, C. J. Cai, M. R. Morris, P. Liang, and M. S. Bernstein Generative agents: interactive simulacra of human behavior. In ACM Symposium on User Interface Software and Technology (UIST), Cited by: §2.
  • Qu et al. (2026) C. Qu, S. Dai, H. Cai, J. Xu, S. Wang, and D. Yin MatchTIR: fine-grained supervision for tool-integrated reasoning via bipartite matching. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL), Cited by: §2.
  • Qu et al. (2025a) C. Qu, S. Dai, X. Wei, H. Cai, S. Wang, D. Yin, J. Xu, and J. Wen From exploration to mastery: enabling llms to master tools via self-driven interactions. In The Thirteenth International Conference on Learning Representations (ICLR), External Links: Link Cited by: §2.
  • Qu et al. (2025b) C. Qu, S. Dai, X. Wei, H. Cai, S. Wang, D. Yin, J. Xu, and J. Wen Tool learning with large language models: a survey. Frontiers of Computer Science 19 (8), pp. 198343. Cited by: §2.
  • Schick et al. (2023) T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, L. Zettlemoyer, N. Cancedda, and T. Scialom Toolformer: language models can teach themselves to use tools. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Shinn et al. (2023) N. Shinn, F. Cassano, E. Berman, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §3.
  • Shridhar et al. (2021) M. Shridhar, X. Yuan, M. Côté, Y. Bisk, A. Trischler, and M. Hausknecht ALFWorld: aligning text and embodied environments for interactive learning. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • Song et al. (2025) H. Song, D. Qu, Y. Yao, Q. Chen, Q. Lv, Y. Tang, M. Shi, G. Ren, M. Yao, B. Zhao, et al. Hume: introducing system-2 thinking in visual-language-action model. arXiv preprint arXiv:2505.21432. Cited by: §2.
  • Su (2026) Y. Su Agentic-SQL taxonomy: a survey of autonomous and interactive text-to-SQL with llms. External Links: Document Cited by: §2.
  • Sumers et al. (2024) T. R. Sumers, S. Yao, K. Narasimhan, and T. L. Griffiths Cognitive architectures for language agents. Transactions on Machine Learning Research (TMLR). Cited by: §2.
  • Suzgun et al. (2025) M. Suzgun, M. Yuksekgonul, F. Bianchi, D. Jurafsky, and J. Zou Dynamic cheatsheet: test-time learning with adaptive memory. arXiv preprint arXiv:2504.07952. Cited by: §2, §3.
  • Trivedi et al. (2024) H. Trivedi, T. Khot, M. Hartmann, R. Manku, V. Dong, E. Li, S. Gupta, A. Sabharwal, and N. Balasubramanian AppWorld: a controllable world of apps and people for benchmarking interactive coding agents. In Annual Meeting of the Association for Computational Linguistics (ACL), Cited by: §2.
  • Wang et al. (2023) G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar Voyager: an open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291. Cited by: §2.
  • Wang et al. (2024a) L. Wang, C. Ma, X. Feng, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science. Cited by: §2.
  • Wang et al. (2024b) Z. Z. Wang, J. Mao, D. Fried, and G. Neubig Agent workflow memory. arXiv preprint arXiv:2409.07429. Cited by: §2, §3.
  • Wu et al. (2025) H. Wu, H. Li, and Y. Su Bridging the perception-cognition gap: re-engineering SAM2 with hilbert-mamba for robust vlm-based medical diagnosis. In 2025 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pp. 4275–4278. External Links: Document Cited by: §2.
  • Xie et al. (2026a) Z. Xie, X. Liu, B. Zhang, Y. Lin, S. Cai, and T. Jin HVD: human vision-driven video representation learning for text-video retrieval. arXiv preprint arXiv:2601.16155. Cited by: §2.
  • Xie et al. (2025) Z. Xie, C. Wang, Y. Wang, S. Cai, S. Wang, and T. Jin Chat-driven text generation and interaction for person retrieval. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 5259–5270. Cited by: §2.
  • Xie et al. (2026b) Z. Xie, B. Zhang, Y. Lin, and T. Jin Delving deeper: hierarchical visual perception for robust video-text retrieval. arXiv preprint arXiv:2601.12768. Cited by: §2.
  • Xie (2026) Z. Xie CONQUER: context-aware representation with query enhancement for text-based person search. arXiv preprint arXiv:2601.18625. Cited by: §2.
  • Xu et al. (2024) Y. Xu, F. Tang, J. Cao, X. Kong, Y. Zhang, J. Li, O. Deussen, and T. Lee Headrouter: a training-free image editing framework for mm-dits by adaptively routing attention heads. ACM Transactions on Graphics. Cited by: §2.
  • Yang et al. (2024) C. Yang, X. Wang, Y. Lu, H. Liu, Q. V. Le, D. Zhou, and X. Chen Large language models as optimizers. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • Yang et al. (2026a) S. Yang, C. Han, S. Wang, Y. Li, Y. Ding, and E. Hovy Toward understanding misalignment in LLM agents: a survey of taxonomy, causes, mitigation, and evaluation. Note: ACL ARR 2026 External Links: Document, Link Cited by: §2.
  • Yang et al. (2026b) S. Yang, S. C. Han, Y. Ding, S. Wang, and E. Hovy ToolTree: efficient llm agent tool planning via dual-feedback monte carlo tree search and bidirectional pruning. Note: ICLR 2026 External Links: 2603.12740 Cited by: §2.
  • Yang et al. (2026c) S. Yang, S. C. Han, X. Ma, Y. Li, M. R. Ghasemi Madani, and E. Hovy EvoTool: self-evolving tool-use policy optimization in LLM agents via blame-aware mutation and diversity-aware selection. Note: ACL 2026 External Links: 2603.04900 Cited by: §2.
  • Yao et al. (2022) S. Yao, H. Chen, J. Yang, and K. Narasimhan WebShop: towards scalable real-world web interaction with grounded language agents. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Yao et al. (2024) S. Yao, N. Shinn, P. Razavi, and K. Narasimhan τ\tau-bench: a benchmark for tool-agent-user interaction in real-world domains. arXiv preprint arXiv:2406.12045. Cited by: §2.
  • Yao et al. (2023a) S. Yao, D. Yu, J. Zhao, I. Shafran, T. L. Griffiths, Y. Cao, and K. Narasimhan Tree of thoughts: deliberate problem solving with large language models. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Yao et al. (2023b) S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao ReAct: synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • Zelikman et al. (2022) E. Zelikman, Y. Wu, J. Mu, and N. D. Goodman STaR: bootstrapping reasoning with reasoning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
  • Zeng et al. (2025a) S. Zeng, X. Chang, M. Xie, X. Liu, Y. Bai, Z. Pan, M. Xu, and X. Wei FutureSightDrive: thinking visually with spatio-temporal cot for autonomous driving. arXiv preprint arXiv:2505.17685. Cited by: §2.
  • Zeng et al. (2025b) S. Zeng, D. Qi, X. Chang, F. Xiong, S. Xie, X. Wu, S. Liang, M. Xu, and X. Wei JanusVLN: decoupling semantics and spatiality with dual implicit memory for vision-language navigation. arXiv preprint arXiv:2509.22548. Cited by: §2.
  • Zeng et al. (2026) Y. Zeng, W. Huang, Z. Fang, S. Chen, Y. Shen, Y. Cai, X. Wang, Z. Yin, L. Chen, Z. Chen, et al. Vision-deepresearch benchmark: rethinking visual and textual search for multimodal large language models. arXiv preprint arXiv:2602.02185. Cited by: §2.
  • Zhang et al. (2024a) L. Zhang, R. Awal, and A. Agrawal Contrasting intra-modal and ranking cross-modal hard negatives to enhance visio-linguistic compositional understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 13774–13784. Cited by: §2.
  • Zhang et al. (2025a) L. Zhang, B. Wang, X. Qiu, S. Reddy, and A. Agrawal Rearank: reasoning re-ranking agent via reinforcement learning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 2458–2471. Cited by: §2.
  • Zhang et al. (2024b) L. Zhang, Y. Wu, Q. Yang, and J. Nie Exploring the best practices of query expansion with large language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 1872–1883. Cited by: §2.
  • Zhang et al. (2025b) L. Zhang, Q. Yang, and A. Agrawal Assessing and learning alignment of unimodal vision and language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14604–14614. Cited by: §2.
  • Zhang et al. (2025c) Q. Zhang C. Hu et al. Agentic context engineering: evolving contexts for self-improving language models. arXiv preprint arXiv:2510.04618. Cited by: §2, §3.
  • Zhang et al. (2026a) X. Zhang, Y. Zhang, Z. Chen, J. Yu, W. Yang, and Z. Song Logical phase transitions: understanding collapse in llm logical reasoning. arXiv preprint arXiv:2601.02902. Cited by: §2.
  • Zhang et al. (2026b) Y. Zhang, Y. Ai, Z. Ying, Q. Mi, J. Yu, W. Yang, and Z. Song Coupling macro dynamics and micro states for long-horizon social simulation. External Links: 2604.05516, Link Cited by: §2.
  • Zhang et al. (2025d) Y. Zhang, Z. Song, H. Zhou, W. Ren, Y. P. Chen, J. Yu, and W. Yang GA-S3: comprehensive social network simulation with group agents. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 8950–8970. Cited by: §2.
  • Zhang et al. (2025e) Y. Zhang, X. Zhang, J. Sheng, W. Li, J. Yu, Y. P. Chen, W. Yang, and Z. Song From ambiguity to verdict: a semiotic-grounded multi-perspective agent for llm logical reasoning. arXiv preprint arXiv:2509.24765. Cited by: §2.
  • Zhang et al. (2025f) Z. Zhang, Z. Chen, H. Zhu, Z. Chen, N. Du, and X. Li ToolExpNet: optimizing multi-tool selection in LLMs with similarity and dependency-aware experience networks. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 15706–15722. Cited by: §2.
  • Zhang et al. (2026c) Z. Zhang, Z. Chen, M. Li, Z. Tu, and X. Li RLVMR: reinforcement learning with verifiable meta-reasoning rewards for robust long-horizon agents. In The Fourteenth International Conference on Learning Representations (ICLR), External Links: Link Cited by: §2.
  • Zhao et al. (2024) A. Zhao, D. Huang, Q. Xu, M. Lin, Y. Liu, and G. Huang ExpeL: llm agents are experiential learners. In AAAI Conference on Artificial Intelligence, Cited by: §2.
  • Zhou et al. (2024a) X. Zhou, O. Wu, and N. Yang Adversarial training with anti-adversaries. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 46 (12), pp. 10210–10227. Cited by: §2.
  • Zhou et al. (2022) X. Zhou, O. Wu, W. Zhu, and Z. Liang Understanding difficulty-based sample weighting with a universal difficulty measure. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases (ECML-PKDD), pp. 68–84. Cited by: §2.
  • Zhou et al. (2024b) X. Zhou, W. Ye, Z. Lee, R. Xie, and S. Zhang Boosting model resilience via implicit adversarial data augmentation. arXiv preprint arXiv:2404.16307. Cited by: §2.
  • Zhou et al. (2023) Y. Zhou, A. I. Muresanu, Z. Han, K. Paster, S. Pitis, H. Chan, and J. Ba Large language models are human-level prompt engineers. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • Zhu et al. (2025a) C. Zhu, Y. Lin, S. Chen, Y. Wang, and J. Lin MedEyes: learning dynamic visual focus for medical progressive diagnosis. arXiv preprint arXiv:2511.22018. Cited by: §2.
  • Zhu et al. (2025b) C. Zhu, Y. Lin, J. Shao, J. Lin, and Y. Wang Pathology-aware prototype evolution via LLM-driven semantic disambiguation for multicenter diabetic retinopathy diagnosis. In Proceedings of the 33rd ACM International Conference on Multimedia, pp. 9196–9205. Cited by: §2.

Appendix A Evolved states (qualitative)

The evolved three-layer states are interpretable, which lets us read why the method helps on ALFWorld and is neutral on the strong tool-use backbone.

ALFWorld (frozen best state).

Strategy: “Avoid repeating identical actions that return ‘Nothing happens.’; always take objects before placing; use desklamps for examining objects.” Skills: “if not (take <obj> from <recep>), go to another location and try again”; “use <desklamp> before examining objects”; “never repeat an identical action that returns ‘Nothing happens.’ ”. Playbook:pick_and_place: go to <recep> with <obj> \rightarrow take <obj> \rightarrow go to <recep> \rightarrow put <obj>”; analogous cool / heat sequences. These are precisely the failure modes of the 7B ReAct agent, and injecting them yields the significant ALFWorld gain.

τ\tau-bench retail (frozen best state).

Strategy: “Always authenticate user identity using email first; if not found, fall back to name + zip. Confirm all modifications/cancellations/exchanges with the user before any tool call. Never invent order/item IDs – retrieve and verify them. Only exchange delivered orders; for pending orders use modify_pending_order_items…” This is a faithful summary of the retail policy; the 30B agent already follows most of it from the wiki, so the held-out gain is neutral – consistent with our scope condition.

Appendix B Reproducibility

All methods share one locally served backbone and decoding budget; task and reflection LLMs are identical. We release the harness, the faithful re-implementations of all six baselines, the pre-registered task manifests, the evolve/val/eval splits, and per-task result JSONs. ALFWorld numbers are 5 seeds with paired McNemar over matched (task, seed) cells; transfer benchmarks use a seed-shuffled disjoint split with paired McNemar over tasks; ablations use the ALFWorld test set with temp-0.6 multi-seed decoding.