Beyond On-Policy vs. Off-Policy: At What Level Should LLM Agent Distillation Follow the Student?
Organizations: Aalto University
Abstract
Distilling interactive LLM agents requires choosing between teacher-generated demonstrations and student-generated experience, corresponding broadly to off-policy and on-policy distillation. While both have proven effective, we argue that this distinction is inherently hierarchical: the policy that induces an interaction history need not be the same as the policy that generates the token prefix of the current action. We introduce a hierarchical agent distillation framework that formalizes these two levels of on-policiness and enables explicit control over their pairing, mixture proportions, and training schedule. We study this problem through self-distillation, where a frozen teacher has access to task guidance unavailable to the student, and conduct a three-stage controlled study across three models and four interactive environments. We find that student-induced histories paired with teacher-generated action prefixes generally provide the strongest standalone training signal, whereas following the student at both levels generally performs worst. Nevertheless, fully on-policy data becomes beneficial when incorporated into a mixture with other configurations. Moreover, mixtures with identical teacher/student proportions at each level can yield substantially different performance, showing that how the two levels are paired matters beyond the overall amount of on-policy data. Finally, front-loading fully teacher-generated contexts and delaying fully on-policy contexts improves over a static mixture. These findings provide practical principles for deciding where, how much, and when agent distillation should follow the student.
Figures & tables
| Model | ToolQA | OfficeBench | ALFWorld | WebShop | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SR | pass@3 | Action Count | SR | pass@3 | Action Count | SR | pass@3 | Action Count | SR | pass@3 | Task Score | Action Count | |
| Qwen3-8B | 17.2 2.7 | 20.1 | 11.3 | 7.0 0.9 | 8.1 | 14.2 | 37.2 1.7 | 48.2 | 30.1 | 6.6 1.0 | 9.4 | 38.1 1.5 | 11.3 |
| + TT | 81.7 0.9 | 89.2 | 6.3 | 70.9 3.3 | 76.7 | 9.1 | 69.7 2.3 | 77.4 | 16.7 | 70.2 0.7 | 78.0 | 78.5 0.8 | 7.9 |
| + ST | 81.1 1.5 | 91.3 | 6.8 | 74.8 2.1 | 84.9 | 8.2 | 71.7 2.0 | 79.9 | 15.1 | 73.3 0.2 | 83.2 | 82.2 1.0 | 7.1 |
| + TS | 79.8 1.1 | 87.9 | 6.4 | 71.7 2.5 | 80.2 | 8.7 | 69.3 1.5 | 75.5 | 15.4 | 69.1 0.9 | 79.2 | 75.0 0.3 | 7.5 |
| + SS | 74.5 1.7 | 82.4 | 7.5 | 65.9 1.8 | 73.3 | 9.6 | 60.8 1.8 | 67.9 | 20.0 | 58.9 1.1 | 66.8 | 73.1 0.9 | 9.9 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | ToolQA | OfficeBench | ALFWorld | WebShop |
| Training tasks | 646 | 191 | 3,000 | 3,000 |
| Training rounds | 8 | 8 | 8 | 8 |
| Task visits per round | 256 | 128 | 768 | 768 |
| Total task visits | 2,048 | 1,024 | 6,144 | 6,144 |
| Equivalent task passes | 3.17 | 5.36 | 2.05 | 2.05 |
| Action examples per task visit | 8 | 8 | 8 | 8 |
| Parameter | Qwen3 | Ministral-3 |
|---|---|---|
| Numerical precision | BF16 | BF16 |
| LoRA rank | 128 | 128 |
| Learning rate | ||
| Weight decay | - | 0.01 |
| Warmup updates (ToolQA, OfficeBench, ALFWorld, WebShop) | 13, 7, 39, 39 (linear) | - |
| Schedule after warmup | Constant | Constant |
| Model | Temperature (teacher) | Top- (teacher) | Temperature (student) | Top- (student) |
|---|---|---|---|---|
| Qwen3-8B | 0.7 | 0.95 | 0.7 | 0.8 |
| Qwen3-14B | 0.7 | 0.95 | 0.7 | 0.8 |
| Ministral-3 | 0.09 | 1.0 | 0.08 | 1.0 |
| Model | ToolQA | OfficeBench | ALFWorld | WebShop | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SR | pass@3 | Action Count | SR | pass@3 | Action Count | SR | pass@3 | Action Count | SR | pass@3 | Task Score | Action Count | |
| Qwen3-8B | |||||||||||||
| + TT | |||||||||||||
| + ST | |||||||||||||
| + TS | |||||||||||||
| + SS | |||||||||||||
| Model | Configuration | Unresolved(%) | Identified(%) | Addressed(%) |
|---|---|---|---|---|
| Qwen3-8B | ST | 85.0 | 77.1 | 83.0 |
| TT | 19.1 | 90.2 | 81.2 | |
| Qwen3-14B | ST | 82.7 | 80.7 | 84.5 |
| TT | 14.0 | 89.3 | 86.0 | |
| Ministral-3 | ST | 83.3 | 80.6 | 82.9 |
| TT | 15.7 | 88.1 | 82.9 |
| Model | Configuration | Repeated failure | Premature completion | Rule inconsistency | Operational mistake | Planning mistake |
| Qwen3-8B | TT | 20% | 7% | 2 % | 2 % | 11% |
| ST | 9 % | 5 % | 7% | 2 % | 7 % | |
| TS | 17% | 7% | 7% | 5% | 7 % | |
| SS | 22% | 24% | 7% | 12% | 20% | |
| Qwen3-14B | TT | 14% | 7% | 1 % | 2% | 9% |
| ST | 7 % | 2 % | 6% | 2% | 5 % |
| Model | Retained student prefix | Executability (%) | Appropriateness (%) |
|---|---|---|---|
| Qwen3-8B | None ( ) | 92.0 | 80.2 |
| Reasoning | 81.0 | 70.7 | |
| Reasoning + half operation | 73.2 | 56.2 | |
| Qwen3-14B | None ( ) | 94.7 | 83.8 |
| Reasoning | 85.2 | 76.0 | |
| Reasoning + half operation | 76.0 | 60.2 |
| Model | ToolQA | OfficeBench | ALFWorld | WebShop |
|---|---|---|---|---|
| Qwen3-8B | 0.1 | 0.7 | 1.9 | 0.7 |
| Qwen3-14B | 0.3 | 1.4 | 1.6 | 0.5 |
| Ministral-3 | 0.3 | 0.6 | 0.7 | 0.9 |
On-Policy Distillation
On-policy distillation trains a model on its own outputs using teacher guidance, aligning supervision with the states it encounters at deployment.
See all 507 papers