通过特权回顾蒸馏实现自我进化智能体

arXiv cs.LG 论文

摘要

Meta AI 提出 Retrospective Self-Distillation (RSD),一个利用特权回顾性上下文让模型对自身动作重新打分并回灌策略的多轮自进化框架,在 ALFWorld、ScienceWorld 和 SearchQA 上相对基线提升最高 59.7%。

arXiv:2610.27495v1 Announce Type: new Abstract: Self-evolving agents aim to improve from their own experience rather than remain fixed after deployment, but naturally collected trajectories often lack ground-truth solutions or verifier-derived rewards. We introduce Retrospective Self-Distillation (RSD), a multi-round framework that turns such experience into dense supervision using privileged retrospective context. For each on-policy trajectory, the same underlying model acts as both student and teacher: the teacher re-scores the student's realized actions while conditioning on cross-task precedents and lessons, together with turn-level reflection and future hindsight from the completed trajectory. The resulting teacher distribution is distilled back into the policy through on-policy self-distillation. Across rounds, the experience bank grows and the retrospective context is refreshed, allowing the model, its data, and its supervision to co-evolve. We further introduce frontier-guided context-policy evolution, where a stronger frontier model proposes constrained edits to how privileged context is constructed. Across ALFWorld, ScienceWorld, and SearchQA with Qwen3-8B and Qwen3-14B, RSD improves performance by up to 59.7% relative to the base model, while frontier-guided context-policy evolution adds up to a further 44.7% relative improvement over a fixed context policy. These results show that naturally accumulated experience can be converted into persistent model capability without ground-truth trajectories or verifier-derived rewards for the core policy update.
查看原文
查看缓存全文

缓存时间: 2026/10/21 06:54

# Self-Evolving Agents through Privileged Retrospective Distillation
Source: [https://arxiv.org/html/2610.27495](https://arxiv.org/html/2610.27495)
Yuhang Zhou Yifan Wu Bo Peng Mingyi Wang Jiayi LiuXiangjun Fan Lizhu Zhang Zhuokai Zhao

Meta AI\{zyhang, zhuokai\}@meta\.com

###### Abstract

Self\-evolving agents aim to improve from their own experience rather than remaining fixed once deployed\. In practice, however, naturally collected agent trajectories often lack ground\-truth solutions or verifier\-derived rewards, making them difficult to learn from\. We observe that these trajectories become substantially more informative inretrospect\. When the agent takes an action, it knows only what has happened so far, but looking back after the trajectory ends, the same action can be judged with knowledge the agent lacked at that moment, including how the environment responded afterward and how related tasks in its accumulated experience succeeded or failed\. Based on this observation, we introduceRetrospective Self\-Distillation \(RSD\), a multi\-round self\-evolution framework in which the same model, given privileged retrospective context built from its own experience, acts as a teacher that re\-scores its own actions, and the resulting distribution is distilled back into the policy through on\-policy self\-distillation\. The privileged context combines cross\-task precedents and lessons with turn\-level reflection and future hindsight, allowing both successful and imperfect trajectories to provide dense supervision\.RSDis also built to make this supervision improve alongside the agent\. Every round, precedents and lessons are re\-derived from the experience bank enlarged with the current policy’s trajectories, and reflection and hindsight are computed fresh for each new trajectory, so the teacher always scores the policy against its most recent experience\. We further introducefrontier\-guided context\-policy evolution, in which a stronger frontier model proposes edits to the context construction rules, for example how many precedents to retrieve or which components to include\. Across ALFWorld, ScienceWorld, and SearchQA with Qwen3\-8B and 14B,RSDimproves performance by up to59\.7%59\.7\\%relative over the base model, and frontier\-guided context\-policy evolution adds up to a further44\.7%44\.7\\%relative improvement over a fixed context policy\. These results show that agents can convert naturally accumulated experience into persistent model capability without ground\-truth trajectories or verifier\-derived rewards for the core policy update\.

## 1Introduction

Large language model \(LLM\) agents are increasingly capable of interacting with complex environments and completing multi\-turn tasks\. Yet the substantial interaction experience an agent accumulates during use rarely makes it better at future tasks, and this has motivated growing interest inself\-evolving agents, which aim to establish a closed\-loopdata flywheelwhere the current policy generates on\-policy interaction experience, learns from that experience, and produces increasingly useful data in subsequent rounds\([Gao et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib4)\)\. Prior approaches pursue this goal along two lines\. One evolves non\-parametric components such as prompts, workflows, memory, or tools\([Hu et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib8);[Hao et al\., 2026a](https://arxiv.org/html/2610.27495#bib.bib5)\)\. Experience improves future behavior in these systems, but the acquired capability is stored in the evolving scaffold rather than in the model, whose parameters remain fixed\([Lee et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib11)\)\. The other line adapts model parameters using successful trajectories, supervised learning, or reinforcement learning\([Zhai et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib34);[Meng et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib13)\)\. The improvement then persists in the model itself, but the update typically assumes supervision, such as verified successful trajectories or reliable rewards, that may not be naturally available during agent interaction\.

In practical settings, each task may yield only a single on\-policy trajectory, without a ground\-truth trajectory specifying what the agent should have done or a reliable verifier providing rewards for policy optimization\. Conventional supervised fine\-tuning therefore lacks direct target sequences, while verifier\-based reinforcement learning requires reliable rewards and may be sample\-inefficient when successful behavior must be discovered through additional exploration\([Wu et al\., 2026a](https://arxiv.org/html/2610.27495#bib.bib24)\)\. Restricting training to successful trajectories further discards much of the already collected experience, including failures that may contain informative environment feedback\. This raises a central question:How can an agent continuously improve from its accumulated interaction experience without requiring ground\-truth trajectories or verifier\-derived rewards for policy optimization?

Our key observation is that although such trajectories may lack explicit training targets, they become substantially more informative*after*the interaction has completed\. For the current task, downstream environment observations reveal the consequences of earlier decisions and provide hindsight unavailable when those actions were taken\. Across tasks, accumulated past experience provides concrete precedents, reusable strategies, and recurring failure patterns\.

Based on this observation, we introduceRSD, a multi\-round self\-evolution framework that couples on\-policy experience collection with privileged retrospective distillation\. At each round, the current policy generates new trajectories and incorporates them into an accumulated experience bank\. For every interaction turn,RSDthen constructs a*privileged retrospective*view of the agent’s decision, combining*precedents*retrieved from related past experience,*lessons*distilled from accumulated successes and failures,*reflection*on the current decision, and*future hindsight*from downstream interaction and environment feedback\. This information asymmetry, between what the agent saw when acting and what is available afterward, naturally matches on\-policy self\-distillation \(OPSD\)\([Zhao et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib37)\): the same underlying model acts as both student and teacher, while the teacher additionally conditions on privileged information unavailable to the student during rollout\. Existing formulations construct this privileged view from ground\-truth solutions\([Zhao et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib37);[Xu et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib27)\), whereasRSDdraws it entirely from the agent’s own evolving interaction experience\. The privileged teacher retrospectively re\-scores the student’s realized actions under this richer view, and the resulting supervision is distilled back into the policy\. As this process repeats, the model, its on\-policy experience, and the privileged context constructed from that experience evolve together\. We further explore a stronger\-access extension,*frontier\-guided context\-policy evolution*, in which a frontier model also adapts how privileged context is constructed, yielding a self\-evolution loop over both model capability and retrospective supervision\.

We evaluateRSDwith Qwen3\-8B and Qwen3\-14B\([Yang et al\., 2025a](https://arxiv.org/html/2610.27495#bib.bib28)\)across ALFWorld\([Shridhar et al\., 2020](https://arxiv.org/html/2610.27495#bib.bib19)\), ScienceWorld\([Wang et al\., 2022](https://arxiv.org/html/2610.27495#bib.bib22)\), and SearchQA\([Jin et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib10)\)\.RSDachieves up to a 59\.7% relative improvement over the base model, while frontier\-guided context\-policy evolution provides a further relative gain of up to44\.7%44\.7\\%over the fixed context policy\. We also find strong gains on ALFWorld, whereas SearchQA remains within a narrow performance band across rounds, providing a complementary boundary case for behavioral self\-evolution\.

Our main contributions are threefold:

- •We formulate a practical self\-evolving setting that turns naturally generated on\-policy interaction experience into a recurrent data flywheel without requiring ground\-truth trajectories or verifier\-derived rewards for the core policy update\.
- •We introduce privileged retrospective distillation from accumulated experience and trajectory hindsight, and further extend it with frontier\-guided context\-policy evolution so that both the model and its retrospective supervision can evolve across rounds\.
- •Across ALFWorld, ScienceWorld, and SearchQA with Qwen3\-8B and Qwen3\-14B,RSDachieves up to59\.7%59\.7\\%relative improvement over the base model, while frontier\-guided context\-policy evolution yields up to an additional44\.7%44\.7\\%relative gain over the fixed context policy\.

## 2Preliminaries

### 2\.1Self\-Evolving Agents

We consider a multi\-turn agent that improves through a sequence of self\-evolution rounds\. At roundrr, the agent is parameterized by a policyπ\(r\)\\pi^\{\(r\)\}\. Given a taskxx, the agent interacts with the environment over multiple turns\. At turnii, it observes the interaction historyhih\_\{i\}and generates an actionai∼π\(r\)\(⋅∣hi\),a\_\{i\}\\sim\\pi^\{\(r\)\}\(\\cdot\\mid h\_\{i\}\),after which the environment returns a new observationoi\+1o\_\{i\+1\}\. The resulting trajectory is denoted as

τ=\(x,o1,a1,o2,a2,…,oT\+1\),τ∼π\(r\)\.\\tau=\(x,o\_\{1\},a\_\{1\},o\_\{2\},a\_\{2\},\\ldots,o\_\{T\+1\}\),\\qquad\\tau\\sim\\pi^\{\(r\)\}\.Collecting trajectories over a set of tasks produces the round\-rron\-policy experience𝒟\(r\)\\mathcal\{D\}^\{\(r\)\}\.

We focus on a practical self\-evolution setting in which each sampled task produces asingleon\-policy trajectory, rather than repeated attempts followed by success\-based selection\. We further assumeno ground\-truth trajectories or verifier\-derived rewardsfor policy optimization, requiring the agent to extract useful supervision directly from its naturally collected interaction experience\.

A self\-evolving agent iteratively updates its policy using experience generated by its current policy,

π\(r\+1\)=𝒰⁡\(π\(r\),𝒟\(r\)\),𝒟\(r\)∼π\(r\),\\pi^\{\(r\+1\)\}=\\mathcal\{U\}\\\!\\left\(\\pi^\{\(r\)\},\\mathcal\{D\}^\{\(r\)\}\\right\),\\qquad\\mathcal\{D\}^\{\(r\)\}\\sim\\pi^\{\(r\)\},\(1\)where𝒰\\mathcal\{U\}denotes a generic self\-improvement procedure\. Becauseπ\(r\+1\)\\pi^\{\(r\+1\)\}induces a new interaction distribution, subsequent rounds continuously generate new on\-policy experience for further improvement\. This iterative coupling between policy evolution and experience generation provides the basis for a self\-evolving data flywheel\. In the following, we instantiate𝒰\\mathcal\{U\}using on\-policy self\-distillation\.

### 2\.2On\-Policy Self\-Distillation

On\-policy self\-distillation \(OPSD\) learns from trajectories generated by the current policy rather than from a fixed offline dataset\. The policyπ\(r\)\\pi^\{\(r\)\}generates an on\-policy trajectoryτ∼π\(r\)\\tau\\sim\\pi^\{\(r\)\}\. OPSD uses the same underlying model to instantiate both student and teacher, with the teacher additionally receiving privileged context unavailable when the action was generated\. For a multi\-turn agent, this privileged information is constructed at the turn level\. Letci\(r\)c\_\{i\}^\{\(r\)\}denote the privileged context for interaction turnii, and lethi,jh\_\{i,j\}denote the interaction history together with the generated action prefix preceding tokenjjat that turn\. The corresponding student and teacher distributions are

π\(r\)\(⋅∣hi,j\)andq\(r\)\(⋅∣hi,j,ci\(r\)\),\\pi^\{\(r\)\}\(\\cdot\\mid h\_\{i,j\}\)\\qquad\\text\{and\}\\qquad q^\{\(r\)\}\(\\cdot\\mid h\_\{i,j\},c\_\{i\}^\{\(r\)\}\),respectively, whereπ\(r\)\\pi^\{\(r\)\}andq\(r\)q^\{\(r\)\}represent the unprivileged and privileged views of the same underlying model\. The student is then trained to match the privileged teacher distribution on its own on\-policy states\. Aggregating token\-level supervision across interaction turns gives

ℒOPSD\(r\)=𝔼τ∼π\(r\)\[∑i∑jDKL\(q\(r\)\(⋅∣hi,j,ci\(r\)\)∥πθ\(⋅∣hi,j\)\)\]\.\\mathcal\{L\}\_\{\\mathrm\{OPSD\}\}^\{\(r\)\}=\\mathbb\{E\}\_\{\\tau\\sim\\pi^\{\(r\)\}\}\\\!\\left\[\\sum\_\{i\}\\sum\_\{j\}D\_\{\\mathrm\{KL\}\}\\left\(q^\{\(r\)\}\(\\cdot\\mid h\_\{i,j\},c\_\{i\}^\{\(r\)\}\)\\,\\\|\\,\\pi\_\{\\theta\}\(\\cdot\\mid h\_\{i,j\}\)\\right\)\\right\]\.\(2\)Hereπθ\\pi\_\{\\theta\}denotes the student under optimization, initialized fromπ\(r\)\\pi^\{\(r\)\}\. The sampled trajectories and the teacher distributionq\(r\)q^\{\(r\)\}are held fixed during the update, and the updated student is taken asπ\(r\+1\)\\pi^\{\(r\+1\)\}for the next round\. Because supervision is evaluated directly on the states visited by the current policy, OPSD can learn from imperfect and unsuccessful trajectories without requiring a ground\-truth action sequence for each state\.

## 3Retrospective Self\-Distillation \(RSD\)

![Refer to caption](https://arxiv.org/html/2610.27495v1/figures/method_overview.png)Figure 1:Overview ofRSD\. At self\-evolution roundrr, the current policyπ\(r\)\\pi^\{\(r\)\}first collects on\-policy interaction experience, which is incorporated into the accumulated experience bank\. Privileged retrospective context is then constructed from past experience: precedents and lessons, together with reflection and future hindsight from the completed current trajectory\. The same underlying model retrospectively re\-scores the student’s realized actions under this privileged view, and the resulting distribution is distilled back into the student to obtainπ\(r\+1\)\\pi^\{\(r\+1\)\}\. Repeating this process jointly evolves the policy, accumulated experience, and retrospective supervision\. In the stronger\-access extension, a frontier model additionally adapts the context\-construction policyϕ\(r\)\\phi^\{\(r\)\}across rounds\.Our goal is to build a self\-evolving training pipeline in which an agent repeatedly generates on\-policy interaction experience, learns from that experience, and uses the improved policy to produce increasingly useful data in subsequent rounds\. In the absence of ground\-truth trajectories or reliable verifier\-derived rewards, however, it is difficult to directly convert these rollouts into supervision through conventional supervised fine\-tuning \(SFT\) or reward\-based reinforcement learning \(RLVR\)\. Nevertheless, the collected experience contains rich information that becomes available retrospectively: for the current task, the completed trajectory provides downstream environment feedback and interaction outcomes, while previous tasks contribute accumulated successful and failed experiences\. These signals provide a richer view of the agent’s behavior than was available at action time\.

This observation naturally motivates OPSD\. Rather than requiring an external target trajectory or scalar reward, we construct privileged retrospective context from the agent’s accumulated experience and use it to re\-score the agent’s own on\-policy trajectory\. The resulting privileged teacher distribution provides dense supervision on exactly the states visited by the current policy, which is then distilled back into the agent to produce the next generation\. As this process repeats, the evolving policy generates new experience that refreshes the privileged context, forming a data flywheel between model capability, interaction experience, and retrospective supervision\. Algorithm[1](https://arxiv.org/html/2610.27495#alg1)in Appendix[C](https://arxiv.org/html/2610.27495#A3)summarizes the complete agent self\-evolving procedure\.

### 3\.1Self\-Evolution through Privileged Retrospective Distillation

An overview of the complete self\-evolution framework is shown in Fig\.[1](https://arxiv.org/html/2610.27495#S3.F1)\. Our self\-evolution pipeline alternates between on\-policy experience collection and model update across rounds\. We use this round\-based design so that each update is trained on trajectories sampled from a fixed current policy, after which the updated policy generates a refreshed on\-policy distribution for the next round\. At roundrr, the current policyπ\(r\)\\pi^\{\(r\)\}interacts with the environment and collects a new trajectory set𝒟\(r\)\\mathcal\{D\}^\{\(r\)\}\. We maintain an experience bankℬ\(r\)\\mathcal\{B\}^\{\(r\)\}containing all trajectories accumulated up to and including roundrr, including both successful and failed interactions:

ℬ\(r\)=ℬ\(r−1\)∪𝒟\(r\),ℬ\(0\)=∅\.\\mathcal\{B\}^\{\(r\)\}=\\mathcal\{B\}^\{\(r\-1\)\}\\cup\\mathcal\{D\}^\{\(r\)\},\\qquad\\mathcal\{B\}^\{\(0\)\}=\\emptyset\.\(3\)Thus,𝒟\(r\)\\mathcal\{D\}^\{\(r\)\}represents the newly collected on\-policy experience at roundrr, whileℬ\(r\)\\mathcal\{B\}^\{\(r\)\}provides the accumulated experience available for retrospective supervision in that round\.

#### Privileged Retrospective Context\.

For each trajectoryτ∈𝒟\(r\)\\tau\\in\\mathcal\{D\}^\{\(r\)\}and interaction turnii, we construct turn\-level privileged context

ci\(r\)=ℋ⁡\(P\(r\),L\(r\),Ri\(r\),Fi\(r\)\),c\_\{i\}^\{\(r\)\}=\\mathcal\{H\}\\left\(P^\{\(r\)\},L^\{\(r\)\},R\_\{i\}^\{\(r\)\},F\_\{i\}^\{\(r\)\}\\right\),\(4\)whereprecedentsP\(r\)P^\{\(r\)\}andlessonsL\(r\)L^\{\(r\)\}are derived from the accumulated experience, whilereflectionRi\(r\)R\_\{i\}^\{\(r\)\}andfuture hindsightFi\(r\)F\_\{i\}^\{\(r\)\}exploit information available after completing the current trajectory\.

Precedentsprovide concrete prior experiences that demonstrate useful behaviors for solving related tasks\. We first apply task\-specific heuristics to identify useful trajectories fromℬ\(r\)\\mathcal\{B\}^\{\(r\)\}, rank the resulting candidates by content\-token overlap with the current task goal, and retrieve the top\-nnas precedents \(see Appendix[B](https://arxiv.org/html/2610.27495#A2)for retrieval details\)\. These precedents complement the current trajectory with transferable action patterns observed in previous interactions\.

Lessonsprovide a more abstract view of accumulated experience\. For each task type, we expose selected successful and failed experiences of that type fromℬ\(r\)\\mathcal\{B\}^\{\(r\)\}to the current policy model and ask it to summarize reusable strategies and recurring failure patterns\. The lesson summary is generated once per task type and round; we suppress the task\-type index for notational simplicity:L\(r\)=Summarizeπ\(r\)⁡\(ℬ\(r\)\)\.L^\{\(r\)\}=\\operatorname\{Summarize\}\_\{\\pi^\{\(r\)\}\}\\\!\\left\(\\mathcal\{B\}^\{\(r\)\}\\right\)\.Unlike precedents, lessons compress experience into reusable abstractions and allow unsuccessful trajectories to contribute even when they are unsuitable as concrete demonstrations\.

The remaining two components are constructed retrospectively from the current trajectory\. At each turnii, the current policy model produces areflectionRi\(r\)=Reflectπ\(r\)⁡\(hi,τ\),R\_\{i\}^\{\(r\)\}=\\operatorname\{Reflect\}\_\{\\pi^\{\(r\)\}\}\(h\_\{i\},\\tau\),which uses the completed interaction to diagnose the realized decision and summarize what could have been done more effectively\. We further providefuture hindsightFi\(r\)=τ\>i,F\_\{i\}^\{\(r\)\}=\\tau\_\{\>i\},which directly exposes the downstream interaction following turnii, including subsequent environment feedback and outcome information\. Together, the four components provide the teacher with complementary cross\-trajectory experience and within\-trajectory hindsight that were unavailable to the acting policy at generation time\. The corresponding generation prompts are provided in Appendix[E](https://arxiv.org/html/2610.27495#A5)\.

#### Retrospective Distillation\.

Givenci\(r\)c\_\{i\}^\{\(r\)\}, we optimize the student using the OPSD objective in Eq\.[2](https://arxiv.org/html/2610.27495#S2.E2)\. For every action tokenjjat turnii, the teacher conditions on\(hi,j,ci\(r\)\)\(h\_\{i,j\},c\_\{i\}^\{\(r\)\}\), whereas the student observes onlyhi,jh\_\{i,j\}\. The teacher retrospectively re\-scores the student’s realized trajectory rather than generating a replacement trajectory, thereby providing dense supervision directly over the states visited byπ\(r\)\\pi^\{\(r\)\}\. After distillation, the updated student becomesπ\(r\+1\)\\pi^\{\(r\+1\)\}and is used to collect𝒟\(r\+1\)\\mathcal\{D\}^\{\(r\+1\)\}\.

#### Self\-Evolution Flywheel\.

The interaction between policy evolution and experience accumulation forms a recurrent data flywheel\. At each round,π\(r\)\\pi^\{\(r\)\}generates new trajectories𝒟\(r\)\\mathcal\{D\}^\{\(r\)\}, which expand the experience bank toℬ\(r\)\\mathcal\{B\}^\{\(r\)\}through Eq\.[3](https://arxiv.org/html/2610.27495#S3.E3)and refresh the precedentsP\(r\)P^\{\(r\)\}and lessonsL\(r\)L^\{\(r\)\}used for retrospective supervision\. Meanwhile, each newly collected trajectory provides fresh reflectionRi\(r\)R\_\{i\}^\{\(r\)\}and future hindsightFi\(r\)F\_\{i\}^\{\(r\)\}for its own retrospective supervision\. The resulting privileged context in Eq\.[4](https://arxiv.org/html/2610.27495#S3.E4)is distilled back into the policy, closing the flywheel between model evolution, accumulated experience, and privileged retrospective supervision\.

### 3\.2Frontier\-Guided Context\-Policy Evolution

The self\-evolution procedure above continually refreshes the contents of privileged context as new experience enters the bank, while keeping the context\-construction ruleℋ\\mathcal\{H\}fixed\. However, the most useful way to construct privileged supervision may itself change as the agent evolves\. We therefore consider a stronger\-access setting that assumes access to both a frontier model and an executable verifier or environment metric, and uses them to optimize the context\-construction policy\. Note that this external verifier is used only to evaluate context\-policy candidates and their realized post\-training performance; it does not provide rewards for optimizing the agent parameters, which continue to be updated solely through OPSD\.

We parameterize the fixed privileged\-context constructorℋ\\mathcal\{H\}in Eq\.[4](https://arxiv.org/html/2610.27495#S3.E4)by a context policyϕ\(r\)\\phi^\{\(r\)\}, yieldingℋϕ\(r\)\\mathcal\{H\}\_\{\\phi^\{\(r\)\}\}\. The policyϕ\(r\)\\phi^\{\(r\)\}controls how the privileged information sources are selected, composed, and injected into the teacher context\. We representϕ\(r\)\\phi^\{\(r\)\}as a declarative configuration over a constrained set of editable context choices, including precedent count and retrieval strategy, lesson usage, reflection, future hindsight, and the position at which privileged information is injected into the teacher context\. The frontier model may modify only these whitelisted choices, without modifying the model weights or training procedure\.

#### Frontier\-Guided Proposal\.

After completing evolution roundrr, the frontier model receives a compact summary of the current training state, including the current context policy, checkpoint task performance, and teacher re\-scoring statistics such as correction rate, teacher entropy, and top\-kkhit rate, with detailed definitions in Appendix[D\.6](https://arxiv.org/html/2610.27495#A4.SS6)\. Based on these diagnostics, it proposes a small set of candidate edits toϕ\(r\)\\phi^\{\(r\)\}\. To ground this search in empirical feedback, each candidate is evaluated with a lightweight no\-training probe: we instantiate the candidate privileged context on a small training\-distribution slice, provide it to the current model at inference time, and measure the corresponding task performance without updating model parameters\. The frontier model observes these probe scores and selects a candidateϕ~\(r\+1\)\\tilde\{\\phi\}^\{\(r\+1\)\}for the subsequent self\-evolution round\.

#### Retrospective Acceptance\.

The selected candidateϕ~\(r\+1\)\\tilde\{\\phi\}^\{\(r\+1\)\}is then used to construct privileged supervision during the subsequent full self\-evolution round\. After training, we evaluate the resulting checkpoint using the actual environment metric\. The proposed context policy is retained if its post\-training performance is no worse than the best previously accepted configuration \(up to a toleranceϵ\\epsilon\); otherwise, the context policy reverts to the last accepted configuration:

ϕ\(r\+1\)=\{ϕ~\(r\+1\),m\(r\+1\)≥mbest\(r\)−ϵ,ϕbest\(r\),otherwise,\\phi^\{\(r\+1\)\}=\\begin\{cases\}\\tilde\{\\phi\}^\{\(r\+1\)\},&m^\{\(r\+1\)\}\\geq m\_\{\\mathrm\{best\}\}^\{\(r\)\}\-\\epsilon,\\\\ \\phi\_\{\\mathrm\{best\}\}^\{\(r\)\},&\\text\{otherwise\},\\end\{cases\}\(5\)wherem\(r\+1\)m^\{\(r\+1\)\}denotes the realized post\-training environment performance\. Only the context policy is reverted; the model parameters continue evolving across rounds\.

#### Joint Evolution of Model and Context Policy\.

The frontier\-guided extension therefore adds a second adaptive process to the self\-evolution flywheel\. The core procedure evolves the model and the privileged information available from accumulated experience, while frontier guidance additionally evolves how that information is selected and organized:

π\(r\)→π\(r\+1\),ℬ\(r\)→ℬ\(r\+1\),ϕ\(r\)→ϕ\(r\+1\)\.\\pi^\{\(r\)\}\\rightarrow\\pi^\{\(r\+1\)\},\\qquad\\mathcal\{B\}^\{\(r\)\}\\rightarrow\\mathcal\{B\}^\{\(r\+1\)\},\\qquad\\phi^\{\(r\)\}\\rightarrow\\phi^\{\(r\+1\)\}\.This allows the retrospective supervision mechanism itself to adapt to the evolving agent rather than relying on a single hand\-designed context policy throughout training\.

## 4Experiments

### 4\.1Experimental Setup

#### Models\.

We conduct experiments with Qwen3\-8B and Qwen3\-14B\([Yang et al\., 2025a](https://arxiv.org/html/2610.27495#bib.bib28)\)as the base agent models to study self\-evolution across model scales\. For frontier\-guided context\-policy evolution, we use Claude\-Opus\-4\.8\([Anthropic, 2026](https://arxiv.org/html/2610.27495#bib.bib2)\)as the frontier model that proposes constrained modifications to the privileged harness configuration\. We access Claude through OpenCode\([OpenCode Contributors, 2026](https://arxiv.org/html/2610.27495#bib.bib14)\), which serves as the coding and orchestration harness for generating and applying the proposed configuration edits\.

#### Benchmarks and Evaluation Metrics\.

We evaluateRSDon three agent benchmarks: ALFWorld\([Shridhar et al\., 2020](https://arxiv.org/html/2610.27495#bib.bib19)\), ScienceWorld\([Wang et al\., 2022](https://arxiv.org/html/2610.27495#bib.bib22)\), and SearchQA\([Jin et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib10)\)\. Together, these benchmarks span embodied household interaction, scientific reasoning and environment manipulation, and search\-based question answering, providing diverse settings for evaluating iterative agent self\-evolution\. For ALFWorld, we report success rate \(SR\) on the valid seen and valid unseen splits\. For ScienceWorld, we report task success rate \(SR\) on the development set\. For SearchQA, we report exact match \(EM\)\. Additional evaluation details are provided in Appendix[B](https://arxiv.org/html/2610.27495#A2)\.

#### Baselines\.

We compareRSDagainst several representative adaptation and self\-improvement baselines\. Base model \(Base\) directly evaluates the pretrained agent without additional adaptation, while Rejection Sampling Fine\-Tuning \(RFT\)\([Yuan et al\., 2023](https://arxiv.org/html/2610.27495#bib.bib32)\)fine\-tunes the model on its own successful trajectories\. Ground\-Truth Supervised Fine\-Tuning \(GT\-SFT\) provides an oracle\-supervision reference by fine\-tuning on ground\-truth trajectories, while Self\-Taught Reasoner \(STaR\)\([Zelikman et al\., 2022](https://arxiv.org/html/2610.27495#bib.bib33)\)iteratively improves the model using self\-generated successful trajectories\. We additionally consider BoN\-16\+SFT, which samples 16 candidate trajectories per training instance, selects successful trajectories using ground truth, and fine\-tunes on the resulting data\. We further compare against Group Relative Policy Optimization \(GRPO\)\([Shao et al\., 2024](https://arxiv.org/html/2610.27495#bib.bib17)\), which performs verifier\-based reinforcement learning when an executable reward is available, and Ground\-Truth On\-Policy Self\-Distillation \(GT\-OPSD\)\([Zhao et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib37)\), which replaces our privileged context with gold\-reference agent trajectories during distillation\. For test\-time adaptation, we include Reflexion@2\([Shinn et al\., 2023](https://arxiv.org/html/2610.27495#bib.bib18)\), which allows a second attempt conditioned on reflection from the preceding interaction, and Harness\-at\-Inference \(Harness@Inf\), which directly supplies the privileged context to the base model without post\-training\.

#### Implementation Details\.

We run self\-evolution for 10 rounds, sampling 200 unique training instances in each round, and optimize the model using full\-parameter forward\-KL distillation with a learning rate of3×10−63\\times 10^\{\-6\}\. Unless otherwise specified,RSDis evaluated using the evolved student alone without privileged context at inference time; additional training, decoding, and task\-specific implementation details are provided in Appendix[B](https://arxiv.org/html/2610.27495#A2)\.

### 4\.2Main Results

Table 1:Main results across ALFWorld, ScienceWorld, and SearchQA\. For ALFWorld, SR is averaged over the valid\-seen and valid\-unseen splits, while for SearchQA, EM is averaged across the evaluated sub\-datasets\. Results are averaged over three seeds\.Bolddenotes the best result andunderlinedenotes the second\-best result in each setting\.Table[1](https://arxiv.org/html/2610.27495#S4.T1)summarizes the main results across three benchmarks and two model scales\. Overall,RSDconsistently improves over the corresponding base models and outperforms the evaluated self\-training baselines across all six model–benchmark settings\. On ALFWorld\-8B,RSDachieves an average SR of 76\.6, compared with 62\.9 for Base, 66\.9 for RFT, 65\.3 for STaR, and 71\.6 for BoN\-16\+SFT\. The gains are particularly pronounced on ScienceWorld, whereRSDimproves from 15\.6 to 23\.4 at 8B and from 12\.9 to 20\.6 at 14B, while even BoN\-16\+SFT reaches only 20\.8 and 20\.4 despite substantially increasing rollout exploration\. These results suggest that increasing search for successful trajectories and subsequently fine\-tuning on the selected experience does not by itself recover the benefit of privileged retrospective distillation\. In contrast, SearchQA exhibits a relatively narrow performance range across methods\. Our later analyses provide a consistent picture: performance remains largely flat across self\-evolution rounds \(Fig\.[4](https://arxiv.org/html/2610.27495#A4.F4)\), teacher corrections remain moderate but comparatively stable \(Appendix[D\.6](https://arxiv.org/html/2610.27495#A4.SS6)\), and privileged context retains inference\-time utility without being effectively internalized into the evolved model \(Appendix[D\.2](https://arxiv.org/html/2610.27495#A4.SS2)\)\. This suggests that the SearchQA boundary case reflects limited capacity to convert the available retrospective signal into persistent behavioral improvement, rather than simply an absence of useful contextual information\.

#### Comparison with Reward\-Driven and Oracle Baselines\.

RSDremains competitive with methods that rely on substantially stronger supervision\. On ALFWorld\-14B, GRPO and GT\-OPSD achieve 82\.6 and 82\.5 SR, respectively, compared with 79\.6 forRSD\. However, GRPO relies on environment rewards and multiple grouped rollouts for policy optimization, substantially increasing rollout cost, while GT\-OPSD explicitly conditions the teacher on a ground\-truth successful agent trajectory\. In contrast,RSDlearns from the agent’s own interaction experience through privileged retrospective context, without requiring oracle demonstrations or reward\-driven group optimization\. Notably,RSDachieves the best result on ALFWorld\-8B and substantially outperforms the supervised baselines on ScienceWorld at both model scales\.

#### Beyond Test\-Time Adaptation\.

We further compare against Reflexion@2, which allows a second attempt conditioned on reflection from the preceding interaction, and Harness@Inf, which directly provides privileged context to the base model at inference time without updating model parameters\. Under the standard single\-attempt evaluation protocol,RSDachieves higher point estimates than Reflexion@2 across all six model–benchmark settings and matches or exceeds Harness@Inf in five of six settings\. For example, on ScienceWorld\-8B, Reflexion@2 and Harness@Inf achieve 17\.8 and 19\.6 SR, respectively, compared with 23\.4 forRSD\. These results indicate that privileged retrospective supervision can be internalized into persistent model capability rather than remaining dependent on additional test\-time adaptation\. A four\-condition analysis comparing base and evolved models with and without privileged context further examines the extent of this internalization across tasks and model scales \(Appendix[D\.2](https://arxiv.org/html/2610.27495#A4.SS2)\)\. SearchQA\-14B provides an important boundary case, where Harness@Inf reaches 41\.4 compared with 38\.7 forRSD, suggesting that some contextual information remains complementary to the model rather than being fully internalized\.

Round\-by\-round trajectories show progressive self\-evolution on ALFWorld and ScienceWorld, while SearchQA remains comparatively flat; full trajectories are provided in Appendix[D\.3](https://arxiv.org/html/2610.27495#A4.SS3)\.

## 5Analysis

### 5\.1Ablation Studies

Table[2](https://arxiv.org/html/2610.27495#S5.T2)studies the contribution of different components in the privileged context\. On ALFWorld, removing lessons, reflection, or future hindsight each reduces SR by roughly five points, while removing precedents has only a minor effect\.

Table 2:Ablation of privileged\-context components on 8B\. Different tasks rely on different privileged signals: generated hindsight components dominate on ALFWorld, whereas precedents are essential on ScienceWorld\.ScienceWorld exhibits a different pattern: removing precedents decreases SR from 23\.4 to 15\.1, nearly returning to the Base performance of 15\.6, while removing future also causes a substantial drop to 17\.6\. In comparison, lessons and reflection provide smaller gains on ScienceWorld\. To examine the source of the lesson signal, we construct lessons from successful or failed trajectories only\. Restricting lessons to either successful or failed trajectories yields lower performance than the default main\-result reference, suggesting that both sources may provide useful retrospective information \(Appendix[D\.4](https://arxiv.org/html/2610.27495#A4.SS4)\)\. These results indicate that different environments benefit from different forms of privileged information, with trajectory\-specific hindsight being more important on ALFWorld and transferable precedents being important on ScienceWorld\.

### 5\.2Effect of Context Evolution

We next examine whether evolving the privileged context with newly collected experience is itself important for continued self\-evolution \(Fig\.[5](https://arxiv.org/html/2610.27495#A4.F5)\)\. Starting from the same base checkpoint, we compare the standard evolving\-context configuration against variants that update only lessons, update only precedents, or freeze the round\-1 context\. By round 3, the full configuration reaches 67\.9 SR on ALFWorld, while updating lessons alone reaches 69\.0, updating precedents alone reaches 63\.8, and freezing the round\-1 context drops to 59\.7\. These results show that repeatedly training against stale retrospective context limits continued improvement, while refreshing the supervision with newly collected experience supports self\-evolution\. Full evolution trajectories are provided in Appendix[D\.7](https://arxiv.org/html/2610.27495#A4.SS7)\.

### 5\.3Frontier\-Guided Context\-Policy Evolution

Figure 2:Performance of fixed, random, and frontier\-guided context\-policy evolution on ALFWorld and ScienceWorld\. The frontier variant uses a frontier model to propose context\-policy edits, with candidate selection guided by a no\-training privileged\-context\-at\-inference probe\. We report success rate over self\-evolution rounds for each task and model scale\.We next study a stronger\-access extension in which privileged\-context construction is itself optimized by a frontier model\. In this setting, we assume access to both a frontier model and an executable environment metric, which together enable an outer\-loop search over context\-construction policies\. At each round, the frontier model proposes a small YAML edit to the privileged\-context policy from a constrained whitelist of editable knobs\. Candidate selection is performed using a cheap no\-training privileged\-context\-at\-inference probe, while retrospective acceptance or rejection is determined only after a full self\-evolution round using the realized environment performance\. We compare this frontier\-guided setting against two controls:Fixed, which keeps the canonical privileged\-context policy unchanged throughout training, andRandom, which explores the same edit space under the same edit budget but without frontier guidance\.

#### Frontier Guidance Improves Context Evolution\.

As shown in Fig\.[2](https://arxiv.org/html/2610.27495#S5.F2), frontier\-guided context\-policy evolution yields the clearest gains on ScienceWorld, where it improves SR from 23\.4 to 27\.5 at 8B and from 20\.6 to 29\.8 at 14B relative to the fixed policy, and also outperforms random search at both scales\. On ALFWorld, the gains are smaller but still positive, with SR improving from 76\.6 to 78\.4 at 8B and from 79\.6 to 80\.3 at 14B\. This pattern suggests that frontier\-guided context optimization is most useful when privileged\-context construction has substantial headroom, while remaining competitive in the more saturated ALFWorld regime\. We therefore focus the frontier\-guided study on ALFWorld and ScienceWorld, where the preceding analyses reveal clearer self\-evolution and context\-construction headroom\. SearchQA serves instead as a complementary boundary case, where self\-evolution remains limited and privileged context shows little evidence of persistent internalization into the model \(Appendix[D\.2](https://arxiv.org/html/2610.27495#A4.SS2); Appendix[D\.6](https://arxiv.org/html/2610.27495#A4.SS6)\)\. Ablations further show that the no\-training probe is important for effective candidate selection; detailed probe construction and validation are provided in Appendix[D\.8](https://arxiv.org/html/2610.27495#A4.SS8)\. Across independent runs, the frontier also discovers systematic task\-relevant context\-policy adaptations; we analyze these retained edits and provide a representative evolution trajectory in Appendix[D\.9](https://arxiv.org/html/2610.27495#A4.SS9)\.

## 6Conclusion

We study self\-evolving language agents that improve from their own on\-policy interaction experience without requiring ground\-truth trajectories or verifier\-derived rewards for the core policy update\. We introduceRSD, which constructs privileged retrospective context from accumulated experience and trajectory hindsight, and distills this richer view back into the policy through on\-policy self\-distillation\. Across multiple agent benchmarks and model scales,RSDconsistently improves over the corresponding base models\. Our ablation and context\-evolution analyses further show that different privileged signals contribute complementary information and that continually refreshing the retrospective context is important for sustained self\-evolution\. We additionally introduce frontier\-guided context\-policy evolution, allowing the construction of privileged supervision itself to adapt as the agent evolves\. Together, these results demonstrate a practical data flywheel in which model capability, accumulated experience, and retrospective supervision improve jointly across rounds\.

## AI use statement

Generative AI tools were used for language polishing, proofreading, and assistance with coding during the preparation of this work\. All AI\-assisted text and code were reviewed, verified, and, where necessary, revised by the authors\. We take responsibility for the final content of this work, including all text, claims, analyses, code, and other artifacts produced with the aid of generative AI\.

## References

- Agarwal et al\. \(2024\)Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem\.On\-policy distillation of language models: Learning from self\-generated mistakes\.In*The twelfth international conference on learning representations*, 2024\.
- Anthropic \(2026\)Anthropic\.Introducing claude opus 4\.8\.[https://www\.anthropic\.com/news/claude\-opus\-4\-8](https://www.anthropic.com/news/claude-opus-4-8), May 2026\.Product announcement\.
- Cheng et al\. \(2026\)Zihao Cheng, Zeming Liu, Yingyu Shan, Xinyi Wang, Xiangrong Zhu, Yunpu Ma, Hongru Wang, Yuhang Guo, Wei Lin, and Yunhong Wang\.Mem2evolve: Towards self\-evolving agents via co\-evolutionary capability expansion and experience distillation\.In*Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pp\. 20784–20831, 2026\.
- Gao et al\. \(2025\)Huan\-ang Gao, Jiayi Geng, Wenyue Hua, Mengkang Hu, Xinzhe Juan, Hongzhang Liu, Shilong Liu, Jiahao Qiu, Xuan Qi, Yiran Wu, et al\.A survey of self\-evolving agents: What, when, how, and where to evolve on the path to artificial super intelligence\.*arXiv preprint arXiv:2507\.21046*, 2025\.
- Hao et al\. \(2026a\)Guangya Hao, Yunbo Long, and Zhuokai Zhao\.Self\-evolving multi\-agent systems via decentralized memory\.*arXiv preprint arXiv:2605\.22721*, 2026a\.
- Hao et al\. \(2026b\)Guangya Hao, Yitong Shang, Yunbo Long, Zhuokai Zhao, and Hanxue Liang\.Self\-policy distillation via capability\-selective subspace projection\.*arXiv preprint arXiv:2605\.22675*, 2026b\.
- He et al\. \(2026\)Yinghui He, Simran Kaur, Adithya Bhaskar, Yongjin Yang, Jiarui Liu, Narutatsu Ri, Liam Fowl, Abhishek Panigrahi, Danqi Chen, and Sanjeev Arora\.Self\-distillation zero: Self\-revision turns binary rewards into dense supervision\.*arXiv preprint arXiv:2604\.12002*, 2026\.
- Hu et al\. \(2025\)Shengran Hu, Cong Lu, and Jeff Clune\.Automated design of agentic systems\.In*International Conference on Learning Representations*, volume 2025, pp\. 21344–21377, 2025\.
- Hübotter et al\. \(2026\)Jonas Hübotter, Frederike Lübeck, Lejs Behric, Anton Baumann, Marco Bagatella, Daniel Marta, Ido Hakimi, Idan Shenfeld, Thomas Kleine Buening, Carlos Guestrin, et al\.Reinforcement learning via self\-distillation\.*arXiv preprint arXiv:2601\.20802*, 2026\.
- Jin et al\. \(2025\)Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han\.Search\-r1: Training llms to reason and leverage search engines with reinforcement learning\.*arXiv preprint arXiv:2503\.09516*, 2025\.
- Lee et al\. \(2026\)Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, and Yujin Tang\.Recursive harness self\-improvement\.*arXiv preprint arXiv:2607\.15524*, 2026\.
- Li et al\. \(2024\)Zelong Li, Shuyuan Xu, Kai Mei, Wenyue Hua, Balaji Rama, Om Raheja, Hao Wang, He Zhu, and Yongfeng Zhang\.Autoflow: Automated workflow generation for large language model agents\.*arXiv preprint arXiv:2407\.12821*, 2024\.
- Meng et al\. \(2026\)Yang Meng, Zhenya Liu, Zhuokai Zhao, and Yuxin Chen\.Rethinking transfer in continual learning: A replay\-based realisation\.*arXiv preprint arXiv:2607\.15587*, 2026\.
- OpenCode Contributors \(2026\)OpenCode Contributors\.OpenCode: The open source ai coding agent\.[https://github\.com/anomalyco/opencode](https://github.com/anomalyco/opencode), 2026\.GitHub repository, accessed August 17, 2026\.
- Pan et al\. \(2026\)Leyi Pan, Shuchang Tao, Yunpeng Zhai, Lingzhe Zhang, Zhaoyang Liu, Bolin Ding, Aiwei Liu, and Lijie Wen\.Rlcsd: Reinforcement learning with contrastive on\-policy self\-distillation\.*arXiv preprint arXiv:2606\.11709*, 2026\.
- Ren et al\. \(2026\)Tao Ren, Weiyao Luo, Hui Yang, Rongzhi Zhu, Xiang Huang, Yuchuan Wu, Bingxue Chou, Jieping Ye, Jiafeng Liang, Yongbin Li, et al\.Scaling self\-evolving agents via parametric memory\.*arXiv preprint arXiv:2606\.04536*, 2026\.
- Shao et al\. \(2024\)Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Y Wu, et al\.Deepseekmath: Pushing the limits of mathematical reasoning in open language models\.*arXiv preprint arXiv:2402\.03300*, 2024\.
- Shinn et al\. \(2023\)Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao\.Reflexion: Language agents with verbal reinforcement learning\.*Advances in neural information processing systems*, 36:8634–8652, 2023\.
- Shridhar et al\. \(2020\)Mohit Shridhar, Xingdi Yuan, Marc\-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht\.Alfworld: Aligning text and embodied environments for interactive learning\.*arXiv preprint arXiv:2010\.03768*, 2020\.
- Sun et al\. \(2025\)Wangtao Sun, Xiang Cheng, Jialin Fan, Yao Xu, Xing Yu, Shizhu He, Jun Zhao, and Kang Liu\.Towards agentic self\-learning llms in search environment\.*arXiv preprint arXiv:2510\.14253*, 2025\.
- Tao et al\. \(2024\)Zhengwei Tao, Ting\-En Lin, Xiancai Chen, Hangyu Li, Yuchuan Wu, Yongbin Li, Zhi Jin, Fei Huang, Dacheng Tao, and Jingren Zhou\.A survey on self\-evolution of large language models\.*arXiv preprint arXiv:2404\.14387*, 2024\.
- Wang et al\. \(2022\)Ruoyao Wang, Peter Jansen, Marc\-Alexandre Côté, and Prithviraj Ammanabrolu\.Scienceworld: Is your agent smarter than a 5th grader?In*Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing*, pp\. 11279–11298, 2022\.
- Wei et al\. \(2025\)Tianxin Wei, Noveen Sachdeva, Benjamin Coleman, Zhankui He, Yuanchen Bei, Xuying Ning, Mengting Ai, Yunzhe Li, Jingrui He, Ed H Chi, et al\.Evo\-memory: Benchmarking llm agent test\-time learning with self\-evolving memory\.*arXiv preprint arXiv:2511\.20857*, 2025\.
- Wu et al\. \(2026a\)Jinyang Wu, Shuo Yang, Zhengxi Lu, Fan Zhang, Yuhao Shen, Lang Feng, Haoran Luo, Zheng Lian, Shuai Zhang, Zhengqi Wen, et al\.Seed: Self\-evolving on\-policy distillation for agentic reinforcement learning\.*arXiv preprint arXiv:2607\.14777*, 2026a\.
- Wu et al\. \(2025\)Rong Wu, Xiaoman Wang, Jianbiao Mei, Pinlong Cai, Daocheng Fu, Cheng Yang, Licheng Wen, Xuemeng Yang, Yufan Shen, Yuxin Wang, et al\.Evolver: Self\-evolving llm agents through an experience\-driven lifecycle\.*arXiv preprint arXiv:2510\.16079*, 2025\.
- Wu et al\. \(2026b\)Yifan Wu, Lizhu Zhang, Yuhang Zhou, Mingyi Wang, Bo Peng, Serena Li, Xiangjun Fan, and Zhuokai Zhao\.Remember when it matters: Proactive memory agent for long\-horizon agents\.*arXiv preprint arXiv:2607\.08716*, 2026b\.
- Xu et al\. \(2026\)Jiawei Xu, Minghui Liu, Juzheng Zhang, Tom Goldstein, and Furong Huang\.β\\beta\-OPSD: Deriving with policy optimization, training with self\-distillation\.*arXiv preprint arXiv:2607\.28582*, 2026\.
- Yang et al\. \(2025a\)An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al\.Qwen3 technical report\.*arXiv preprint arXiv:2505\.09388*, 2025a\.
- Yang et al\. \(2025b\)Cheng Yang, Xuemeng Yang, Licheng Wen, Daocheng Fu, Jianbiao Mei, Rong Wu, Pinlong Cai, Yufan Shen, Nianchen Deng, Botian Shi, et al\.Learning on the job: An experience\-driven self\-evolving agent for long\-horizon tasks\.*arXiv preprint arXiv:2510\.08002*, 2025b\.
- Yang et al\. \(2026\)Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, and Yankai Lin\.Learning beyond teacher: Generalized on\-policy distillation with reward extrapolation\.*arXiv preprint arXiv:2602\.12125*, 2026\.
- Ye et al\. \(2026\)Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, and Furu Wei\.On\-policy context distillation for language models\.*arXiv preprint arXiv:2602\.12275*, 2026\.
- Yuan et al\. \(2023\)Zheng Yuan, Hongyi Yuan, Chengpeng Li, Guanting Dong, Keming Lu, Chuanqi Tan, Chang Zhou, and Jingren Zhou\.Scaling relationship on learning mathematical reasoning with large language models\.*arXiv preprint arXiv:2308\.01825*, 2023\.
- Zelikman et al\. \(2022\)Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman\.Star: Bootstrapping reasoning with reasoning\.*Advances in Neural Information Processing Systems*, 35:15476–15488, 2022\.
- Zhai et al\. \(2025\)Yunpeng Zhai, Shuchang Tao, Cheng Chen, Anni Zou, Ziqian Chen, Qingxu Fu, Shinji Mai, Li Yu, Jiaji Deng, Zouying Cao, et al\.Agentevolver: Towards efficient self\-evolving agent system\.*arXiv preprint arXiv:2511\.10395*, 2025\.
- Zhang et al\. \(2025\)Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, et al\.Aflow: Automating agentic workflow generation\.In*International Conference on Learning Representations*, volume 2025, pp\. 34040–34077, 2025\.
- Zhang et al\. \(2026\)Tianyuan Zhang, Sai Bi, Yicong Hong, Kai Zhang, Fujun Luan, Songlin Yang, Kalyan Sunkavalli, William Freeman, and Hao Tan\.Test\-time training done right\.In*International Conference on Learning Representations*, volume 2026, pp\. 157604–157638, 2026\.
- Zhao et al\. \(2026\)Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover\.Self\-distilled reasoner: On\-policy self\-distillation for large language models\.*arXiv preprint arXiv:2601\.18734*, 2026\.
- Zhou et al\. \(2026\)Yuhang Zhou, Lizhu Zhang, Yifan Wu, Mingyi Wang, Peng Bo, Jiayi Liu, Xiangjun Fan, and Zhuokai Zhao\.Omniopd: Logit\-free on\-policy distillation via speculative verification\.*arXiv preprint arXiv:2606\.01476*, 2026\.
- Zuo et al\. \(2026\)Yuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Xinwei Long, Ermo Hua, Biqing Qi, et al\.Ttrl: Test\-time reinforcement learning\.*Advances in Neural Information Processing Systems*, 38:131459–131483, 2026\.

## Appendix

## Appendix ARelated Work

### A\.1Self\-Evolving Language Agents

Self\-evolving language agents aim to continuously improve from their own interaction experience rather than remaining fixed after post\-training\([Gao et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib4);[Tao et al\., 2024](https://arxiv.org/html/2610.27495#bib.bib21)\)\. One line of work primarily evolves the external agent system, including prompts, workflows, memory, tools, and other agentic structures\([Hu et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib8);[Zhang et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib35);[Li et al\., 2024](https://arxiv.org/html/2610.27495#bib.bib12);[Wu et al\., 2026b](https://arxiv.org/html/2610.27495#bib.bib26);[Hao et al\., 2026a](https://arxiv.org/html/2610.27495#bib.bib5)\)\. Automated agent\-design methods search over workflow or program structures, while experience\-driven agents continually refine explicit memories, reusable strategies, or dynamically constructed assets\([Yang et al\., 2025b](https://arxiv.org/html/2610.27495#bib.bib29);[Wu et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib25);[Wei et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib23);[Cheng et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib3)\)\. These approaches demonstrate that accumulated interaction experience can improve future behavior, but much of the acquired capability remains mediated by an external scaffold rather than being persistently incorporated into the underlying policy\([Lee et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib11)\)\.

A complementary line of work directly adapts the agent model itself\. Recent approaches use online parameter updates, reinforcement learning, self\-generated tasks, reward models, or hindsight supervision to internalize interaction experience into persistent model capability, reducing dependence on external scaffolds and enabling subsequent behavior to improve as new experience accumulates\([Zhai et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib34);[Sun et al\., 2025](https://arxiv.org/html/2610.27495#bib.bib20);[Ren et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib16);[Wu et al\., 2026a](https://arxiv.org/html/2610.27495#bib.bib24);[Hao et al\., 2026b](https://arxiv.org/html/2610.27495#bib.bib6);[Meng et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib13)\)\. While these methods move self\-evolution from the scaffold toward model weights, many rely on explicit verifiers, successful trajectories, or additional exploration to determine which experience should drive learning\([Zuo et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib39);[Zhang et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib36)\)\. In contrast, we construct a data flywheel that does not use verifier\-derived rewards for the core policy update, instead distilling privileged retrospective supervision from both the current trajectory and accumulated interactions directly into model weights, allowing the policy and its supervision to co\-evolve across rounds\.

### A\.2On\-Policy Distillation and Privileged Context

On\-policy distillation \(OPD\) addresses the train–inference mismatch of conventional knowledge distillation by training the student on trajectories sampled from its own policy, while a teacher provides dense token\-level supervision on those student\-visited states\([Agarwal et al\., 2024](https://arxiv.org/html/2610.27495#bib.bib1);[Yang et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib30);[Zhou et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib38)\)\. This formulation makes distillation naturally compatible with iterative policy improvement, since supervision is applied directly to the distribution induced by the evolving student\. Recent work extends this idea by changing what information is available to the teacher\. On\-Policy Context Distillation \(OPCD\) conditions the teacher on additional context while the student generates without it, allowing useful in\-context knowledge, such as historical solution traces or optimized prompts, to be internalized into model parameters\([Ye et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib31)\)\. On\-Policy Self\-Distillation \(OPSD\) further removes the need for a separate teacher model: the same underlying model acts as both teacher and student, with the teacher granted privileged information unavailable to the student; existing formulations commonly construct this privileged view from ground\-truth solutions\([Zhao et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib37);[Xu et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib27)\)\. Related self\-distillation methods similarly exploit verified solutions, environment feedback, or successful rollouts as privileged signals\([Hübotter et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib9);[Pan et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib15);[He et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib7);[Hao et al\., 2026b](https://arxiv.org/html/2610.27495#bib.bib6)\)\.

In contrast, our core method requires neither ground\-truth trajectories nor verifier\-derived rewards for model\-parameter optimization\. We construct privileged retrospective context from the agent’s own current trajectory and accumulated prior experience, and continually refresh this context as new on\-policy experience is collected, coupling context evolution with model\-weight evolution\.

## Appendix BImplementation Details

The prompt templates used for agent interaction, privileged\-context construction, and frontier\-guided context\-policy evolution are provided in Appendix[E](https://arxiv.org/html/2610.27495#A5)\.

#### Training Configuration\.

We perform self\-evolution for 10 rounds and sample 200 training instances in each round\. Each round starts from the checkpoint produced by the previous round, while the accumulated experience bank is carried forward across rounds\. We use full\-parameter fine\-tuning with forward\-KL top\-kkdistillation, wherek=20k=20, a learning rate of3×10−63\\times 10^\{\-6\}, one training epoch per round, and a mini\-batch size of 48\. No policy\-gradient term or task\-reward term is included in the OPSD objective\. All experiments are run on a single node with eight NVIDIA H200 GPUs\.

#### Rollout Configuration\.

For ALFWorld, ScienceWorld, and SearchQA, the maximum numbers of interaction turns are 30, 15, and 15, respectively\. The maximum prompt/response lengths are4096/81924096/8192tokens for ALFWorld,2048/163842048/16384for ScienceWorld, and4096/40964096/4096for SearchQA\. Training rollout temperatures are1\.01\.0for ALFWorld, ScienceWorld, and SearchQA, respectively, with one rollout per training instance\. The larger rollout group used by GRPO is restricted to the GRPO baseline and is not used byRSD\.

#### Teacher and Privileged\-Context Configuration\.

The teacher retrospectively re\-scores the student’s on\-policy trajectories under privileged context and provides the next\-token distributions used for distillation\. By default, the privileged context consists of four components: precedents, accumulated lessons, turn\-level reflection, and future hindsight over the current trajectory\. To construct the precedent set, we first heuristically filter candidate trajectories for successful or useful experiences\. For ALFWorld and ScienceWorld, success is determined by the environment completion signal, while for SearchQA we retain answers grounded in the top retrieved passages\. We then rank the retained precedents by content\-token overlap with the current task goal and retrieve the top two by default \(nn=2\)\. For precedent ranking, we compute content\-token overlap between the current task goal and each candidate trajectory\. We lowercase and tokenize the text, remove punctuation and non\-content tokens such as stopwords, and rank candidates by the number of remaining tokens shared with the task goal\. Lessons accumulate reusable insights from previous experience, while reflection and future hindsight provide trajectory\-specific retrospective information for the current turn\. Following the stabilization motivation of prior OPSD work\([Zhao et al\., 2026](https://arxiv.org/html/2610.27495#bib.bib37)\), we prevent the teacher from evolving indefinitely\. The teacher initially tracks the evolving policy and is frozen at the best\-so\-far checkpoint once the benchmark selection metric decreases relative to its previous maximum; the frozen teacher is then used for all remaining rounds\. This choice is motivated by a controlled teacher\-schedule ablation in Appendix[D\.10](https://arxiv.org/html/2610.27495#A4.SS10): a permanently frozen teacher remains stable but exhibits limited improvement, whereas a fully evolving self\-teacher reaches substantially higher performance before collapsing in later rounds\. Unless otherwise specified, all reported results use these configurations\.

#### Evaluation Protocol\.

For the mainRSDevaluation, the evolved student is evaluated without privileged context, such that the harness is used only to construct training\-time supervision\. Privileged context is provided at inference time only in explicitly labeled diagnostic settings, including Harness@Inf, the internalization analysis, and frontier candidate probes\. For ALFWorld, we evaluate approximately 140 valid\-seen and 134 valid\-unseen tasks and report success rate \(SR\) on both splits\. For ScienceWorld, we evaluate 449 development variations and report task success rate\. For SearchQA, we evaluate on the test set and report exact match \(EM\)\. Inference uses vLLM with fixed decoding settings within each benchmark\.

#### Frontier\-Guided Context\-Policy Evolution\.

The context policy is implemented as a YAML harness configuration and restricted to a predefined whitelist of context\-policy and teacher\-side re\-scoring parameters, including precedent count and retrieval strategy, component activation, context position, and teacher temperature\. The frontier model is not permitted to modify the underlying training algorithm or context\-construction code\. For frontier\-guided context\-policy evolution, we set the retrospective acceptance tolerance toϵ=0\.5%\\epsilon=0\.5\\%, such that a proposed context policy is retained when its post\-training environment performance is no more than0\.50\.5percentage points below the best previously accepted configuration\.

#### Baseline Implementations\.

We implement all comparison methods within the same training framework whenever possible and same training dataset size, changing only the optimization mode or supervision source\. GRPO disables distillation and performs group\-relative policy optimization with a rollout group size of 8 using environment success rewards\. STaR iteratively fine\-tunes the agent on its own successful trajectories\. GT\-SFT uses oracle successful trajectories for supervised fine\-tuning, whereas GT\-OPSD retains the same on\-policy distillation objective asRSDbut conditions the teacher on a gold successful trajectory instead of the experience\-derived privileged context\. For frontier\-guided context\-policy evolution, the Fixed Harness baseline keeps the canonical harness unchanged across rounds, while Random Harness samples edits from the same whitelisted YAML search space and under the same edit budget as the frontier\-guided optimizer\.

## Appendix CSelf\-Evolution Algorithm

Algorithm[1](https://arxiv.org/html/2610.27495#alg1)summarizes the complete training procedure\. The core method uses a fixed context\-construction ruleℋ\\mathcal\{H\}, while the frontier\-guided extension replaces it with the evolving policyℋϕ\(r\)\\mathcal\{H\}\_\{\\phi^\{\(r\)\}\}described in §[3\.2](https://arxiv.org/html/2610.27495#S3.SS2)\.

Algorithm 1RSD: Self\-Evolution through Privileged Retrospective Distillation0:Initial policy

π\(1\)\\pi^\{\(1\)\}; task distribution

𝒳\\mathcal\{X\}; number of rounds

RR; context\-construction rule

ℋ\\mathcal\{H\}
1:Initialize experience bank

ℬ\(0\)←∅\\mathcal\{B\}^\{\(0\)\}\\leftarrow\\emptyset
2:for

r=1,…,Rr=1,\\ldots,Rdo

3:Sample a set of tasks

𝒳\(r\)⊂𝒳\\mathcal\{X\}^\{\(r\)\}\\subset\\mathcal\{X\}
4:Collect one on\-policy trajectory for each task:

𝒟\(r\)←\{τ∼π\(r\)\(⋅∣x\):x∈𝒳\(r\)\}\\mathcal\{D\}^\{\(r\)\}\\leftarrow\\left\\\{\\tau\\sim\\pi^\{\(r\)\}\(\\cdot\\mid x\):x\\in\\mathcal\{X\}^\{\(r\)\}\\right\\\}
5:Update the experience bank:

ℬ\(r\)←ℬ\(r−1\)∪𝒟\(r\)\\mathcal\{B\}^\{\(r\)\}\\leftarrow\\mathcal\{B\}^\{\(r\-1\)\}\\cup\\mathcal\{D\}^\{\(r\)\}
6:Construct task\-type lesson summaries from

ℬ\(r\)\\mathcal\{B\}^\{\(r\)\}L\(r\)←Summarizeπ\(r\)⁡\(ℬ\(r\)\)L^\{\(r\)\}\\leftarrow\\operatorname\{Summarize\}\_\{\\pi^\{\(r\)\}\}\(\\mathcal\{B\}^\{\(r\)\}\)
7:Initialize

ℒ\(r\)←0\\mathcal\{L\}^\{\(r\)\}\\leftarrow 0
8:foreach trajectory

τ∈𝒟\(r\)\\tau\\in\\mathcal\{D\}^\{\(r\)\}do

9:Retrieve precedents

P\(r\)P^\{\(r\)\}from other tasks in

ℬ\(r\)\\mathcal\{B\}^\{\(r\)\}
10:foreach interaction turn

iiin

τ\\taudo

11:Construct retrospective reflection:

Ri\(r\)←Reflectπ\(r\)⁡\(hi,τ\)R\_\{i\}^\{\(r\)\}\\leftarrow\\operatorname\{Reflect\}\_\{\\pi^\{\(r\)\}\}\(h\_\{i\},\\tau\)
12:Extract future hindsight:

Fi\(r\)←τ\>iF\_\{i\}^\{\(r\)\}\\leftarrow\\tau\_\{\>i\}
13:Construct privileged retrospective context:

ci\(r\)←ℋ⁡\(P\(r\),L\(r\),Ri\(r\),Fi\(r\)\)c\_\{i\}^\{\(r\)\}\\leftarrow\\mathcal\{H\}\\left\(P^\{\(r\)\},L^\{\(r\)\},R\_\{i\}^\{\(r\)\},F\_\{i\}^\{\(r\)\}\\right\)
14:foreach token

jjin action

aia\_\{i\}do

15:Compute privileged teacher distribution:

qi,j\(r\)←q\(r\)\(⋅∣hi,j,ci\(r\)\)q^\{\(r\)\}\_\{i,j\}\\leftarrow q^\{\(r\)\}\\left\(\\cdot\\mid h\_\{i,j\},c\_\{i\}^\{\(r\)\}\\right\)
16:Compute student distribution:

pi,j←πθ\(⋅∣hi,j\)p\_\{i,j\}\\leftarrow\\pi\_\{\\theta\}\\left\(\\cdot\\mid h\_\{i,j\}\\right\)
17:Accumulate OPSD loss:

ℒ\(r\)←ℒ\(r\)\+DKL\(qi,j\(r\)∥pi,j\)\\mathcal\{L\}^\{\(r\)\}\\leftarrow\\mathcal\{L\}^\{\(r\)\}\+D\_\{\\mathrm\{KL\}\}\\left\(q^\{\(r\)\}\_\{i,j\}\\,\\\|\\,p\_\{i,j\}\\right\)
18:endfor

19:endfor

20:endfor

21:Update the student on its own on\-policy states:

π\(r\+1\)←arg⁡minπθ⁡ℒ\(r\)\\pi^\{\(r\+1\)\}\\leftarrow\\arg\\min\_\{\\pi\_\{\\theta\}\}\\mathcal\{L\}^\{\(r\)\}
22:endfor

23:return

π\(R\+1\)\\pi^\{\(R\+1\)\}

#### Frontier\-Guided Extension\.

For frontier\-guided context\-policy evolution, we replace the fixedℋ\\mathcal\{H\}in Algorithm[1](https://arxiv.org/html/2610.27495#alg1)withℋϕ\(r\)\\mathcal\{H\}\_\{\\phi^\{\(r\)\}\}\. Between self\-evolution rounds, the frontier model uses the current context policy, training diagnostics, and no\-training probe feedback to propose the next candidateϕ~\(r\+1\)\\tilde\{\\phi\}^\{\(r\+1\)\}\. After the corresponding full training round, the candidate is retained or reverted according to Eq\.[5](https://arxiv.org/html/2610.27495#S3.E5), withϵ=0\.5%\\epsilon=0\.5\\%\. Only the context policy may be reverted; the updated model parameters continue to the next self\-evolution round\.

## Appendix DSupplementary Results

### D\.1Reflexion Test\-Time Scaling

To examine the effect of additional test\-time interaction, we evaluate Reflexion with one, two, and three sequential attempts\. Each subsequent attempt is conditioned on reflection from the preceding interaction, allowing the agent to revise its behavior without updating model parameters\. As shown in Table[3](https://arxiv.org/html/2610.27495#A4.T3), performance generally improves as additional attempts are provided\. WhileRSDoutperforms Reflexion@2 across all six settings under its standard single\-attempt evaluation, Reflexion@3 surpassesRSDin several settings, illustrating that additional test\-time interaction can trade increased inference effort for higher performance\.

Table 3:Test\-time scaling with Reflexion across one, two, and three sequential attempts\.RSDis included as a reference and is evaluated under the standard single\-attempt protocol\.
### D\.2Internalization of Privileged Supervision

#### Internalization of Privileged Context\.

We next test whether the benefit of privileged supervision is transferred into the model itself rather than remaining dependent on inference\-time scaffolding\. For each benchmark and model scale, we evaluate four conditions: Base\(no\-C\), the pretrained base model without privileged context; Base\(C\), the same base model with privileged context supplied at inference time; Evolved\(no\-C\), the self\-evolved model evaluated without privileged context; and Evolved\(C\), the evolved model additionally provided with privileged context at inference time\. The key internalization comparison is Evolved\(no\-C\) versus Base\(C\): if the evolved model without privileged context outperforms the base model with privileged context, then useful information from privileged training has been transferred into the model itself rather than remaining dependent on inference\-time context\. As shown in Fig\.[3](https://arxiv.org/html/2610.27495#A4.F3), ALFWorld exhibits strong internalization at both model scales: Evolved\(no\-C\) exceeds Base\(C\) by 14\.5 and 8\.9 percentage points for 8B and 14B, respectively, while reintroducing the harness to the evolved model provides only a small additional gain\. ScienceWorld shows more partial and scale\-dependent internalization\. At 8B, Evolved\(no\-C\) exceeds Base\(C\) by 3\.8 points, while Evolved\(C\) provides a further 3\.3\-point improvement; at 14B, Evolved\(no\-C\) is nearly identical to Base\(C\), whereas Evolved\(C\) adds 6\.1 points, indicating that much of the privileged information remains complementary rather than being absorbed into the model\. SearchQA shows no measurable internalization, with Evolved\(no\-C\) failing to outperform Base\(C\), consistent with the limited gains observed across self\-evolution rounds\. Together, these results show that self\-evolution can convert privileged retrospective supervision into persistent model capability, but the extent of internalization varies across tasks and scales\.

Figure 3:Internalization of privileged supervision across tasks and model scales\. The blue bars show the internalized gain, measured as Evolved\(no\-C\)−\-Base\(C\), while the orange bars show the remaining harness utility, measured as Evolved\(C\)−\-Evolved\(no\-C\)\. Positive blue values indicate that the evolved model without privileged context outperforms the base model equipped with the harness at inference, whereas positive orange values indicate complementary information that remains useful after evolution\.
#### Uptake of Retrospective Corrections\.

To more directly test whether privileged supervision affects the subsequent policy, we perform an offline re\-scoring analysis on preserved consecutive checkpoints\. Specifically, for trajectories generated at roundrr, we keep the realized action tokens fixed and evaluate their probabilities under both the current policyπ\(r\)\\pi^\{\(r\)\}and the subsequent policyπ\(r\+1\)\\pi^\{\(r\+1\)\}, while using the privileged teacher distribution to identify actions that the teacher disfavors\. If a realized action is assigned lower probability byπ\(r\+1\)\\pi^\{\(r\+1\)\}than byπ\(r\)\\pi^\{\(r\)\}, this indicates that the next policy has moved away from a direction discouraged by the privileged teacher\. As shown in Table[4](https://arxiv.org/html/2610.27495#A4.T4), this directional correction appears in three of four tested round pairs, with the strongest effects early in evolution:Δ​log⁡p=−0\.384\\Delta\\log p=\-0\.384for ALFWorldr→r​2r1\\\!\\rightarrow\\\!r2and−0\.696\-0\.696for ScienceWorldr→r​2r1\\\!\\rightarrow\\\!r2\. The effect becomes substantially weaker in later rounds\. Importantly, an exact\-context re\-score using teacher distributions logged during actual training does not support the stronger hypothesis that larger teacher corrections lead to proportionally larger uptake\. We therefore interpret these results as evidence that the*direction*of privileged correction can be transferred into subsequent policies, rather than that the student simply imitates the full privileged teacher distribution\. Additional details of the re\-scoring protocol and metrics are provided in Appendix[D\.5](https://arxiv.org/html/2610.27495#A4.SS5)\.

Table 4:Directional uptake of privileged corrections across consecutive evolution rounds\. Negative values indicate that the subsequent policy assigns lower probability to realized actions disfavored by the privileged teacher\. Detailed analyses are provided in Appendix[D\.5](https://arxiv.org/html/2610.27495#A4.SS5)\.

### D\.3Self\-Evolution Across Rounds\.

\(a\)ALFWorld\(b\)ScienceWorld\(c\)SearchQA
Figure 4:Self\-evolution trajectories of Qwen3\-8B and Qwen3\-14B over ten rounds\. Round 0 denotes the corresponding base model, and dashed lines indicate the RFT baseline\. Each panel shows a single\-seed trajectory; stars denote the best round within the displayed run\. ALFWorld reports unseen SR, while the main table reports the mean over seen and unseen splits\. Canonical larger\-scale evaluations are reported in Table[1](https://arxiv.org/html/2610.27495#S4.T1)\.Fig\.[4](https://arxiv.org/html/2610.27495#A4.F4)shows representative self\-evolution trajectories over ten rounds for both model scales\. On ALFWorld, both Qwen3\-8B and Qwen3\-14B progressively reach substantially higher success rates than their initial models and the RFT baselines, although improvement is not strictly monotonic across rounds\. A similar pattern emerges on ScienceWorld: performance initially fluctuates around the baseline but improves noticeably in later rounds, indicating that useful behaviors can accumulate gradually through repeated self\-evolution\. In contrast, SearchQA remains within a relatively narrow performance band throughout training, consistent with the limited gains observed in Table[1](https://arxiv.org/html/2610.27495#S4.T1)\. Additional teacher re\-scoring diagnostics show a similarly stable correction signal \(Appendix[D\.6](https://arxiv.org/html/2610.27495#A4.SS6)\)\. Together, these trajectories show that repeated self\-evolution can progressively improve interactive agent behavior on ALFWorld and ScienceWorld, while also revealing that the effectiveness of self\-evolution depends on whether the task provides learnable behavioral headroom\.

### D\.4Lesson\-Source Ablation

Our default lesson construction summarizes both successful and failed trajectories from accumulated past experience\. To examine whether failed experience provides useful information independently, we restrict the lesson source to either successful trajectories only or failed trajectories only, while keeping all other components fixed\. We evaluate Qwen3\-8B for ten self\-evolution rounds\.

Table 5:Ablation on the source of accumulated lessons\. We report success rate \(%\) with Qwen3\-8B\. The default configuration summarizes both successful and failed trajectories and reports the main\-result reference\.As shown in Table[5](https://arxiv.org/html/2610.27495#A4.T5), the default configuration that summarizes both successful and failed trajectories achieves the best performance on both environments\. Restricting lessons to either successful or failed trajectories yields lower performance than the default main\-result reference, while failed\-only lessons remain competitive with successful\-only lessons\. These results suggest that both successful and failed experience can provide useful retrospective information, although we treat this single\-seed study as a diagnostic rather than a statistically matched comparison\.

### D\.5Re\-Scoring Analysis Details

#### Protocol\.

We perform an offline re\-scoring analysis on preserved consecutive evolution checkpoints to examine how retrospective teacher corrections are reflected in the subsequent policy\. For each round pairr→r\+1r\\\!\\rightarrow\\\!r\+1, we keep the round\-rrtrajectories and their realized tokens fixed and evaluate the same tokens under both the current policyπ\(r\)\\pi^\{\(r\)\}and the subsequent policyπ\(r\+1\)\\pi^\{\(r\+1\)\}\. The privileged teacher distributionq\(r\)q^\{\(r\)\}is used to identify whether each realized action is preferred or disfavored by the retrospective supervisor\. Because the trajectories are fixed, this analysis isolates changes in the policy distribution without introducing additional rollout variation or training\.

#### Teacher Re\-Scoring\.

We consider both proxy and privileged\-context\-conditioned teacher distributions\. The initial analysis uses the unconditioned base model as a proxy teacher, while the privileged\-context analysis conditions the teacher on the round\-specific retrospective context\. For ALFWorld, the corresponding precedent memory is reconstructed from the preserved round\-level experience bank\. For the exact\-context analysis, we additionally log the teacher distributions produced during training, allowing the same teacher targets to be evaluated directly without reconstructing the context\.

#### Metrics\.

We measure uptake using complementary token\-level statistics\. First, we compute the change in KL divergence between the teacher distribution and the policy across consecutive checkpoints\. Second, we measure the change in probability assigned to the teacher’s top\-1 token\. Finally, we measure the change in log probability of realized action tokens disfavored by the teacher, where a negative value indicates that the subsequent policy assigns lower probability to an action discouraged by privileged supervision\. Action tokens and ordinary language tokens are analyzed separately\.

#### Evaluated Round Pairs\.

We analyze consecutive checkpoints from both ALFWorld and ScienceWorld, including early and later stages of self\-evolution\. For the main directional\-correction analysis, we evaluate ALFWorldr→r​2r1\\\!\\rightarrow\\\!r2andr→r​3r2\\\!\\rightarrow\\\!r3, together with ScienceWorldr→r​2r1\\\!\\rightarrow\\\!r2andr→r​6r5\\\!\\rightarrow\\\!r6\. The exact\-context analysis additionally uses teacher distributions logged directly during training to avoid ambiguity introduced by context reconstruction\.

### D\.6Teacher Re\-Scoring Diagnostics

#### Task\-Specific Correction Profiles\.

We additionally record per\-turn teacher re\-scoring statistics throughout self\-evolution\. We define the correction gap as the difference between the log probability of the teacher’s top\-1 token and that assigned to the student’s realized token; the correction rate as the fraction of tokens for which the teacher top\-1 prediction differs from the student’s token; teacher entropy as the average token\-level entropy of the privileged teacher distribution over supervised action tokens; and the hit rate as the fraction of student tokens contained in the teacher’s top\-kksupport used for distillation\. ALFWorld exhibits relatively small corrections throughout evolution, with correction gaps around0\.20\.2–0\.30\.3and correction rates below approximately7%7\\%\. ScienceWorld exhibits substantially larger corrections, with the 8B correction gap increasing from0\.8090\.809at round 1 to1\.4201\.420at round 7 and correction rates around0\.40\.4–0\.550\.55\. SearchQA instead shows moderate but comparatively stable correction gaps of approximately0\.50\.5after the initial round\. Across all three benchmarks, the teacher top\-kkhit rate remains approximately0\.970\.97–1\.001\.00, indicating that the truncated distillation targets retain high coverage of the student’s realized tokens\. These task\-specific correction profiles are consistent with the distinct evolution dynamics observed in the main experiments, although the correction gap alone does not establish whether the subsequent policy absorbs the corresponding supervision\.

### D\.7Detailed Context\-Evolution Analysis

Figure 5:Context evolution on ALFWorld\-8B\. Refreshing privileged context across self\-evolution rounds substantially outperforms freezing the round\-1 context, with lesson updates providing particularly strong gains\.We next examine whether evolving the privileged context with newly collected experience is itself important for continued self\-evolution\. Starting from the same base checkpoint, we train each variant for three self\-evolution rounds and compare the standard evolving\-context configuration ofRSDagainst variants that evolve only lessons, evolve only precedents, or freeze the round\-1 context for all subsequent rounds\. As shown in Fig\.[5](https://arxiv.org/html/2610.27495#A4.F5), all variants begin from the same performance at round 0, while their trajectories increasingly diverge as different context updates accumulate\. By round 3, the full evolving\-context configuration reaches67\.9%67\.9\\%unseen SR, while refreshing lessons alone reaches69\.0%69\.0\\%and refreshing precedents alone reaches63\.8%63\.8\\%; in contrast, freezing the round\-1 context drops to59\.7%59\.7\\%\. This suggests that, on ALFWorld, refreshing generated retrospective information is particularly important, consistent with the component ablation in Table[2](https://arxiv.org/html/2610.27495#S5.T2)\. Overall, these results show that repeatedly training against stale retrospective context limits continued improvement, whereas refreshing the context with newly collected experience supports continued self\-evolution\. A diagnostic precedent\-count study further reveals task\-dependent context sensitivity \(Appendix[D\.11](https://arxiv.org/html/2610.27495#A4.SS11)\), motivating an adaptive context policy rather than a single fixed configuration\. This task\-dependent sensitivity further motivates the adaptive context\-policy extension studied in §[3\.2](https://arxiv.org/html/2610.27495#S3.SS2)\.

### D\.8Frontier Probe Construction and Validation

#### No\-Training Context Probe\.

To provide the frontier model with an inexpensive empirical signal for ranking candidate context\-policy edits, we use a no\-training privileged\-context\-at\-inference probe\. For each candidate configuration, we render the corresponding privileged context using the same context\-construction pipeline used during training, inject it into the model at inference time, and evaluate task success on a small training\-distribution slice\. The resulting success rate is used as a proxy for the utility of the candidate context policy, requiring only inference and no parameter updates\. To reduce ranking noise, probe evaluation uses greedy decoding \(T=0T=0\)\.

#### Validation on ScienceWorld\.

We validate the probe on ScienceWorld, where the controlled context ablation indicates substantial headroom from privileged\-context construction\. In particular, removing precedents decreases dev SR from23\.423\.4to15\.115\.1, providing a known context\-quality ordering against which the probe can be evaluated\. Using four representative context configurations, the no\-training probe produces SRs of25\.625\.6,23\.123\.1,18\.018\.0, and13\.313\.3for the full, no\-lessons, base, and no\-precedents configurations, respectively\. The corresponding full\-training evaluation obtains23\.423\.4,22\.722\.7,15\.615\.6, and15\.115\.1\. Thus, the probe recovers the same ordering across these configurations, with Spearman correlation1\.0001\.000and Pearson correlation0\.9430\.943\. This provides evidence that the no\-training probe supplies a useful ranking signal for context\-policy search in a setting with meaningful context headroom\.

#### Deterministic Evaluation\.

We found that stochastic decoding can introduce substantial variance into the probe score and obscure relatively small differences between candidate configurations\. We therefore use greedy decoding for all frontier candidate probes, while retaining the standard benchmark decoding configuration for the corresponding full\-round evaluations\. For example, on ScienceWorld the greedy precedent\-count probe yields SRs of19\.219\.2,22\.922\.9,20\.920\.9, and20\.020\.0for counts00–33, respectively, correctly identifying that introducing precedents is beneficial while also indicating that more context is not necessarily better\.

#### Context Fidelity\.

Because the probe is intended to estimate the utility of the same privileged information used during distillation, we ensure that probe\-time context rendering matches the training\-time format\. We audit the context\-construction paths and verify byte\-identical rendered notes across tested tasks, precedent counts, and lesson settings after resolving an earlier formatting mismatch\. This ensures that the probe evaluates the actual privileged\-context representation used by the teacher rather than an independently reconstructed approximation\.

#### Empirical Feedback Enables Frontier Optimization\.

Table 6:Probe ablation on ScienceWorld\-8B\. The diagnostics\-only frontier receives the same training digest but does not observe the no\-training candidate probe\.We next ablate the no\-training probe used to evaluate candidate context\-policy edits\. As shown in Table[6](https://arxiv.org/html/2610.27495#A4.T6), removing the probe reduces the ScienceWorld\-8B SR from 27\.5 to 23\.9, placing the diagnostics\-only frontier, which relies only on previous\-round checkpoint accuracy and training metrics, in approximately the same regime as the fixed \(23\.4\) and random\-search \(23\.2\) controls\. Thus, access to a frontier model alone is insufficient to reliably optimize privileged\-context construction; the empirical probe provides a task\-grounded signal that allows the frontier model to distinguish promising context edits from plausible but ineffective alternatives\.

### D\.9Discovered Context Policies and Frontier Evolution Case Study

#### Frontier Models Discover Task\-Relevant Context Policies\.

Table 7:Context\-policy edits discovered by the frontier model on ScienceWorld\-8B\. Adopted@Peak reports how many independent runs contain the edit in their peak\-performing configuration\. AblationΔ\\DeltaSR denotes the performance drop when the corresponding component is removed from the canonical context\.We finally examine which context\-policy edits are retained by the frontier\-guided search\. As shown in Table[7](https://arxiv.org/html/2610.27495#A4.T7), all four independent ScienceWorld\-8B runs increase the number of retrieved precedents in their peak\-performing configurations, closely matching the controlled ablation in Table[2](https://arxiv.org/html/2610.27495#S5.T2), where removing precedents causes the largest performance drop\. The frontier also prunes lessons in three runs and future hindsight in one run\. This does not contradict their positive contribution in the component ablation: the ablation measures their utility under the canonical context, whereas frontier evolution makes stage\-dependent decisions after the model has already undergone several rounds of training and may have internalized part of the previously supplied information\. Thus, the value of a context component can change over the course of self\-evolution, and the frontier adapts the context policy accordingly rather than following a single fixed template\. A representative round\-by\-round trajectory illustrating this adaptive context evolution is provided below\.

#### Case Study of Frontier\-Guided Context\-Policy Evolution

Table 8:Representative trajectory of frontier\-guided privileged\-context evolution on ScienceWorld \(Qwen3\-8B\)\. “Context Before” denotes the last accepted configuration\. The frontier may either propose a constrained context\-policy edit or retain the current configuration when no candidate appears beneficial\. SR reports the resulting checkpoint performance at each round; proposed edits are subsequently kept or reverted according to their post\-training performance\.Table[8](https://arxiv.org/html/2610.27495#A4.T8)illustrates a representative ScienceWorld trajectory\. The frontier first explores adding precedents, reverting an overly aggressive increase to two precedents before retaining a smaller increase to one\. It subsequently tests modifications to future hindsight and precedent count, reverting changes that do not improve the resulting checkpoint, while leaving the context policy unchanged at rounds 5 and 7 when no candidate edit appears beneficial\. Later, it retains a configuration that removes lessons and future hindsight and then increases the precedent count to two, reaching the best SR of 28\.5% at round 9\. This trajectory illustrates that frontier\-guided context evolution is not a sequence of unconditional mutations: the outer loop alternates between exploration, retention, reversion, and abstention as the underlying agent evolves\.

### D\.10Teacher\-Schedule Ablation

The default training configuration uses an adaptive freeze\-to\-peak teacher\. To isolate the role of this schedule, we compare two endpoint strategies under the same fixed canonical context policy using Qwen3\-8B on ALFWorld dataset over ten self\-evolution rounds\. In thefrozenvariant, the teacher remains the initial base model throughout training\. In thefully evolvingvariant, the teacher is updated to the current student after every round, with freeze\-to\-peak disabled\. These two configurations respectively isolate a completely stationary teacher and an unconstrained co\-evolving self\-teacher\.

Table 9:ALFWorld teacher\-schedule ablation with Qwen3\-8B under the fixed canonical context policy\. We report mean success rate \(%\) over seen and unseen splits for each self\-evolution round\. Results are intended as a controlled diagnostic of teacher dynamics\.As shown in Table[9](https://arxiv.org/html/2610.27495#A4.T9), the frozen teacher remains within a narrow performance range throughout all ten rounds, reaching a peak mean success rate of68\.2%68\.2\\%and ending at67\.9%67\.9\\%\. In contrast, the fully evolving teacher benefits strongly from co\-evolution during the early rounds, reaching80\.3%80\.3\\%at round 7, but subsequently becomes unstable and collapses from76\.2%76\.2\\%at round 8 to39\.4%39\.4\\%at round 9 and0%0\\%at round 10\. These two behaviors motivate the default freeze\-to\-peak strategy: allowing the teacher to track the student initially provides adaptive supervision, while freezing the best validation checkpoint once performance deteriorates prevents the teacher from following the student into late\-stage collapse\. We view this experiment as a diagnostic of the teacher\-update mechanism rather than a statistically powered benchmark comparison, since each endpoint schedule is evaluated with a single seed\.

### D\.11Sensitivity to Precedent Count

We further examine whether a fixed precedent budget transfers uniformly across environments\. Holding all other components of the canonical context policy fixed, we vary only the number of retrieved precedentsn∈\{1,2,4\}n\\in\\\{1,2,4\\\}using Qwen3\-8B\. The default configuration usesn=2n=2\. Results are shown in Table[10](https://arxiv.org/html/2610.27495#A4.T10)\.

Table 10:Sensitivity to the number of retrieved precedents\. We report success rate \(%\) for Qwen3\-8B\.n=2n=2denotes the default configuration and reports the default main\-result reference\.The effect of precedent count differs substantially across environments\. On ALFWorld, then=4n=4variant performs strongly, whereas ScienceWorld performs better with fewer precedents\. Thus, additional context is not uniformly beneficial, and the appropriate precedent budget is task dependent\. This sensitivity further motivates adapting the context\-construction policy rather than relying on a single fixed configuration across environments\.

## Appendix EPrompt Templates

We provide the prompt templates used in our experiments, including \(i\) agent rollout and evaluation prompts, \(ii\) privileged retrospective\-context prompts, and \(iii\) frontier\-guided context\-policy evolution prompts\.

#### Privileged Retrospective\-Context Prompts\.

Tables[11](https://arxiv.org/html/2610.27495#A5.T11)–[13](https://arxiv.org/html/2610.27495#A5.T13)show the task\-specific prompts used by the acting policy during rollout and evaluation\. The one\-shot demonstrations are fixed across self\-evolution rounds\.

Table 11:Prompt template for ALFWorld\. A one\-shot demonstration is provided before the user turn\.Table 12:Prompt template for ScienceWorld\. A single generic one\-shot ReAct trajectory is provided before the user turn\.Table 13:Prompt template for SearchQA\. The agent repeatedly issues Wikipedia search queries and terminates with a concise final answer\.The interaction prompts above are used by the acting policy during both rollout and standard evaluation\. The privileged retrospective information described below is constructed only after a trajectory has been collected and is provided to the teacher during retrospective re\-scoring; it is not available to the acting policy during standard rollout or evaluation\.

#### Frontier\-Guided Context\-Policy Evolution Prompts\.

Table 14:Prompts used to generate privileged retrospective information\. The lessons summary is generated once per task type and round from selected successful and failed trajectories, while reflection is generated retrospectively for the current completed trajectory\.Table 15:Construction of the privileged note used for teacher re\-scoring\. Components are enabled or disabled by the corresponding context\-policy configuration\. The default configuration uses lessons, two precedents, reflection, and future hindsight\.Table 16:Frontier\-model prompt for proposing candidate context\-policy edits\. The frontier model receives round diagnostics, the current editable configuration, and any no\-training probe evidence accumulated during the current search round\.Frontier hypothesis\-generation prompt \(P1\)You are a SCIENTIST tuning the privileged context policy \(the ’harness’\) for on\-policy self\-distillation \(OPSD\)\. A teacher rescores the student’s OWN rollouts under a note built from precedents \+ lessons \+ behavior \+ future \+ reflection; the harness config controls that note\.
GOAL: maximize downstream dev SR \(task success\) of the next model\.
PRINCIPLES \(general, NOT task\-specific\):
\- MORE IS NOT BETTER\. Extra/again\-predicted context adds tokens\+noise without helping; ’remove/simplify’ and turning a component OFF are as valid as ’add’\. EVERY whitelisted knob is fair game \-\-\- precedent count AND retrieval AND lessons/behavior/future/reflection/selection/etc\. Do NOT fixate on precedent count\.
\- You are optimizing PROXY DEV SR measured by a NO\-TRAIN harness@inference eval: each candidate’s precedents are injected into the model’s OWN context and we read dev SR\. This probe reflects the FORWARD\-CONTEXT knobs \(precedent count/retrieval\) \-\-\- it is VALIDATED to track true full\-round SR for those\. It does NOT move for hindsight/training\-mechanism knobs \(future/lessons/reflection/teacher\_temp/selection\): those have no inference analog\. You MAY still propose them, but the probe will read∼\\simflat for them and they will be judged only by the real training round \(the retrospective gate\), not this probe\.
\- Prefer edits your evidence says raise SR\.
\- Form hypotheses, test them, and revise\.
===== ROUND DIAGNOSTICS =====
\{digest\}
===== EDITABLE KNOBS \(whitelist\) =====
\{whitelist\}
===== PROBE EVIDENCE SO FAR THIS ROUND \(harness@inference dev SR, no\-train\) =====
\{accumulated evidence, or ‘‘\(none yet \-\-\- this is the first iteration\)’’\}
Propose \{NCAND\} DISTINCT candidate edits to TEST now \(each changes AT MOST \{MAX\_EDITS\} whitelisted knobs, in\-bounds\)\. Cover DIFFERENT knob families \(include \>=1 subtractive/OFF and \>=1 touching a generated component: lessons/behavior/future/reflection\)\. Print EXACTLY \{NCAND\} lines, nothing else:
CAND: <key\>=<val\>\[, <key2\>=<val2\>\]; HYP: <why this should raise dev SR\>Table 17:Frontier\-model prompt for selecting among candidate context\-policy edits after no\-training probe evaluation\.Frontier candidate\-selection prompt \(P2\)Candidate edits tested this iteration \(harness@inference dev SR, no\-train; higher is better\):
\{cand1: <edit\> \-\> proxy\_dev\_SR=\.\.\.; cand2: \.\.\.; \.\.\.\}
CURRENT \(unedited\) harness under the SAME no\-train probe: proxy\_dev\_SR=\{CUR\_SR\}
Read the proxy SRs as EVIDENCE of downstream task success\. Choose the action:
\- CHOOSE cand<i\> \-\-\- if a candidate’s proxy SR is convincingly the best \(and beats leaving the harness as\-is\)\.
\- CHOOSE none \-\-\- if none convincingly beats the current harness\.
\- REHYPOTHESIZE \-\-\- if the evidence suggests a better untested direction; you will get another probe round\.
Print EXACTLY one line: ‘CHOOSE: cand<i\>’ or ‘CHOOSE: none’ or ‘REHYPOTHESIZE’
Then one line: ‘WHY: <cite the proxy\-SR evidence\>’The frontier search alternates between candidate proposal and no\-training probe evaluation for at most two iterations per round\. The selected context\-policy edit is then used for the subsequent full self\-evolution round and subjected to the retrospective acceptance criterion in Eq\.[5](https://arxiv.org/html/2610.27495#S3.E5)\. We use an acceptance tolerance ofϵ=0\.5%\\epsilon=0\.5\\%\.

相似文章

ReSAIL:缓解迭代式智能体自蒸馏中的性能坍缩

Hugging Face Daily Papers

ReSAIL 提出一种即插即用的增强方法,通过轨迹平衡选择性蒸馏与特权信息保留,缓解智能体迭代自蒸馏中的性能坍缩问题;在 ALFWorld 和 TextCraft 上使用 Qwen3-4B/8B 模型,三个部署周期后平均成功率比 SDPO/OEL 基线提升 22.5 个百分点。

AgentOPSD:智能体强化学习中的递归自蒸馏

Hugging Face Daily Papers

AgentOPSD 提出了一种无评论家的递归方法,用于智能体强化学习中的回合级信用分配,通过在 log-odds 空间中进行贝叶斯信念更新来重新加权结果。它在 ALFWorld 上使用 Qwen2.5-7B 达到了 89.1% 的成功率,优于 GRPO 和自蒸馏基线。

自我进化代理脚手架框架

Hugging Face Daily Papers

提出一个自我进化代理框架(Harness RSI),在保持模型权重固定的情况下,通过反馈驱动的修订与进化优化,持续改进代理的软件脚手架(提示、记忆、工作流和可执行组件),并借助持续 PAC 学习为泛化与保留能力提供理论保证。