D-Skill: Distilling Teacher Knowledge through Agent Skills
Organizations: University of California, Berkeley
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.7x-8.3x 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.
Figures & tables
| Qwen3.6 35B-A3B | GPT-5.6 Luna | |||
| Method | Score | %GC | Score | %GC |
| Student trace only | 6.7 | 8.8 | ||
| Teacher trace only | 6.1 | 5.4 | ||
| D-Skill | 3.6 | 1.0 | ||
| Consolidation | ||
| Analyst | Sonnet | Qwen |
| Sonnet | 3.5 (88%) | 3.4 (59%) |
| Qwen | 4.5 (39%) | 3.9 (48%) |
| Method | Score | %GC |
| Student (Qwen3.6-35B-A3B) | 0.4 | — |
| SkillOpt | 1.4 | |
| D-Skill w/ SkillOpt backend | 5.7 | |
| D-Skill | 3.5 |
| Qwen3.6-35B-A3B | GPT-5.6 Luna | |||
| Method | Score | %GC | Score | %GC |
| Student | 1.4 | — | 1.1 | — |
| Teacher (DS-V4-Pro + Skill) | 1.8 | 100% | 1.8 | 100% |
| Trace2Skill (student trace, student-authored) | 4.2 | 1.6 | ||
| Trace2Skill (teacher trace, teacher-authored) | 2.8 | 1.6 | ||
| Trace2Skill (student trace, teacher-authored) | 1.1 | 5.9 | ||
| Tasks | Total | Per task | |
| SSB-V | 3.28$ | ¢ | |
| ALFWorld | 1.51$ | ¢ |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Tool | Input and output |
| <hanging></hanging> | No input. Lists every piece that is attacked and has no defender, for both sides. |
| <safety>m1, …</safety> | Up to five candidate moves. For each: whether it gives check (checkmate and stalemate named explicitly), the number of legal replies, every forcing reply (checks and captures with the captured piece named), attackers vs. defenders of the destination square, and the agent’s pieces left undefended afterwards. |
| <threats></threats> | No input. Null-move audit: the opponent’s forcing moves if the agent passed, and any immediate mate threats. |
| <board>move</board> | One move. The board after the agent’s move only, with material, undefended pieces, and check/checkmate status. |
| <simulate>move, r1, …</simulate> | One candidate and up to five opponent replies, each simulated independently from the position after the candidate: resulting board, material, undefended pieces, and whether the agent is in check. |
| <line>m1, r1, m2, …</line> | A complete line of two to six plies supplied by the agent (own moves and opponent replies alternating): the final board, material, undefended pieces, and check/mate status. |
| episodes consumed | |||||||
| Targets | 20 | 40 | 60 | 80 | 99 | ||
| SSB | actions | 2.8 | 1.4 | 5.3 | 2.1 | 0.7 | |
| reasoning + actions | 0.4 | 0.7 | 4.6 | 2.1 | 0.7 | ||
| 10 | 20 | 30 | 40 | 50 | 57 | ||
| ALFWorld | actions | 3.2 | 2.7 | 1.1 | 1.6 | 0.0 | 0.5 |
| reasoning + actions | 4.2 | 0.0 | 1.6 | 1.1 | 0.0 | 2.6 | |
| Targets | epoch 2 | epoch 3 | epoch 4 | epoch 5 | |
| SSB | actions | 2.5 | 5.3 | 2.1 | 1.8 |
| reasoning + actions | 0.7 | 0.4 | 0.4 | 1.4 | |
| ALFWorld | actions | 1.6 | 0.5 | 1.1 | 0.6 |
| reasoning + actions | 1.1 | 1.6 | 1.1 | 2.1 |