alphaFeedback

WorksComputer Science

MDSKILL: Learning to Internalize Skill Memory through Multi-View Distillation for Efficient Dynamic Agent Self-Evolution

AI contributions
  • AI-assisted tools
View details

Abstract

Skill memories encode past experiences as textual prompts to improve reinforcement learning (RL) for self-evolving agents. Complementing RL, On-Policy Self-Distillation (OPSD) provides dense, fine-grained supervision to internalize knowledge from skill-guided trajectories and accelerate policy learning. However, self-generated memories often contain noisy supervision and functionally entangled, redundant, or conflicting knowledge, making direct distillation difficult. Under limited training budgets, these issues can hinder knowledge internalization and even degrade performance. To address this problem, we propose MDSKILL, a multi-view distillation approach for skill memory internalization. MDSKILL organizes skill memories into three complementary functional views (state grounding, action planning, and execution control) and selects high-quality skills using dynamic metrics to construct view-specific and integrated reasoning branches. OPSD then transfers and consolidates complementary experiential knowledge across these branches into a shared policy, enabling efficient skill internalization and continuous agent self-evolution. We evaluate MDSKILL on three agent benchmarks against RL, skill-augmented, and self-distillation baselines that do not rely on stronger external teacher models. Without additional computational overhead, MDSKILL improves upon SOTA performance by up to 7.1% and 8.1% on ALFWorld and WebShop. Extensive ablations and evolution analyses further validate its effectiveness in knowledge internalization and policy improvement. The code is available at https://anonymous.4open.science/r/MDSKILL-CF53.

Introduction

Agentic reinforcement learning (RL) has demonstrated strong performance on multi-turn interactive tasks [18, 29, 2, 3]. However, sparse and delayed rewards provide limited supervision for policy improvement. Skill memories offer a promising source of experiential knowledge: they summarize lessons from real interaction trajectories and guide subsequent decisions through textual prompts [20, 24]. Although external skill memories improve task success, agent self-evolution requires internalizing their experiential knowledge into model parameters to retain and apply acquired capabilities without explicit memory retrieval. On-Policy Self-Distillation (OPSD) distills skill-view trajectories into the skill-free branch, providing dense supervision for skill internalization and policy learning [36, 5, 32]. Combining OPSD with RL enables more effective agent self-evolution and greater performance gains [13, 22].

OPSD uses high-quality reference responses to provide reliable teacher supervision [36]. In online agent self-evolution, however, the teacher branch relies on self-generated skill memories that may contain ineffective, harmful, or hallucinated strategies, potentially causing the skill-view branch to underperform its skill-free counterpart [22]. Our observational experiments further suggest that jointly applying skills with different decision functions entangles their roles, while redundancy and conflicts obscure their individual contributions. Consequently, direct distillation can propagate erroneous behaviors and provide inconsistent supervision for useful knowledge, hindering its internalization into model parameters.

Motivated by these observations, we propose MDSKILL, a multi-view distillation framework for skill memory internalization. It uses dynamic value metrics to select skills with additional decision value and organizes them into three complementary functional views: state grounding, action planning, and execution control. These views guide three view-specific branches and an integrated branch alongside a skill-free branch. By disentangling experience according to its decision function, multi-view distillation reduces transfer interference and consolidates complementary knowledge into the shared policy. The skill-view and skill-free branches then co-evolve, generating better trajectories and skill memories that sustain agent self-evolution. Figure 1 summarizes MDSKILL’s framework, empirical results, and the intuition behind multi-view distillation.

Overview, results and intuition on MDSKILL

Figure 1. Overview, results and intuition on MDSKILL.

Across three agent benchmarks, MDSKILL outperforms RL, skill-augmented, and self-distillation baselines that do not rely on stronger external teacher models, improving upon SOTA performance by up to 7.1% and 8.1% on ALFWorld and WebShop without additional computational overhead. Extensive ablations and skill-evolution analyses support its effectiveness, while gains in both skillview and skill-free branches indicate successful knowledge internalization rather than continued reliance on external memories. Our main contributions are summarized as follows:

  • We observe and identify a key challenge in skill-guided agent self-evolution: noisy and functionally entangled skill memories can hinder knowledge internalization and degrade performance.

  • We propose MDSkill, a multi-view distillation framework that organizes skill memories into complementary decision views and transfers knowledge across skill-view and skill-free branches for more stable and effective experiential knowledge internalization.

  • Experiments on three agent benchmarks show that MDSKILL improves upon SOTA performance, with extensive ablations and skill-evolution analyses supporting its effectiveness.

Preliminaries

Agentic Reinforcement Learning with Skill Memories

We formulate a multi-turn agent task as a sequential decision-making process. During online training, the agent summarizes experience from successful and failed trajectories as textual skill memories, which are stored in an evolving skill bank. Given a task instruction xx and interaction history hth_t, the agent retrieves relevant memories mtm_t and generates actions through either the skill-free or skill-view branch:

at∼πθ(⋅∣x,ht)⏟skill-free,at∼πθ(⋅∣x,ht,mt)⏟skill-view.(1)\underbrace{a_t \sim\pi_\theta(\cdot\mid x,h_t)}_{\text{skill-free}}, \qquad\underbrace{a_t \sim\pi_\theta(\cdot\mid x,h_t,m_t)}_{\text{skill-view}}. \tag*{(1)}

Both branches share policy parameters θ\theta. Each action yields a new environment observation, producing a trajectory τ=(x,o1,a1,…,oT,aT)\tau= (x,o_1,a_1,\ldots,o_T,a_T) with return R(τ)R(\tau). Reinforcement learning optimizes the policy to maximize the expected trajectory return:

JRL(θ)=Eτ∼πθ[R(τ)].(2)J_{\mathrm{RL}}(\theta) = \mathbb{E}_{\tau\sim\pi_\theta}[R(\tau)]. \tag*{(2)}

We adopt GiGPO [3] as the underlying RL algorithm, combining episode-level and step-level advantages to improve credit assignment under sparse or delayed rewards.

On-Policy Self-Distillation

On-Policy Self-Distillation (OPSD) [36] complements RL with dense token-level supervision. In our setting, the skill-conditioned policy serves as the teacher, transferring knowledge to the skill-free policy through:

LOPSD=Eτ∼πθ(⋅∣x,m)[1∣τ∣∑tDKL(πθˉ(⋅∣x,ht,mt)⏟teacher∥πθ(⋅∣x,ht)⏟student)].(3)\mathcal{L}_{\mathrm{OPSD}} = \mathbb{E}_{\tau\sim\pi_\theta(\cdot\mid x,m)}\left[\frac{1}{|\tau|}\sum_t D_{\mathrm{KL}}\left(\underbrace{\pi_{\bar{\theta}}(\cdot\mid x,h_t,m_t)}_{\text{teacher}} \mathbin{\|} \underbrace{\pi_\theta(\cdot\mid x,h_t)}_{\text{student}}\right)\right]. \tag*{(3)}

where mtm_t denotes retrieved skill memories and θˉ\bar{\theta} denotes stop-gradient teacher parameters. This objective directly internalizes skill-guided behavior into the shared policy; we further adapt the transfer direction according to paired trajectory outcomes.

Analysis of Distillation Directions

We analyze four training variants to examine how distillation direction affects skill-memory internalization: no distillation, forward distillation from the skill-view to the skill-free branch, reverse distillation in the opposite direction, and bidirectional distillation combining both.

Distillation effectively internalizes externalized experience. As shown in Figure 2, all distillation variants outperform no distillation on both branches, demonstrating that distillation effectively converts knowledge externalized in skill memories into the policy’s intrinsic capabilities. Forward distillation propagates unreliable supervision. Forward-only distillation performs substantially worse because the dense supervision signals from the skill-view branch are unreliable. Since both branches share the same policy, this unreliable token-level supervision degrades both skill-view and skill-free behavior.

Training success rates under different distillation directions on WebShop

Figure 2. Training success rates under different distillation directions on WebShop.

Reverse-only distillation provides the most effective path to skill internalization. Reverse-only distillation achieves the strongest performance on both branches, surpassing even bidirectional distillation. This result highlights distillation’s sensitivity to supervision quality: dense but unreliable signals from forward distillation can dilute or counteract the gains from reverse correction. The advantage of reverse-only distillation thus lies in removing unstable forward supervision, allowing externalized skill knowledge to enter policy parameters indirectly through RL while reverse distillation corrects unreliable skill-guided behavior.

Forward distillation exhibits instability and distributional misalignment. To investigate why forward distillation degrades performance, we follow [10] and analyze Top-KK overlap and the absolute entropy gap in Figure 3. Forward distillation requires the skill-free branch to reproduce skill-conditioned preferences without access to the underlying skill. Its low, volatile overlap and large, fluctuating entropy gap suggest persistent misalignment and unstable supervision, potentially introducing noisy policy updates. In contrast, reverse distillation primarily corrects harmful skill influence and exhibits increasing overlap and a smaller, more stable entropy gap.

Top-$K$ token overlap ratio and absolute entropy gap under forward and reverse distillation on WebShop

Figure 3. Top-KK token overlap ratio and absolute entropy gap under forward and reverse distillation on WebShop.

Skill noise and knowledge entanglement hinder effective transfer. Although forward distillation under-performs reverse distillation, it substantially outperforms no distillation, indicating that skill-guided supervision contains useful knowledge alongside unreliable signals. The challenge therefore lies not simply in a lack of valuable knowledge, but in transferring it effectively. Beyond skill noise, redundant or conflicting guidance from entangled decision functions can obscure useful signals and complicate internalization. These observations motivate dynamic value metrics to prioritize reliable, beneficial skills and multi-view decomposition to separate complementary decision functions, improving supervision quality and reducing transfer interference.

MDSKILL

Overview

MDSkill is a self-evolution framework that builds on OPSD to aggregate and internalize knowledge from skill memories. It combines dynamic skill selection with multi-view exploration and distillation to internalize complementary knowledge into the shared policy. The improved policy generates better trajectories and higher-quality skill memories, which strengthen policy learning, forming a closed loop of skill evolution, knowledge internalization, and agent self-evolution.

Detailed overview of MDSkill, comprising dynamic skill retrieval, multi-view rollout exploration, and knowledge-gain-driven multi-view distillation

Figure 4. Detailed overview of MDSkill, comprising dynamic skill retrieval, multi-view rollout exploration, and knowledge-gain-driven multi-view distillation.

Dynamic Skill Metrics

Skill value estimation identifies useful memories and filters harmful ones, but their value changes as the policy evolves: previously useful skills may become redundant through internalization or be superseded by better strategies. MDSKILL therefore maintains two dynamic, policy-relative estimates, Reliability and Advantage, updated with new interaction outcomes throughout training. Temporal decay gives recent evidence greater weight, preventing historical performance from dominating the assessment of a skill’s current value.

Dynamic Maintenance. For a rollout using skill mm, let y∈{0,1}y \in\{0,1\} denote task success and yˉfree\bar{y}_{\mathrm{free}} the average success of skill-free rollouts on the same task. The corresponding evidence is zrel=yz^{\mathrm{rel}}=y and zadv=1+y−yˉfree2z^{\mathrm{adv}}=\frac{1+y-\bar{y}_{\mathrm{free}}}{2}. For each estimate d∈{rel,adv}d \in\{\mathrm{rel},\mathrm{adv}\}, we maintain a Beta distribution with a uniform prior and temporally discounted evidence:

wt,i=2−t−tiH,αm,td=1+∑i∈Em(t)wt,izid,βm,td=1+∑i∈Em(t)wt,i(1−zid).(4)w_{t,i}=2^{-\frac{t-t_i}{H}}, \qquad\alpha^d_{m,t}=1+\sum_{i\in\mathcal{E}_m(t)}w_{t,i}z_i^d, \qquad\beta^d_{m,t}=1+\sum_{i\in\mathcal{E}_m(t)}w_{t,i}(1-z_i^d). \tag*{(4)}

where Em(t)\mathcal{E}_m(t) denotes the observations associated with skill mm, tit_i is the observation step, and HH is the evidence half-life. The decay weight wt,iw_{t,i} emphasizes recent outcomes and discounts older evidence. More effective evidence concentrates the Beta distributions, making well-supported skill values easier to distinguish while preserving uncertainty for less-evaluated skills.

Thompson-Sampled Retrieval. We first retain the Top-KK skills with the highest cosine similarity between the embeddings of the current query and each skill’s associated context. Within this candidate set, we apply Thompson sampling to rank skills by their sampled Reliability and Advantage:

Ct(x)=TopK⁡m∈Mtsim⁡(x,cm),q~m,td∼Beta⁡(αm,td,βm,td),St(m)=q~m,trel+q~m,tadv.(5)C_t(x)=\operatorname{TopK}_{m\in\mathcal{M}_t}\operatorname{sim}(x,c_m), \qquad\tilde{q}_{m,t}^{d}\sim\operatorname{Beta}(\alpha_{m,t}^{d},\beta_{m,t}^{d}), \qquad S_t(m)=\tilde{q}_{m,t}^{\mathrm{rel}}+\tilde{q}_{m,t}^{\mathrm{adv}}. \tag*{(5)}

where d∈{rel,adv}d\in\{\mathrm{rel},\mathrm{adv}\}, cmc_m denotes the retrieval context associated with skill mm, and Mt\mathcal{M}_t is the eligible skill bank. We first select the top-KK most relevant skills from Ct(x)C_t(x) and apply Thompson sampling to their value metrics. Both sampled metrics lie in [0,1][0,1], providing a common scale for aggregation. This balances exploitation of well-supported skills with exploration of uncertain candidates, reducing the risk that accidental successes cause particular skills to dominate retrieval.

Multi-View Skill Rollouts

High-value experience can support different aspects of a decision. MDSkill organizes skill memory around three complementary functions—state grounding, action planning, and execution control—and uses these views to guide exploration and selective knowledge transfer into a shared policy.

Functional Skill Views

We generate skills through view-specific reflection prompts, each directing the agent to extract a distinct type of reusable knowledge from its interaction experience. The prompts are adapted to each environment, and the resulting skills are maintained in three functional pools, MgM_g, MpM_p, McM_c.

State grounding. This view addresses what is known about the current situation. Grounding skills identify task-relevant observations, object states, constraints, and missing information. They guide the agent to inspect its environment, resolve uncertainty, and distinguish verified facts from assumptions before committing to an action. Exploration under this view emphasizes obtaining and interpreting evidence that makes subsequent decisions better informed.

Action planning. This view addresses what to do next given the information. Planning skills describe how to select actions, establish subgoals, and order operations toward task completion. They direct exploration toward alternative action sequences and reusable strategies for making progress.

Execution control. This view addresses whether ongoing execution should continue or change. Control skills focus on checking action preconditions, detecting ineffective behavior, verifying intermediate outcomes, and recovering from errors. They guide the agent to reconsider a plan when observations contradict its expectations, rather than repeatedly following an unsuccessful course of action.

Combined branch. This branch integrates knowledge from three skill views, allowing grounding, planning, and control to complement one another. It connects observation interpretation with action selection and execution monitoring, enabling the agent to adjust its plan as new evidence emerges. The resulting trajectories capture interactions among decision functions and provide an integrated path alongside the view-specific branches. Implementation details for functional skills are provided in Appendix F.

Three Skill Views in ALFWorld

Figure 5. An example of multi-view skill guidance in ALFWorld.

Multi-View Distillation

Knowledge-Gain Gate. Multi-view rollouts provide diverse experiential knowledge, while distillation requires reliable fine-grained supervision for effective transfer. For precise distillation matching, following UCOB [22], we group decision records that share the same task and anchor state. Within each group, let Ta0\mathcal{T}_a^0 denote the skill-free trajectories and Tav=⋃v∈VTav\mathcal{T}_a^v = \bigcup_{v \in\mathcal{V}} \mathcal{T}_a^v denote the skill-view trajectories, where V\mathcal{V} contains the grounding, planning, control, and combined views. Given the trajectory-level success indicator y(τ)∈{0,1}y(\tau) \in\{0,1\}, we define the numbers of successful skill-free and skill-view trajectories as

na0=∑τ∈Ta0y(τ),na+=∑τ∈Ta+y(τ).(6)n_a^0 = \sum_{\tau\in\mathcal{T}_a^0} y(\tau), \qquad n_a^+ = \sum_{\tau\in\mathcal{T}_a^+} y(\tau). \tag*{(6)}

The strict and relaxed knowledge-gain gates are defined as

γastrict=I[na+>na0∧na0=0],γarelaxed=I[na+>na0].(7)\gamma_a^{\mathrm{strict}} = \mathbb{I}\left[n_a^+ > n_a^0 \land n_a^0 = 0\right], \qquad\gamma_a^{\mathrm{relaxed}} = \mathbb{I}\left[n_a^+ > n_a^0\right]. \tag*{(7)}

Teacher-student Grouping. Teacher-student grouping for distillation depends on trajectory outcomes and the knowledge-gain gate. For each teacher-student pair (τi,τj)(\tau_i, \tau_j) in anchor aa, we define

ga(τt,τs)=I[y(τt)>y(τs)]⋅{γa,vt≠0, vs=0(forward),1−γa,vt=0, vs≠0(reverse),γa,vt≠0, vs≠0, vt≠vs(cross-view),0,otherwise.(8)g_a(\tau_t,\tau_s)=\mathbb{I}[y(\tau_t)>y(\tau_s)]\cdot \begin{cases} \gamma_a, & v_t\ne0,\ v_s=0 \quad\text{(forward)},\\ 1-\gamma_a, & v_t=0,\ v_s\ne0 \quad\text{(reverse)},\\ \gamma_a, & v_t\ne0,\ v_s\ne0,\ v_t\ne v_s \quad\text{(cross-view)},\\ 0, & \text{otherwise}. \end{cases} \tag*{(8)}

where vi=0v_i=0 denotes the skill-free branch and ga(τt,τs)=1g_a(\tau_t,\tau_s)=1 identifies a valid distillation pair.

Distillation takes three forms: (1) Forward distillation transfers successful skill-view behavior to failed skill-free trajectories when the knowledge-gain gate is satisfied, enabling the policy to internalize useful skill-guided behavior; (2) Reverse distillation uses successful skill-free behavior to correct failed skill-guided trajectories when the policy can already solve the task without skills; (3) Cross-view distillation transfers knowledge from a successful skill view to unsuccessful alternative views, enabling complementary knowledge exchange across decision functions. Strict and relaxed variants of the distillation gate are discussed in Appendix § 10.

Multi-View Distillation Objective. All forward, reverse, and cross-view pairs share a unified token-level objective. For each valid pair (τt,τs)(\tau_t,\tau_s), the teacher response is evaluated under both contexts. We collect valid token instances and define the joint loss as

IMD={(a,t,s,ℓ):ga(τt,τs)=1, 1≤ℓ≤Nt,s},\mathcal{I}_{\mathrm{MD}}=\{(a,t,s,\ell):g_a(\tau_t,\tau_s)=1,\ 1\le\ell\le N_{t,s}\},
LMD=1∣IMD∣∑(a,t,s,ℓ)∈IMDDKL(sg⁡[pˉt,ℓ]∥pˉs,ℓ).(9)\mathcal{L}_{\mathrm{MD}}=\frac{1}{|\mathcal{I}_{\mathrm{MD}}|}\sum_{(a,t,s,\ell)\in\mathcal{I}_{\mathrm{MD}}}D_{\mathrm{KL}}\left(\operatorname{sg}[\bar{p}_{t,\ell}]\middle\|\bar{p}_{s,\ell}\right). \tag*{(9)}

where Nt,sN_{t,s} denotes the valid response token count, and pˉt,ℓ\bar{p}_{t,\ell} and pˉs,ℓ\bar{p}_{s,\ell} are normalized distributions over the teacher’s Top-KDK_D token support [4, 22]. The operator sg⁡[⋅]\operatorname{sg}[\cdot] stops teacher gradients. The complete training objective is

L=LRL+λMDLMD+βKLLKL.(10)\mathcal{L}=\mathcal{L}_{\mathrm{RL}}+\lambda_{\mathrm{MD}}\mathcal{L}_{\mathrm{MD}}+\beta_{\mathrm{KL}}\mathcal{L}_{\mathrm{KL}}. \tag*{(10)}

where λMD\lambda_{\mathrm{MD}} controls the distillation weight, LKL\mathcal{L}_{\mathrm{KL}} regularizes policy divergence from the reference policy, and βKL\beta_{\mathrm{KL}} controls its strength.

Experiments

Experimental Setup

Benchmarks Following the evaluation suite of SDAR [13], we evaluate on three agent benchmarks. ALFWORLD [21] tests household navigation and object manipulation across six task families: Pick, Look, Clean, Heat, Cool, and Pick2. WEBSHOP [31] requires agents to find and purchase products satisfying natural-language requests; we use the established 128-task evaluation split. SEARCH-QA [7] evaluates search-augmented question answering across three single-hop and four multi-hop datasets. We report success rates on ALFWorld, task scores and success rates on WebShop, and answer accuracy on Search-QA.

Models and baselines. We use Qwen2.5-7B-Instruct, Qwen2.5-3B-Instruct [29], and Qwen3-1.7B [29] as backbones. We compare against three baseline groups: (1) skill-free RL methods, GRPO [18] and GiGPO [3]; (2) skill-augmented methods, SkillRL [28], D2Skill [23], SkillC [12], SAPO [35], and Skill [19]; and (3) self-distillation methods, OPSD [36], RLSD [30], Skill-SD [25], SDAR [13], StepOPSD [34] and UCOB [22]. These baselines provide broad coverage of agent self-evolution methods. For fair comparison, MDSKILL follows the same experimental settings as the corresponding baselines; details are provided in Appendix § 8.

Main Results

Overall Performance. Table 1 shows that MDSkill achieves the best overall success rates on both ALFWorld and WebShop across all three backbones. On ALFWorld, MDSkill outperforms the strongest baseline UCOB by 7.1%, 3.1%, and 2.3% with Qwen3-1.7B, Qwen2.5-3B, and Qwen2.5-7B, respectively. On WebShop, it improves the success rate by 8.1%, 3.2%, and 3.9%, while maintaining competitive task scores. MDSkill also achieves competitive performance on Search-QA across model scales. Compared with interactive decision-making tasks, Search-QA depends more on retrieval quality, evidence comprehension, and answer synthesis, and less on recurring environment states where reusable skills offer consistent guidance.

MethodPickLookCleanHeatCoolPick2SuccScoreSuccNQTrivPopHotp2WkMuSBamAvg
Qwen3-1.7B
GRPO*71.141.736.440.031.831.646.167.338.340.058.943.535.430.312.065.740.8
GiGPO90.361.592.371.469.279.280.570.045.341.159.345.134.132.710.564.541.0
Skill1*71.454.559.472.760.073.765.683.261.742.759.846.035.434.812.065.742.3
RLSD*50.037.561.519.050.021.142.274.050.838.657.343.034.534.111.565.340.6
Skill-SD*52.937.569.242.960.036.852.381.853.939.157.545.434.834.110.764.140.8
SDAR*73.525.076.933.340.036.853.976.858.639.758.945.335.935.512.665.341.9
StepOPSD†64.744.456.560.942.155.056.3––40.559.444.437.132.011.664.141.3
UCOB93.176.910084.281.876.286.790.374.743.658.745.537.832.311.264.141.9
MDSKILL97.492.910010081.088.993.888.782.841.759.645.138.033.812.064.842.1
Qwen2.5-3B-Instruct
GRPO*91.262.596.261.965.047.475.079.863.339.360.641.137.434.615.426.436.4
GiGPO89.776.910078.981.871.484.483.870.343.060.546.936.235.512.164.142.6
Skill1*93.858.396.492.986.495.089.184.175.044.260.344.839.235.913.164.943.2
RLSD*87.975.090.975.073.168.479.784.466.441.558.642.340.440.216.866.943.8
Skill-SD*88.250.096.252.465.057.973.475.964.044.460.444.039.540.415.464.944.1
SDAR*97.162.510061.975.084.284.485.068.044.858.144.338.636.215.766.143.4
StepOPSD†97.166.787.079.178.995.083.6––45.061.646.239.539.514.465.344.5
UCOB10090.010088.976.088.292.286.177.344.761.446.237.536.212.266.343.5
MDSKILL10010096.393.385.094.195.385.680.544.258.945.638.937.514.264.343.4
Qwen2.5-7B-Instruct
GRPO*91.287.596.281.065.057.981.280.972.645.163.744.043.643.216.837.642.0
GiGPO†97.782.798.883.789.379.290.884.472.846.464.746.141.643.618.968.947.2
SkillRL†97.971.490.090.095.587.589.985.272.745.963.345.943.240.320.273.847.5
D2Skill†93.877.894.795.095.572.087.891.180.548.763.444.947.543.721.067.748.1
SkilIC†88.578.691.294.7100.088.990.685.674.0––––––––
SAPO†98.773.998.192.685.089.292.290.578.148.462.946.745.045.218.346.444.7
Skill1*100.083.389.5100.088.585.092.286.277.346.846.347.843.739.318.270.644.7
RLSD*100.087.592.358.880.065.282.087.477.346.863.044.445.548.921.573.049.0
Skill-SD*93.993.890.9100.069.268.485.186.176.547.164.547.844.242.120.269.047.8
SDAR*94.775.0100.086.768.278.985.989.482.846.363.548.243.848.419.673.049.0
UCOB10081.896.210091.385.793.891.380.546.864.247.046.142.218.771.048.0
MDSKILL97.010010095.291.394.496.188.484.445.565.346.845.944.318.471.748.4

Table 1. Main results on ALFWorld (six tasks and overall success rates), WebShop (score/success rate), and Search-QA (seven datasets and average accuracy). Best and second-best results within each backbone are bolded and <u>underlined</u>, respectively. † denotes results from original papers; * denotes results reported by SDAR and UCOB.

Knowledge Internalization. The consistent gains on ALFWorld and WebShop demonstrate the value of internalizing skill memories from complementary decision perspectives. The gains are particularly pronounced with the smaller Qwen3-1.7B model which has fewer task-relevant priors and reusable interaction patterns, with success rates increasing from 86.7% to 93.8% on ALFWorld and from 74.7% to 82.8% on WebShop. By organizing skill memories into complementary views and distilling successful behaviors into the shared policy, MDSkill mitigates the knowledge disadvantage of smaller models, while the improved policy produces stronger trajectories and higher-quality skills that further reinforce knowledge internalization and agent self-evolution.

Ablation Studies

Main Ablation on Distillation. Figure 6a compares success rates and skill-view advantage, defined as the success-rate difference between skill-view and skill-free branches; a sustained negative gap indicates that memories hinder the evolving policy. We ablate forward distillation, cross-view distillation, multi-view rollouts, and distillation. MDSKILL performs best on both benchmarks, with its advantage approaching zero without remaining strongly negative. Removing distillation causes the greatest degradation, while removing multi-view rollouts has the largest impact among variants retaining distillation. The performance of variants retaining multi-view exploration and partial distillation supports the benefits of broader exploration and disentangled knowledge transfer. Crucially, removing forward distillation reduces performance, contrasting with the earlier advantage of reverse-only distillation and showing that skill internalization becomes beneficial within MDSKILL. Cross-view distillation provides further gains through complementary knowledge internalization.

Ablation study of MDSKILL

Figure 6. Ablation study of MDSKILL.

Distillation Stability Analysis. Figure 6b compares MDSKILL with w/o multi-view rollouts. Without multi-view rollouts, forward token overlap fails to improve and the absolute entropy gap fluctuates sharply, indicating persistent misalignment and unstable distillation. MDSKILL instead achieves higher overlap and a smaller, more stable entropy gap, supporting the benefits of disentangled skill guidance. Cross-view distillation exhibits the lowest entropy gap and highest overlap, suggesting that knowledge transfer across complementary views is easier to optimize.

Dynamic Skill Evolution Analysis. Figure 6c tracks the mean advantage of top-KK skills from each generation cohort. In MDSKILL, high-advantage regions concentrate near the diagonal: new skills address current knowledge gaps, while older skills lose their advantage as their knowledge is internalized. In contrast, UCOB shows weaker diagonal concentration, indicating continued reliance on earlier skills. Figure 6d examines skills with substantial advantage (>0.6> 0.6) across 4 levels of generality. MDSKILL shifts from instance-specific knowledge toward cross-task skills and meta-strategies, reducing the final instance-specific share to 26%, compared with 42% for UCOB. Although UCOB retains high-advantage skills, this reflects dependence on external memories rather than effective internalization. Together, MDSKILL shows healthy self-evolution, where new skills fill knowledge gaps, internalization reduces their marginal value, and skill evolution shifts toward new and more general knowledge. Additional ablations and analyses are provided in Appendix § 9.

Conclusion

We identify a key obstacle to skill-guided agent self-evolution: noisy and functionally entangled skill memories can provide unstable supervision, hindering knowledge internalization. We propose MDSKILL, a multi-view framework that dynamically selects useful skills, organizes them into complementary functional views, and explores both view-specific and integrated solutions. Outcome-based teacher–student grouping then supports forward, reverse, and cross-view distillation, enabling complementary knowledge to be reliably consolidated into the shared policy. Experiments on three agent benchmarks demonstrate SOTA performance, while ablations and evolution analyses verify more stable distillation and healthier skill evolution. Overall, MDSKILL establishes a self-evolution cycle in which multi-view skill knowledge improves the policy, and the evolving policy continually generates and internalizes better skill memories.

Reproducibility Statement

We provide the information required to reproduce our experiments throughout the paper. § 5 describes the benchmarks, model backbones, baselines, evaluation protocols, and main results. Appendix § 8 reports the complete training, distillation, and skill-retrieval configurations, while Appendix § 12 provides the functional skill definitions, reflection prompts, and representative examples.

AI Use Statement

AI-assisted tools were used during manuscript preparation primarily to improve grammar, wording, clarity, and LaTeX presentation. They were not used to design the method, conduct the experiments, or generate and interpret the reported results. The authors reviewed and verified all AI-assisted text and take full responsibility for the final content.

Related Work

Skill Memories for Language Agents

Retrieval-augmented generation established a general paradigm for conditioning language models on external, non-parametric knowledge [8]. Language agents extend this paradigm from factual documents to interaction experience: Reflexion [20] stores verbal feedback from previous attempts, while Voyager [24] accumulates executable programs as reusable skills. Recent work further enables agents to construct, select, curate, evolve, or internalize their own skill memories [28, 15, 23, 16, 33, 14, 6, 12, 35, 19, 22]. These methods progress from retrieval-time skill augmentation toward evolving external repositories and policy-level knowledge internalization. However, self-generated skills may be noisy, redundant, or functionally entangled; MDSKILL addresses these limitations through dynamic skill selection and multi-view distillation.

Agentic Reinforcement Learning

Proximal Policy Optimization (PPO) [17] stabilizes policy learning through clipped updates, while GRPO [18] replaces the learned value function with relative rewards among grouped rollouts. Building on these foundations, recent agentic RL methods extend policy optimization to multi-turn environments involving reasoning, search, tool use, and environment interaction [26, 27, 3, 37, 9 c]. These methods enable agents to improve from interaction outcomes, but their supervision remains largely dependent on sparse and delayed rewards. MDSKILL adopts GiGPO [3] as its RL backbone because its combination of episode- and step-level optimization is well suited to long-horizon, multi-turn agent interactions.

On-Policy Self-Distillation

On-policy distillation (OPD) provides dense teacher supervision on student-generated rollouts, reducing off-policy distribution mismatch [1]. On-Policy Self-Distillation (OPSD) [36] further uses the same policy as teacher and student under different contexts, with privileged information provided only to the teacher. This supplies dense token-level supervision alongside sparse RL rewards without requiring a separate teacher model. Recent work combines OPSD with agentic RL through skill-conditioned contexts, adaptive supervision, step-level transfer, and bidirectional correction [30, 25, 13, 34, 22]. However, its effectiveness depends on the reliability of retrieved skills. MDSKILL addresses this issue by decomposing skill knowledge into complementary views and performing outcome-guided multi-view distillation.

Implementation Details

Training

Across all three benchmarks, we train MDSKILL for 150 steps with a rollout group size of 8, a training batch size of 16, and a validation batch size of 128. We use an actor learning rate of 10−610^{-6} and response limits of 8192 and 512 tokens, and validate every 25 steps. vLLM rollouts use top-pp = 1.0 and a maximum model length of 10240; validation uses temperature 0.4 and top-pp = 1.0. Each rollout group contains four skill-free trajectories and one skill-guided trajectory for each grounding, planning, control, and combined branch, resulting in a 4:1:1:1 allocation. For ALFWorld and WebShop, we use a PPO mini-batch size of 64, a low-variance KL coefficient of 0.01, and an invalid-action penalty coefficient of 0.1; their maximum interaction horizons are 50 and 15 turns, respectively. For Search-QA, we use a PPO mini-batch size of 16, a learning-rate warmup ratio of 0.1, a KL coefficient of 0.001, and an invalid-action penalty coefficient of 0.01. Its maximum search horizon and retained interaction history are both 4 turns. All experiments use eight NVIDIA A100 GPUs. The code is available at https://anonymous.4open.science/r/MDSKILL-CF53.

Algorithm 1 MDSKILL: Multi-View Distillation Skill.

Require: Policy πθ\pi_\theta, reference policy πref\pi_{\mathrm{ref}}, task distribution D\mathcal{D}, skill banks M={Mv}v∈V\mathcal{M} = \{\mathcal{M}_v\}_{v\in\mathcal{V}}, retrieval budget KK, and training steps TT

Ensure: Trained policy πθ\pi_\theta and evolved skill banks M\mathcal{M}

1: Define skill views V={g,p,c}\mathcal{V} = \{g, p, c\} and rollout branches B={0,g,p,c,cmb}\mathcal{B} = \{0, g, p, c, \mathrm{cmb}\} 2: for r=1,…,Tr = 1, \ldots, T do 3: &nbsp;&nbsp;&nbsp;&nbsp;Sample a task batch Xr∼D\mathcal{X}_r \sim\mathcal{D} 4: &nbsp;&nbsp;&nbsp;&nbsp;for all x∈Xrx \in\mathcal{X}_r do 5: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize a multi-view rollout group for task xx 6: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while the rollout group is active do 7: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Observe the current anchor state aa

Step 1: Dynamic multi-view skill retrieval.

8: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for all v∈Vv \in\mathcal{V} do 9: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve Cv(a)←TopK⁡m∈Mvsim⁡(a,cm)C_v(a) \leftarrow\operatorname{TopK}_{m\in\mathcal{M}_v}\operatorname{sim}(a,c_m) 10: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sample q~md∼Beta⁡(αmd,βmd)\widetilde{q}_m^d \sim\operatorname{Beta}(\alpha_m^d,\beta_m^d), d∈{rel,adv}d \in\{\mathrm{rel},\mathrm{adv}\} 11: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select Sa,v←TopK⁡m∈Cv(a)(q~mrel+q~madv)S_{a,v} \leftarrow\operatorname{TopK}_{m\in C_v(a)}(\widetilde{q}_m^{\mathrm{rel}}+\widetilde{q}_m^{\mathrm{adv}}) 12: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end for

Step 2: Multi-view rollout exploration.

13: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct skill-free, view-specific, and combined contexts {Pab}b∈B\{P_a^b\}_{b\in\mathcal{B}} 14: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Advance each branch with πθ(⋅∣Pab)\pi_\theta(\cdot\mid P_a^b) and store its rollout record 15: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end while 16: &nbsp;&nbsp;&nbsp;&nbsp;end for 17: &nbsp;&nbsp;&nbsp;&nbsp;Group rollout records by their shared task and anchor state

Step 3: Knowledge-gain multi-view distillation.

18: &nbsp;&nbsp;&nbsp;&nbsp;Initialize the valid pair set P←∅\mathcal{P} \leftarrow\varnothing 19: &nbsp;&nbsp;&nbsp;&nbsp;for all anchor groups a∈Aa \in\mathcal{A} do 20: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute nao←∑τ∈Taoy(τ)n_a^o \leftarrow\sum_{\tau\in\mathcal{T}^o_a} y(\tau) and na+←∑τ∈Ta+y(τ)n_a^+ \leftarrow\sum_{\tau\in\mathcal{T}^+_a} y(\tau) 21: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute the knowledge-gain gate γa\gamma_a using (7) 22: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collect P←P∪{(τt,τs):ga(τt,τs)=1}\mathcal{P} \leftarrow\mathcal{P} \cup\{(\tau_t,\tau_s) : g_a(\tau_t,\tau_s) = 1\} 23: &nbsp;&nbsp;&nbsp;&nbsp;end for 24: &nbsp;&nbsp;&nbsp;&nbsp;Compute LMD←TokenDistill⁡(P)\mathcal{L}_{\mathrm{MD}} \leftarrow\operatorname{TokenDistill}(\mathcal{P}) 25: &nbsp;&nbsp;&nbsp;&nbsp;Update θ\theta using LRL+λMDLMD+βLKL\mathcal{L}_{\mathrm{RL}} + \lambda_{\mathrm{MD}}\mathcal{L}_{\mathrm{MD}} + \beta\mathcal{L}_{\mathrm{KL}} 26: &nbsp;&nbsp;&nbsp;&nbsp;Update dynamic skill values and view-specific skill banks 27: end for 28: return πθ,M\pi_\theta,\mathcal{M}

Distillation.

We use turn-level, response-scoped Top-KK distillation with Ktok=32K_{\mathrm{tok}} = 32. For each anchor, we retain at most two teacher–student pairs independently for each of forward, reverse, and cross-view distillation. All three types share the same objective with λMD=0.2\lambda_{\mathrm{MD}} = 0.2. We set the token-level confidence-gate coefficient to 5.0 and assign action tokens a distillation weight of 2.0. We use the strict gate for Qwen3-1.7B and the relaxed gate for Qwen2.5-3B-Instruct and Qwen2.5-7B-Instruct. Appendix D discusses the effect of gate selection across model scales.

Retrieval.

We organize skill memories into three functional banks corresponding to state grounding, action planning, and execution control. At each encountered anchor state, we first retrieve the 10 most relevant candidates from each bank using the all-MiniLM-L6-v2 sentence transformer, with a relevance threshold of 0.4. For each candidate, we independently draw Thompson samples from its Reliability and Advantage posteriors and rank candidates by their equally weighted sum. Each view-specific branch selects the top three skills from its corresponding bank, whereas the combined branch selects the highest-ranked skill from each bank. Both posteriors are initialized with uniform Beta(1, 1) priors and use a temporal-decay half-life of 20 training steps. Within each functional bank, we further distinguish task-level and state-level memories following UCOB [22].

Additional Experimental Results

This section provides additional analyses of the hyperparameters and design choices in MDSKILL. Unless otherwise specified, each experiment changes only the factor under study while retaining the same backbone, rollout budget, and optimization settings as the main experiments.

Ablation on Distillation Configuration. Table 2 evaluates the distillation weight and loss formulation. A moderate coefficient of λMD=0.2\lambda_{\mathrm{MD}} = 0.2 performs best on both benchmarks, while removing distillation or assigning it excessive weight substantially degrades performance. Joint loss also outperforms separate losses. It avoids fragmented updates across pairs with different response lengths and token counts, enabling more efficient and stable optimization. This formulation also preserves a consistent loss scale across heterogeneous distillation directions.

SettingALFWORLDWEBSHOP
Distillation weight
λMD=0.0\lambda_{\mathrm{MD}} = 0.081.346.9
λMD=0.1\lambda_{\mathrm{MD}} = 0.188.377.3
λMD=0.2\lambda_{\mathrm{MD}} = 0.293.882.8
λMD=0.5\lambda_{\mathrm{MD}} = 0.579.767.2
Loss formulation
Separate losses83.665.6
Joint loss (Ours)93.882.8

Table 2. Ablations on the distillation weight and loss formulation. We report the final overall success rate.

Ablation on Dynamic Skill Retrieval. Table 3 evaluates the components of dynamic skill retrieval under the same retrieval and training budgets. The full strategy performs best on both benchmarks, whereas relying on relevance alone causes the largest degradation. Removing either value metric, Thompson sampling, or temporal decay also reduces performance, demonstrating the complementary benefits of dynamic value estimation, uncertainty-aware exploration, and adaptation to the evolving policy.

Retrieval StrategyALFWORLDWEBSHOP
w/o Metrics (Relevance Only)73.465.6
w/o Reliability83.674.2
w/o Advantage91.476.6
w/o Thompson Sampling88.372.7
w/o Temporal Decay90.676.6
Full Dynamic Retrieval (Ours)93.882.8

Table 3. Ablation of dynamic skill retrieval. We report the final overall success rate.

Functional Skill Dynamics. Figure 7 provides three complementary views of multi-view skill evolution. Branch-wise learning dynamics. Figure 7(a) shows that all functional branches improve steadily and remain close to the skill-free branch on both benchmarks. No individual view exhibits persistent degradation, indicating that functional decomposition supports stable multi-view exploration. Functional skill composition. Figure 7(b) tracks skills with substantial Advantage (>0.6> 0.6). The planning share increases from 27.1% to 39.4% on ALFWorld and from 28.4% to 40.4% on WebShop, while grounding and control retain substantial proportions. This indicates that planning knowledge becomes increasingly valuable without replacing the complementary contributions of the other views. Cohort-wise skill evolution. Figure 7(c) shows stronger diagonal concentration for MDSKILL than for UCOB on both benchmarks: recently generated skills provide greater Advantage, while older cohorts gradually lose value as their knowledge is internalized. This pattern reflects a healthy self-evolution process that continually exposes new knowledge gaps and encourages the generation of more relevant skills.

Additional analyses of functional skill dynamics

Figure 7. Additional analyses of functional skill dynamics. (a) Branch-wise training success rates. (b) Evolution of skills with substantial Advantage (>0.6> 0.6) across the functional banks. (c) Cohort-wise evolution of skill Advantage on ALFWorld and WebShop.

Discussion on Distillation Gate

Figure 8 compares the strict and relaxed distillation gates across different model scales. For Qwen2.5-3B, the relaxed gate achieves consistently higher success rates through most of training, and the 7B model exhibits the same trend. In contrast, Qwen3-1.7B benefits more from the strict gate, particularly during the later training stages.

Training dynamics under strict and relaxed distillation gates on WebShop

Figure 8. Training dynamics under strict and relaxed distillation gates on WebShop. Solid and dashed lines denote the skill-view and skill-free branches, respectively.

This scale-dependent reversal suggests that the gate reflects the reliability required of skill-view supervision. Smaller models possess less task knowledge and tend to generate lower-quality skills, making skill-view trajectories more likely to provide misleading supervision. The strict gate permits forward and cross-view distillation only when all skill-free trajectories fail, filtering ambiguous comparisons and providing stronger evidence of skill-induced knowledge gain. Larger models generate and utilize more reliable skills; consequently, the relaxed gate can admit more informative teacher–student pairs and enlarge the effective distillation space without introducing excessive noise. Thus, strict filtering is preferable when skill-view supervision is less reliable, whereas relaxed filtering better exploits the stronger supervision available at larger model scales.

Analysis of Multi-View Distillation

We provide a local perspective on why multi-view skill decomposition can stabilize distillation. A successful mixed-skill trajectory may draw simultaneously on grounding, planning, and control knowledge, making it difficult to identify which guidance produced useful behavior. Redundant or conflicting guidance may also induce inconsistent token-level gradients. In a view-specific trajectory, the added skill guidance has an explicit functional role. This makes the supervision source easier to interpret, although success alone does not establish that the skill caused the outcome.

Fix an old policy π\pi and an anchor state xx, and condition on successful teacher trajectories with outcome Y=1Y=1. For this analysis, let VfV_f contain the three functional views: grounding, planning, and control. We use an idealized reference model in which a successful mixed-skill gradient is approximated by first selecting a latent functional source V∈VfV \in V_f and then drawing a stochastic distillation gradient GG from the corresponding view-conditioned distribution:

pmixideal(G∣x,Y=1)=∑v∈Vfαvp(G∣x,Y=1,V=v),(11)p_{\mathrm{mix}}^{\mathrm{ideal}}(G \mid x,Y=1)=\sum_{v\in V_f}\alpha_v p(G \mid x,Y=1,V=v), \tag*{(11)}

where αv=Pr⁡(V=v∣x,Y=1)\alpha_v=\Pr(V=v\mid x,Y=1) in this reference model. This approximation isolates variation in functional composition; it does not model interactions among skills presented together in an actual mixed-skill prompt.

For each view, define its conditional mean gradient and the aggregate mean as

μv=E[G∣x,Y=1,V=v],μˉ=∑v∈Vfαvμv.(12)\mu_v=\mathbb{E}[G\mid x,Y=1,V=v],\qquad\bar{\mu}=\sum_{v\in V_f}\alpha_v\mu_v. \tag*{(12)}

The gradient variation in the reference mixture decomposes into

σwithin2=∑v∈VfαvE[∥G−μv∥2∣x,Y=1,V=v],\sigma_{\mathrm{within}}^2=\sum_{v\in V_f}\alpha_v\mathbb{E}\left[\lVert G-\mu_v\rVert^2\mid x,Y=1,V=v\right],
σbetween2=∑v∈Vfαv∥μv−μˉ∥2.(13)\sigma_{\mathrm{between}}^2=\sum_{v\in V_f}\alpha_v\lVert\mu_v-\bar{\mu}\rVert^2. \tag*{(13)}

The first term captures variation within each view; the second captures differences among their expected gradients. Random changes in view composition introduce both terms into an unstratified batch gradient.

Consider BB independent, accepted teacher-gradient instances. Suppose a view-stratified batch contains exactly Bv=αvBB_v=\alpha_vB instances from each view. Under the reference model, the unstratified and stratified estimators satisfy

G^mix=1B∑b=1BGb,E[∥G^mix−μˉ∥2]=σwithin2+σbetween2B,\widehat{G}_{\mathrm{mix}}=\frac{1}{B}\sum_{b=1}^{B}G_b,\qquad\mathbb{E}\left[\left\lVert\widehat{G}_{\mathrm{mix}}-\bar{\mu}\right\rVert^2\right]=\frac{\sigma_{\mathrm{within}}^2+\sigma_{\mathrm{between}}^2}{B},
G^MV=∑v∈Vfαv(1Bv∑b=1BvGv,b),E[∥G^MV−μˉ∥2]=σwithin2B.(14)\widehat{G}_{\mathrm{MV}}=\sum_{v\in V_f}\alpha_v\left(\frac{1}{B_v}\sum_{b=1}^{B_v}G_{v,b}\right),\qquad\mathbb{E}\left[\left\lVert\widehat{G}_{\mathrm{MV}}-\bar{\mu}\right\rVert^2\right]=\frac{\sigma_{\mathrm{within}}^2}{B}. \tag*{(14)}

Both estimators have mean μˉ\bar{\mu} in this model. Fixing the view composition therefore removes its contribution to batch variance:

E[∥G^mix−μˉ∥2]−E[∥G^MV−μˉ∥2]=σbetween2B≥0.(15)\mathbb{E}\left[\left\lVert\widehat{G}_{\mathrm{mix}}-\bar{\mu}\right\rVert^2\right]-\mathbb{E}\left[\left\lVert\widehat{G}_{\mathrm{MV}}-\bar{\mu}\right\rVert^2\right]=\frac{\sigma_{\mathrm{between}}^2}{B}\ge0. \tag*{(15)}

The reduction is strict when the views have different expected gradients. A successful view-specific trajectory also identifies the functional role of its added guidance more clearly than a mixed-skill trajectory, whose success does not isolate the contributions or interactions of its component skills. The variance result concerns batch composition; it does not imply that every individual view-specific trajectory is a better teacher.

To relate variance to optimization, consider a locally fixed, LL-smooth distillation objective with μˉ=∇LMD(θ)\bar{\mu}=\nabla\mathcal{L}_{\mathrm{MD}}(\theta). For an unbiased gradient estimator G^\widehat{G} and learning rate 0<η<2/L0<\eta<2/L, one update satisfies

E[LMD(θ−ηG^)]≤LMD(θ)−η(1−Lη2)∥∇LMD(θ)∥2+Lη22E[∥G^−∇LMD(θ)∥2].(16)\mathbb{E}\left[\mathcal{L}_{\mathrm{MD}}\left(\theta-\eta\widehat{G}\right)\right] \leq\mathcal{L}_{\mathrm{MD}}(\theta)-\eta\left(1-\frac{L\eta}{2}\right)\left\|\nabla\mathcal{L}_{\mathrm{MD}}(\theta)\right\|^{2}+\frac{L\eta^{2}}{2}\mathbb{E}\left[\left\|\widehat{G}-\nabla\mathcal{L}_{\mathrm{MD}}(\theta)\right\|^{2}\right]. \tag*{(16)}

Thus, under the reference model’s assumptions, view stratification yields a tighter expected descent bound for the same number of accepted gradient instances. In MDSKILL, outcome gating and variable response lengths can change the number of accepted instances from each view, so Equations (14)–(16) are not exact variance identities for every training update. They isolate a mechanism by which explicit views can stabilize supervision. Consistent with this mechanism, Figure 6b shows increasing token overlap and a smaller, more stable absolute entropy gap under multi-view rollouts. These distributional measures do not directly estimate gradient variance.

Implementation of Functional Skill Reflection

MDSKILL uses view-specific reflection prompts to generate functionally distinct skills. Figure 9 summarizes their differences and presents examples from the trained ALFWorld skill banks. Shared prompt components are omitted for readability, with complete templates provided in our code.

Shared prompt components and view-specific reflection instructions for State-Grounding Reflection, Action-Planning Reflection, and Execution-Control Reflection, including skill-bank examples

Figure 9. View-specific reflection instructions and actual ALFWorld skills extracted from the trained skill banks. For readability, only the instructions that differ across functional views are shown; shared prompt components are omitted and provided in our code. Candidate skills are written to their intended banks only after functional-attribution verification.

Functional Skill Generation and Verification. For each trajectory comparison, MDSKILL generates grounding, planning, and control candidates using their respective prompts. Grounding captures task-relevant states, planning extracts action or subgoal ordering, and control focuses on execution monitoring and recovery. Each candidate then undergoes functional-attribution verification and is admitted to its intended bank only when the predicted category matches the requested view. This generate–then–verify process reduces cross-view contamination and preserves functional separation.

ALFWorld Example. Figure 9 presents three skills generated from an ALFWorld episode requiring a kettle to be cleaned and placed in a stoveburner. The grounding skill identifies uncertainty about the kettle’s location and cleanliness; the planning skill orders the locating, cleaning, and placement subgoals; and the control skill checks the object location and cleaning preconditions. The example shows how the same trajectory evidence yields distinct, functionally targeted skills rather than paraphrases of a single lesson.

Shared prompt components. Each prompt receives the task category, task description, trajectory outcome, a successful reference trajectory when available, and the trajectory being evaluated. It returns valid JSON containing {task_success, task_category, title, principle, when_to_apply, evidence}.

State-Grounding Reflection

View-specific instructions. Write one high-level grounding skill that helps a future agent determine the current world state before acting.

Think about:

  1. Which room, receptacle, visible object, inventory item, or object state mattered?

  2. What task-relevant fact was unknown or misinterpreted?

  3. What observation, navigation, or inspection action exposed that fact?

Functional boundary. Focus on identifying the current state, not action sequencing or error recovery.

Skill-bank example.

Title: Kettle State Observation

Principle: Observe the state of the kettle and determine whether it is clean, dirty, or not visible in the current scene.

When to apply: When determining the state of a kettle in a cleaning task, such as whether it needs cleaning or is already clean.

Evidence: The agent failed to recognize that the kettle was not visible or not in the required state and therefore did not proceed with the cleaning task.

Action-Planning Reflection

View-specific instructions. Write one high-level planning skill that helps a future agent choose and order actions that advance a similar task.

Think about:

  1. Which subgoal was active: search, open, take, clean, heat, cool, toggle, or place?

  2. Which action advanced that subgoal given the known state and inventory?

  3. What reusable ordering of subgoals follows from the comparison?

Functional boundary. Focus on forward task execution, not state discovery or failure diagnosis.

Skill-bank example.

Title: Clean Kettle and Place in Stoveburner

Principle: First, locate and examine the kettle to determine its state and location. Then, clean it using an appropriate method and place the cleaned kettle in the stoveburner.

When to apply: When a task requires cleaning a kettle and placing it in a stoveburner, but its location or state has not yet been identified.

Evidence: The agent repeatedly examined unrelated objects without locating the kettle and consequently failed to clean and place it in the stoveburner.

Execution-Control Reflection

View-specific instructions. Write one high-level control skill that helps a future agent detect, avoid, or repair execution errors.

Think about:

  1. Which action precondition, task constraint, or completion condition was violated or overlooked?

  2. Did the agent repeat an ineffective action, act on the wrong object, or advance before verifying the required state?

  3. What should the agent verify, retry differently, or backtrack from?

Functional boundary. Focus on verification and correction, not ordinary planning or initial state discovery.

Skill-bank example.

Title: Verify Preconditions Before Cleaning

Principle: Verify that the object is in the correct location and that a cleaning facility, such as a sinkbasin, is available before performing the cleaning action.

When to apply: When a cleaning action fails because the object location or required preconditions have not been confirmed.

Evidence: The agent repeatedly examined incorrect objects and attempted cleaning without first verifying the kettle’s location or the availability of a valid cleaning facility.

References

  1. [1]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 International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.arxiv.org/abs/2306.13649
  2. [2]Guanting Dong, Hangyu Mao, Kai Ma, Licheng Bao, Yifei Chen, Zhongyuan Wang, Zhongxia Chen, Jiazhen Du, Huiyang Wang, Fuzheng Zhang, et al. Agentic reinforced policy optimization. In International Conference on Learning Representations, volume 2026, pp. 16981–17017, 2026.arxiv.org/abs/2507.19849
  3. [3]Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. Group-in-group policy optimization for llm agent training. Advances in Neural Information Processing Systems, 38:46375–46408, 2026.arxiv.org/abs/2505.10978
  4. [4]Yuqian Fu, Haohuan Huang, Kaiwen Jiang, Jicai Liu, Zhuo Jiang, Yuanheng Zhu, and Dongbin Zhao. Revisiting on-policy distillation: Empirical failure modes and simple fixes. arXiv preprint arXiv:2603.25562, 2026.arxiv.org/abs/2603.25562
  5. [5]Yinghui He, Simran Kaur, Adithya Bhaskar, Yongjin Yang, Jiarui Liu, Narutatsu Ri, Liam Fowl, Abhishek Pangrahi, Danqi Chen, and Sanjeev Arora. Self-distillation zero: Self-revision turns binary rewards into dense supervision. arXiv preprint arXiv:2604.12002, 2026a.arxiv.org/abs/2604.12002
  6. [6]Zhongyu He, Yuanfan Li, Fei Huang, Tianyu Chen, Siyuan Chen, Xingyang Li, Meng Hsuan Yu, Xiangrong Liu, Leyi Wei, Lu Pan, et al. Siri: Self-internalizing reinforcement learning with intrinsic skills for llm agent training. arXiv preprint arXiv:2606.02355, 2026b.arxiv.org/abs/2606.02355
  7. [7]Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han. Search-rl: Training llms to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516, 2025.
  8. [8]Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in neural information processing systems, 33:9459–9474, 2020.arxiv.org/abs/2005.11401
  9. [9]Xiaozhe Li, Tianyi Lyu, Yang Li, Yichuan Ma, Peiji Li, Linyang Li, Qipeng Guo, Dahua Lin, and Kai Chen. What and when to distill: Selective hindsight distillation for multi-turn agents. arXiv preprint arXiv:2605.19447, 2026a.arxiv.org/abs/2605.19447
  10. [10]Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan-ang Gao, Wenkai Yang, Zhiyuan Liu, et al. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016, 2026b.arxiv.org/abs/2604.13016
  11. [12]Hongxiang Lin, Zhirui Kuai, Erpeng Xue, and Lei Wang. Skillc: Learning autonomous skill internalization in llm agents via contrastive credit assignment. arXiv preprint arXiv:2605.27899, 2026.arxiv.org/abs/2605.27899
  12. [13]Zhengxi Lu, Zhiyuan Yao, Zhuowen Han, Zi-Han Wang, Jinyang Wu, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, et al. Self-distilled agentic reinforcement learning. arXiv preprint arXiv:2605.15155, 2026a.arxiv.org/abs/2605.15155
  13. [14]Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Chengcheng Han, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. Skill0: In-context agentic reinforcement learning for skill internalization. arXiv preprint arXiv:2604.02268, 2026b.arxiv.org/abs/2604.02268
  14. [15]Qirui Mi, Zhijian Ma, Mengyue Yang, Haoxuan Li, Yisen Wang, Haifeng Zhang, and Jun Wang. Skill-pro: Learning reusable skills from experience via non-parametric ppo for llm agents. arXiv preprint arXiv:2602.01869, 2026.arxiv.org/abs/2602.01869
  15. [16]Siru Ouyang, Jun Yan, Yanfei Chen, Rujun Han, Zifeng Wang, Bhavana Dalvi Mishra, Rui Meng, Chun-Liang Li, Yizhu Jiao, Kaiwen Zha, et al. Skillos: Learning skill curation for self-evolving agents. arXiv preprint arXiv:2605.06614, 2026.arxiv.org/abs/2605.06614
  16. [17]John Schulman, Filip Wolski, Prafulla Dharival, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
  17. [18]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  18. [19]Yaorui Shi, Yuxin Chen, Zhengxi Lu, Yuchun Miao, Shugui Liu, Qi Gu, Xunliang Cai, Xiang Wang, and An Zhang. Skill1: Unified evolution of skill-augmented agents via reinforcement learning. arXiv preprint arXiv:2605.06130, 2026.arxiv.org/abs/2605.06130
  19. [20]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.arxiv.org/abs/2303.11366
  20. [21]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.
  21. [22]Songjun Tu, Chengdong Xu, Qichao Zhang, Yiwen Ma, Yaocheng Zhang, Linjing Li, Dong Li, Xiangyuan Lan, and Dongbin Zhao. Ucob: Learning to utilize and evolve agentic skills via credit-aware on-policy bidirectional self-distillation. arXiv preprint arXiv:2606.29502, 2026a.arxiv.org/abs/2606.29502
  22. [23]Songjun Tu, Chengdong Xu, Qichao Zhang, Yaocheng Zhang, Xiangyuan Lan, Linjing Li, Dong Li, and Dongbin Zhao. Dynamic dual-granularity skill bank for agentic rl. arXiv preprint arXiv:2603.28716, 2026b.arxiv.org/abs/2603.28716
  23. [24]Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023.arxiv.org/abs/2305.16291
  24. [25]Hao Wang, Guozhi Wang, Han Xiao, Yufeng Zhou, Yue Pan, Jichao Wang, Ke Xu, Yafei Wen, Xiaohu Ruan, Xiaoxin Chen, et al. Skill-sd: Skill-conditioned self-distillation for multi-turn llm agents. arXiv preprint arXiv:2604.10674, 2026.arxiv.org/abs/2604.10674
  25. [26]Zihan Wang, Kangrui Wang, Qineng Wang, Pingyue Zhang, Linjie Li, Zhengyuan Yang, Xing Jin, Kefan Yu, Minh Nhat Nguyen, Licheng Liu, et al. Ragen: Understanding self-evolution in llm agents via multi-turn reinforcement learning. arXiv preprint arXiv:2504.20073, 2025.arxiv.org/abs/2504.20073
  26. [27]Quan Wei, Siliang Zeng, Chenliang Li, William Brown, Qana Frunza, Wei Deng, Anderson Schneider, Yuriy Nevmyvaka, Yang Katie Zhao, Alfredo Garcia, et al. Reinforcing multi-turn reasoning in llm agents via turn-level reward design. arXiv preprint arXiv:2505.11821, 2025.
  27. [28]Peng Xia, Jianwen Chen, Hanyang Wang, Jiaqi Liu, Kaide Zeng, Yu Wang, Siwei Han, Yiyang Zhou, Xujiang Zhao, Haifeng Chen, et al. Skillrl: Evolving agents via recursive skill-augmented reinforcement learning. arXiv preprint arXiv:2602.08234, 2026.arxiv.org/abs/2602.08234
  28. [29]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengeng Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  29. [30]Chenxu Yang, Chuanyu Qin, Qingyi Si, Minghui Chen, Naibin Gu, Dingyu Yao, Zheng Lin, Weiping Wang, Jiaqi Wang, and Nan Duan. Self-distilled rlvr. arXiv preprint arXiv:2604.03128, 2026.arxiv.org/abs/2604.03128
  30. [31]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems, 35:20744–20757, 2022.arxiv.org/abs/2207.01206
  31. [32]Ruixiang Zhang, Richard He Bai, Huangjie Zheng, Navdeep Jaitly, Ronan Collobert, and Yizhe Zhang. Embarrassingly simple self-distillation improves code generation. arXiv preprint arXiv:2604.01193, 2026a.arxiv.org/abs/2604.01193
  32. [33]Xiaoying Zhang, Zichen Liu, Yipeng Zhang, Xia Hu, and Wenqi Shao. Retroagent: From solving to evolving via retrospective dual intrinsic feedback. arXiv preprint arXiv:2603.08561, 2026b.arxiv.org/abs/2603.08561
  33. [34]Yanfei Zhang, Xu Lin, and Chenglin Wu. Stepposd: Step-aware online preference distillation for agent reinforcement learning. arXiv preprint arXiv:2605.27140, 2026c.arxiv.org/abs/2605.27140
  34. [35]Zhiwei Zhang, Yudi Lin, Nikki Lijing Kuang, Linlin Wu, Xiaomin Li, Songtao Liu, and Fenglong Ma. Co-evolving skill generation and policy optimization. arXiv preprint arXiv:2606.08755, 2026d.arxiv.org/abs/2606.08755
  35. [36]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.arxiv.org/abs/2601.18734
  36. [37]Siyuan Zhu, Chao Yu, Rongxin Yang, Zongkai Liu, Jinjun Hu, Qiwen Chen, and Yibo Zhang. Gapgo: Generalized advantage grouped policy optimization. arXiv preprint arXiv:2605.13217, 2026.arxiv.org/abs/2605.13217

Paper details

vlnc:W_dbaw8ezb
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

AI-assisted tools · View statement →

Looking for related papers…
Contents