Recursive Self-Evolving Agents via Held-Out Selection
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, -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 ( vs. ReAct , McNemar ; 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 () yet collapses on WebShop (score vs. ReAct ); 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 -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 () to a WebShop score of versus the ReAct baseline’s , 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. RSEA 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-safe (§4). (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 (§6–7). (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 5 seeds, 7B) the single-pass evolved prior significantly beats ReAct, GEPA, and AWM, and RSEA is best overall (). (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 ( in-sample, a -point drop to test).
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 -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 and a benchmark of tasks, context adaptation seeks an artifact (a string injected into the prompt) that improves without touching . Methods differ in (i) the form of , (ii) the update operator that edits from execution feedback, and (iii) the selection rule that decides which to keep. Table 1 casts the methods we study in this 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.
| 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 : (1) strategy, an imperative natural-language preamble ( 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, 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 and val set . Generation rolls the current state out on , 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 . 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 is scored on the held-out . We accept it as the new working state if it does not regress on (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, -bench) and the benchmark’s dense reward where success is sparse (WebShop).
RSEA: evolution retry.
The frozen evolved prior is orthogonal to per-task retry. RSEA injects 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.
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, -bench, WebShop), via vLLM across 4A100, 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) -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” () 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/-bench) or mean dense score (WebShop), multi-seed mean95% 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 helps (§8).
Table 2 reports the full 10-method comparison. The single-pass evolved prior (RSEA, ) significantly improves over vanilla ReAct (, McNemar ) and over the recent single-pass baselines GEPA (, ) and AWM (, ), and ties the strongest single-pass baselines ACE (, ) and Dynamic Cheatsheet (, ). 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, RSEA attains the best overall success (), significantly above ReAct (), single-pass RSEA (), and every no-evolution baseline, and trends above the strongest retry baselines Reflexion (, ), ACE (, ), and GEPA (, ).
| Single-pass | Succ. (%) | + retry | Succ. (%) |
| ReAct | Reflexion | ||
| GEPA | GEPA | ||
| AWM | ACE | ||
| ACE | |||
| Dynamic Cheatsheet | |||
| RSEA (ours) | RSEA (ours) |
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 ( 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 – points from the playbook’s take-before-place procedures. The single regression (clean, 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.
| 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 |
| RSEA | 44.4 | 67.1 | 99.2 | 87.0 | 88.6 | 79.4 |
7 Transfer to GAIA, -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 (-bench , WebShop ): 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 ReAct ( vs. ); RSEA is statistically tied with ReAct on -bench, WebShop, and GAIA (McNemar ). GAIA in particular is within run-to-run web noise: two independent evaluations of the same frozen states disagree on the sign of the -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 () yet collapses on WebShop (score vs. ReAct ) and is worst on -bench () – 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; -bench val ) and the strict gate rejects all regressive candidates where there is not (WebShop).
| Method | ALFWorld | GAIA | -bench | WebShop |
| 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) | 13.3 | 40.0 | 0.437 |
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 (): each layer on its own lifts success to –, with the skills and playbook layers (the concrete sub-routines and procedures) carrying most of the benefit ( each). Combining layers does not strictly improve further at this scale (full state , 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 in-sample selection score but only on test – a -point train–test gap – versus held-out RSEA’s ( 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 vs. ), 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 () 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 -bench.
| 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 |
| 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 generations of (evolve rollout + one rewrite + val rollout); the rewrite is a single call per generation, so the meta-overhead is calls – e.g. the -bench evolution used meta + selection calls in total. At inference RSEA adds only the rendered preamble ( 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 (-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 -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
- GEPA: reflective prompt evolution can outperform reinforcement learning. arXiv preprint arXiv:2507.19457. Cited by: §2, §3.
- Does tone change the answer? evaluating prompt politeness effects on modern llms: gpt, gemini, llama. arXiv preprint arXiv:2512.12812. Cited by: §2.
- 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.
- DualVLA: building a generalizable embodied agent via partial decoupling of reasoning and action. arXiv preprint arXiv:2511.22134. Cited by: §2.
- Promptbreeder: self-referential self-improvement via prompt evolution. arXiv preprint arXiv:2309.16797. Cited by: §2.
- UniCorn: towards self-improving unified multimodal models through self-generated supervision. arXiv preprint arXiv:2601.03193. Cited by: §2.
- Automated design of agentic systems. arXiv preprint arXiv:2408.08435. Cited by: §2.
- CRITICTOOL: evaluating self-critique capabilities of large language models in tool-calling error scenarios. arXiv preprint arXiv:2506.13977. Cited by: §2.
- Language models as zero-shot planners: extracting actionable knowledge for embodied agents. In International Conference on Machine Learning (ICML), Cited by: §2.
- DSPy: compiling declarative language model calls into self-improving pipelines. In International Conference on Learning Representations (ICLR), Cited by: §2.
- Contextual integrity in LLMs via reasoning and reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- MaPPO: maximum a posteriori preference optimization with prior knowledge. arXiv preprint arXiv:2507.21183. Cited by: §2.
- 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.
- ReCo-KD: region- and context-aware knowledge distillation for efficient 3d medical image segmentation. arXiv preprint arXiv:2601.08301. Cited by: §2.
- 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.
- What’s left unsaid? detecting and correcting misleading omissions in multimodal news previews. arXiv preprint arXiv:2601.05563. Cited by: §2.
- 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.
- 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.
- SQL-ASTRA: alleviating sparse feedback in agentic sql via column-set matching and trajectory aggregation. External Links: 2603.16161, Link Cited by: §2.
- INSPO: unlocking intrinsic self-reflection for llm preference optimization. arXiv preprint arXiv:2512.23126. Cited by: §2.
- When right meets wrong: bilateral context conditioning with reward-confidence correction for grpo. arXiv preprint arXiv:2603.13134. Cited by: §2.
- ARISE: agent reasoning with intrinsic skill evolution in hierarchical reinforcement learning. arXiv preprint arXiv:2603.16060. Cited by: §2.
- UI-AGILE: advancing gui agents with effective reinforcement learning and precise inference-time grounding. arXiv preprint arXiv:2507.22025. Cited by: §2.
- Automated optimization modeling via a localizable error-driven perspective. arXiv preprint arXiv:2602.11164. Cited by: §2.
- Beyond static tools: test-time tool evolution for scientific reasoning. arXiv preprint arXiv:2601.07641. Cited by: §2.
- Self-refine: iterative refinement with self-feedback. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- GAIA: a benchmark for general ai assistants. arXiv preprint arXiv:2311.12983. Cited by: §2.
- Optimizing instructions and demonstrations for multi-stage language model programs. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Cited by: §2.
- MemGPT: towards llms as operating systems. arXiv preprint arXiv:2310.08560. Cited by: §2.
- Generative agents: interactive simulacra of human behavior. In ACM Symposium on User Interface Software and Technology (UIST), Cited by: §2.
- 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.
- 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.
- Tool learning with large language models: a survey. Frontiers of Computer Science 19 (8), pp. 198343. Cited by: §2.
- Toolformer: language models can teach themselves to use tools. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- Reflexion: language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §3.
- ALFWorld: aligning text and embodied environments for interactive learning. In International Conference on Learning Representations (ICLR), Cited by: §2.
- Hume: introducing system-2 thinking in visual-language-action model. arXiv preprint arXiv:2505.21432. Cited by: §2.
- Agentic-SQL taxonomy: a survey of autonomous and interactive text-to-SQL with llms. External Links: Document Cited by: §2.
- Cognitive architectures for language agents. Transactions on Machine Learning Research (TMLR). Cited by: §2.
- Dynamic cheatsheet: test-time learning with adaptive memory. arXiv preprint arXiv:2504.07952. Cited by: §2, §3.
- 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.
- Voyager: an open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291. Cited by: §2.
- A survey on large language model based autonomous agents. Frontiers of Computer Science. Cited by: §2.
- Agent workflow memory. arXiv preprint arXiv:2409.07429. Cited by: §2, §3.
- 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.
- HVD: human vision-driven video representation learning for text-video retrieval. arXiv preprint arXiv:2601.16155. Cited by: §2.
- 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.
- Delving deeper: hierarchical visual perception for robust video-text retrieval. arXiv preprint arXiv:2601.12768. Cited by: §2.
- CONQUER: context-aware representation with query enhancement for text-based person search. arXiv preprint arXiv:2601.18625. Cited by: §2.
- Headrouter: a training-free image editing framework for mm-dits by adaptively routing attention heads. ACM Transactions on Graphics. Cited by: §2.
- Large language models as optimizers. In International Conference on Learning Representations (ICLR), Cited by: §2.
- 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.
- 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.
- 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.
- WebShop: towards scalable real-world web interaction with grounded language agents. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- -bench: a benchmark for tool-agent-user interaction in real-world domains. arXiv preprint arXiv:2406.12045. Cited by: §2.
- Tree of thoughts: deliberate problem solving with large language models. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- ReAct: synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), Cited by: §2.
- STaR: bootstrapping reasoning with reasoning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2.
- FutureSightDrive: thinking visually with spatio-temporal cot for autonomous driving. arXiv preprint arXiv:2505.17685. Cited by: §2.
- JanusVLN: decoupling semantics and spatiality with dual implicit memory for vision-language navigation. arXiv preprint arXiv:2509.22548. Cited by: §2.
- Vision-deepresearch benchmark: rethinking visual and textual search for multimodal large language models. arXiv preprint arXiv:2602.02185. Cited by: §2.
- 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.
- 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.
- 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.
- 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.
- Agentic context engineering: evolving contexts for self-improving language models. arXiv preprint arXiv:2510.04618. Cited by: §2, §3.
- Logical phase transitions: understanding collapse in llm logical reasoning. arXiv preprint arXiv:2601.02902. Cited by: §2.
- Coupling macro dynamics and micro states for long-horizon social simulation. External Links: 2604.05516, Link Cited by: §2.
- 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.
- From ambiguity to verdict: a semiotic-grounded multi-perspective agent for llm logical reasoning. arXiv preprint arXiv:2509.24765. Cited by: §2.
- 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.
- 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.
- ExpeL: llm agents are experiential learners. In AAAI Conference on Artificial Intelligence, Cited by: §2.
- Adversarial training with anti-adversaries. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 46 (12), pp. 10210–10227. Cited by: §2.
- 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.
- Boosting model resilience via implicit adversarial data augmentation. arXiv preprint arXiv:2404.16307. Cited by: §2.
- Large language models are human-level prompt engineers. In International Conference on Learning Representations (ICLR), Cited by: §2.
- MedEyes: learning dynamic visual focus for medical progressive diagnosis. arXiv preprint arXiv:2511.22018. Cited by: §2.
- 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> take <obj> go to <recep> 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.
-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.