arXiv:2610.28914cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28914

D-Skill: Distilling Teacher Knowledge through Agent Skills

Shuo Yuan, Dacheng Li, Joseph E. Gonzalez

ABSTRACT

Frontier language-model agents excel at complex tasks, but high inference costs make transferring their capabilities to smaller models essential. Traditional knowledge distillation achieves this through parameter updates, requiring access to the student's weights and additional training compute while encoding the transferred knowledge implicitly in the parameters. We introduce D-Skill, a framework that treats the teacher as a black box and distills its behavioral advantage into an interpretable natural-language skill by analyzing paired rollouts and identifying behavioral divergences and agreements. The resulting lessons are consolidated offline, with any compatible skill-update backend, into a skill document that is provided to the student at inference time. D-Skill constructs the skill entirely offline from fixed trajectories, without labels, further environment interaction, or weight updates after rollout collection. Across SpreadsheetBench-Verified, ALFWorld, and chess puzzles spanning multiple teacher-student pairs, D-Skill closes 75%–95% of the teacher-student gap without touching model weights. After a single offline pass over the paired traces, D-Skill outperforms one-epoch SFT baselines and remains competitive with multi-epoch SFT. Under the same model family, the resulting student also incurs 5.7×−8.3×5.7\times-8.3\times lower inference cost per task than the teacher. Our results demonstrate that natural-language skill distillation offers a performant, interpretable, and efficient alternative to weight-based capability transfer.

1 INTRODUCTION

Frontier agents can reliably solve complex agentic tasks (OpenAI, 2026b; Anthropic, 2026a; Jimenez et al., 2024; Yao et al., 2024; Xie et al., 2024; Merrill et al., 2026), but their high inference costs (Chen et al., 2023b) make it desirable to transfer their capabilities to cheaper student models (Hinton et al., 2015; Hsieh et al., 2023; Zeng et al., 2024; Chen et al., 2023a; 2024; Kang et al., 2026). Classical knowledge distillation performs this transfer by updating the student's parameters using supervision such as the teacher's output distribution (Hinton et al., 2015; Kim & Rush, 2016; Gu et al., 2023), complete teacher-generated trajectories (Ho et al., 2023; Hsieh et al., 2023; Zeng et al., 2024; Chen et al., 2023a; 2024; Kang et al., 2026), or teacher evaluations of student-generated samples (Agarwal et al., 2024; Bai et al., 2022; Lee et al., 2023). Despite differences in supervision, these approaches impose several constraints: weight access is required, excluding many proprietary API-served models; backpropagation adds substantial computational cost; and sufficient training data is needed for

Figure

Figure 1: D-Skill closes the gap at a fraction of its cost. D-Skill closes 84% of the teacher-student gap at 8.3×8.3 \times lower inference cost on SpreadsheetBench-Verified. Teacher: GPT-5.6 Terra; student: GPT-5.6 Luna.

Code is available at https://github.com/shuo-yuan/D-Skill.

the student to generalize. Moreover, the transferred knowledge is encoded in the model's parameters, making it difficult to inspect, revise, or correct after training (Meng et al., 2022; Yao et al., 2023).

Recent work has shown that skills, natural-language artifacts encoding reusable task knowledge, strategies, and procedures, can substantially improve agent performance without modifying model weights (Anthropic, 2025a; Ni et al., 2026; Yang et al., 2026; Zhang et al., 2026). Because skills remain external to the model, they are portable across deployments and can be inspected or edited after construction (Anthropic, 2025a). Existing skill-generation methods are generally not organized around the teacher–student relationship central to distillation. Teacher-driven methods compile stronger-model trajectories or teacher-generated modules without conditioning the transfer on the target student's behavior (Ni et al., 2026; Fu et al., 2024; Qiu et al., 2025). Student-centered methods instead learn from the target agent's own experience, including contrasts between successful and failed rollouts, without a matched stronger-agent reference (Shinn et al., 2023; Zhao et al., 2024; Wang et al., 2024; Suzgun et al., 2026; Zhang et al., 2026; Yang et al., 2026; Ma et al., 2026). D-Skill instead constructs a student-targeted skill by comparing teacher and student trajectories collected on the same tasks. We ask whether their behavioral differences can be distilled, in a single offline pass over fixed traces, into an external textual update.

We propose D-Skill, a method for distilling model capabilities into a skill by comparing paired teacher and student rollouts. For each unlabeled task, we obtain one rollout from each model, either through fresh execution or from previously saved traces. A difference analyst extracts lessons from both divergences and agreements between the two behaviors. Divergences identify states in which the student behaves differently from the teacher and pair the student's behavior with the teacher's alternative, while agreements identify shared strategies that should be preserved. These lessons are consolidated into a single skill, which is loaded into the student's context at inference time. Once the rollouts have been collected, D-Skill requires no answer keys, labels, held-out evaluation, or further environment interaction. The teacher and student contribute only through their fixed traces: neither is queried or fine-tuned during analysis and consolidation, and no model weights are modified.

We evaluate D-Skill on SpreadsheetBench Verified, ALFWorld and chess puzzles using different teacher-student pairs with different model families. As presented in section 4.1, across all three benchmarks and different teacher-student settings, D-Skill closes 83.4% to 89.3% of the teacher-student performance gap on SpreadsheetBench Verified, 84.6% to 94.6% on ALFWorld, and 75.3% to 87.7% on chess puzzles. This transfer also yields substantial inference-cost savings: in the GPT-5.6 Terra–Luna setting, the D-Skill student costs 8.3×8.3\times less per task than the teacher on SpreadsheetBench Verified and 5.7×5.7\times less per episode on ALFWorld (see section 5.3). We further compare D-Skill with supervised fine-tuning and find that it provides stronger transfer after a single pass over the teacher corpus while attaining performance comparable to multi-epoch fine-tuning (Section 5.2). These results demonstrate that textual skill distillation can match weight-based transfer in the evaluated setting while producing an artifact that remains readable, editable, and portable. In summary, this paper makes the following contributions:

• We formulate skill distillation as an alternative to weight-based knowledge distillation, encoding transferred capabilities in an external, interpretable artifact that requires neither weight access nor gradient-based training.

• We introduce D-Skill, a simple yet effective method that distills paired teacher and student rollouts by identifying their behavioral divergences and agreements and consolidating the resulting lessons into a reusable skill. After rollout collection, the method requires no labels, held-out evaluation, or further environment interaction.

• We demonstrate across three benchmarks and multiple teacher–student pairs that D-Skill closes most of the performance gap. In addition, it also outperforms the evaluated skill-learning baselines while retaining substantially lower inference cost than the teacher.