TL;DR
Skill-SD is a novel framework that boosts the training of multi-turn LLM agents by converting their own past trajectories into compact, natural language "skills." By using these skills to condition a privileged teacher model during training—while keeping the student prompt clean—and applying a novel importance-weighted reverse-KL loss, Skill-SD achieves massive performance gains over standard reinforcement learning and vanilla distillation without adding any retrieval overhead at inference time.
What Problem Does This Paper Address?
Training Large Language Model (LLM) agents for multi-turn interactive tasks (like navigating web UIs or executing complex API sequences) using Reinforcement Learning (RL) is notoriously difficult. Because agent tasks often feature long horizons and sparse, binary rewards (i.e., did the agent complete the task or not?), the model receives very little guidance on which specific tokens or actions were actually useful.
On-policy self-distillation (OPSD) can alleviate this by using a "privileged" teacher model (one that has access to ground-truth answers) to provide dense, token-level supervision to a student model. However, existing OPSD methods fail for multi-turn agents for two reasons:
- Lack of Unique Solutions: Unlike math or code problems with a single verifiable answer, agent tasks usually have diverse valid strategies. Forcing a teacher to condition on a single fixed solution constrains exploration.
- Training Collapse: Naively combining self-distillation with RL leads to distribution drift between the teacher and student, destabilizing the training objective and causing the model to collapse.
Methods
Skill-SD addresses these challenges by introducing a dynamic, training-only teacher signal alongside a mathematically grounded loss function.
The pipeline operates in three main steps:
- Skill Extraction & Selection: As the student interacts with the environment, an auxiliary LLM asynchronously summarizes completed trajectories into compact natural language "skills" (detailing successes, mistakes, and high-level workflows). These skills are stored in a task-local buffer and selected using an Upper Confidence Bound (UCB) bandit criterion to balance exploration and exploitation.
- Cross-Prompt Distillation: During training, the teacher model is conditioned on the task prompt augmented with the retrieved skill, while the student model only sees the plain task prompt. The student learns to internalize the teacher's strategic guidance.
- Importance-Weighted Reverse-KL Loss: Because the teacher and student share parameters but receive different prompts, a severe distribution mismatch occurs. The authors derive a novel importance-weighted reverse-KL loss ($\rho \cdot k_3$) that applies an explicit importance-correction weight ($\rho^{on}$) to eliminate gradient bias and stabilize training.
- Dynamic Synchronization: To prevent the teacher from falling behind as the student improves, the teacher's parameters ($\bar{\theta}$) are periodically synchronized with the latest student checkpoint.
Datasets
The authors evaluated Skill-SD on two demanding multi-turn agentic benchmarks:
- AppWorld: A comprehensive multi-app API benchmark featuring 457 APIs across 9 applications. It tests real-world API coordination, multi-app state management, and adaptive replanning. The authors trained on 90 available tasks and evaluated on the 57-task development set.
- Sokoban: A classic puzzle-planning benchmark requiring intense spatial reasoning and long-horizon planning. It features high irreversibility (a single wrong push can ruin the puzzle). The authors utilized a difficulty curriculum across 96 training levels and evaluated on 64 test levels.
Key Insights and Ideas
- Guide the Teacher, Not the Student: Directly injecting skills into the student's prompt (Skill-Augmented GRPO) causes severe overfitting to training trajectories and destroys validation performance. Confining skills to a training-only teacher branch allows the student to internalize the underlying logic through gradient updates, acting as a form of "System 2 to System 1" compilation.
- Student-Owned Rollouts are Essential: The paper reveals that teacher-owned (off-policy) rollouts cause catastrophic training collapse because the importance ratios become wildly unstable as the student diverges from the teacher's rollout distribution. Sustainable self-distillation requires student-owned (on-policy) rollouts.
- Self-Damping Convergence: As shown in Figure 2, the student progressively learns to match the teacher's distribution. Because of the importance-weighted formulation, the self-distillation gradient naturally dampens and approaches zero as student-teacher disagreement shrinks.
Key Results
Skill-SD substantially outperforms standard RL baselines and vanilla distillation methods across both benchmarks using Qwen3-4B-Instruct-2507 as the base model:
- AppWorld: Skill-SD achieved 64.9% accuracy, outperforming vanilla GRPO (+14.0% absolute improvement) and Skill-Augmented GRPO (+22.8% absolute improvement).
- Sokoban: Skill-SD reached 62.5% accuracy, beating vanilla GRPO (+10.9% absolute) and completely lapping Skill-Augmented GRPO, which collapsed to 20.3% due to prompt-level disruption of spatial reasoning.
- Vs. Vanilla OPD: Pure on-policy distillation without reward signals performed poorly (22.4% average accuracy), proving that distillation must be grounded by environment rewards.
Limitations and Future Work
The authors note three primary areas for future improvement:
- Lightweight Retrieval: Skill retrieval currently relies on a simple UCB bandit criterion rather than embedding-based semantic retrieval, which might limit performance as the skill bank scales up.
- Sampled-Token Distillation: The framework evaluates only the generated tokens rather than the full vocabulary to save memory on long-horizon traces. Exploring partial-vocabulary approximations could improve the fidelity of the self-evolution signal.
- Theoretical Bounds: The current gradient analysis operates at a token-level per-update resolution; extending this to trajectory-level KL bounds under dynamically evolving teacher references remains an open theoretical challenge.
Summary updated