ActionOPD: Distilling Decisions, Not Tokens
Organizations: Tsinghua University
Abstract
Distilling capable language-model agents into smaller models requires aligning the student's behavior with the teacher's. This raises a fundamental question: at which states and at what granularity should this alignment be performed? Offline imitation provides dense but token-specific supervision and can suffer from state-distribution mismatch. Token-level on-policy distillation (OPD) addresses this mismatch but typically requires teacher token probabilities and compatible tokenization. We argue that semantic actions provide a natural unit of supervision for agent distillation. We introduce ActionOPD, an action-level on-policy distillation method motivated by maximizing expected teacher-action likelihood at student-encountered states. At each such state, ActionOPD samples actions from both the student and a black-box teacher, rewarding student actions according to their semantic agreement with the sampled teacher actions. Through policy optimization, ActionOPD aligns the student's action-level behavior with the teacher's decisions without requiring reproduction of teacher-written reasoning or access to teacher token probabilities. Training Qwen3-4B and Qwen3-8B with two teachers on diverse, curated tool-use tasks yields average gains of 3.3-6.9 percentage points across four out-of-distribution benchmarks. ActionOPD scales favorably with student size and teacher capability, without requiring the teacher and student to share a model family or tokenizer. On -bench, ActionOPD achieves competitive performance against offline distillation and token-level OPD. We further explore Self-ActionOPD with a same-model teacher and privileged context. These results establish ActionOPD as a promising approach to agent distillation.
Figures & tables
| Model | Airline | Retail | Telecom | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Train (30) | Test (20) | Train (74) | Test (40) | Train (74) | Test (40) | Train | Test | |
| Qwen3-32B | 49.2/16.7 | 43.8/15.0 | 46.0/16.2 | 46.9/15.0 | 25.7/13.5 | 41.9/30.0 | 40.3/15.5 | 44.2/20.0 |
| Base | 35.0/10.0 | 33.8/5.0 | 26.7/6.8 | 26.9/ 10.0 | 17.2/4.1 | 26.9/7.5 | 26.3/6.9 | 29.2/7.5 |
| KD | 38.3/ 20.0 | 37.5/ 20.0 | 37.5/ 13.5 | 33.8/ 12.5 | 25.3 / 13.5 | 41.3 / 25.0 | 33.7/ 15.7 | 37.5/ 19.2 |
| OPD | 40.0 /13.3 | 41.3 / 20.0 | 40.2 / 10.8 | 37.5 / 10.0 | 22.6/ 10.8 | 40.0/ 22.5 | 34.3 /11.7 | 39.6 / 17.5 |
| ActionOPD | 42.5 / 16.7 | 40.0 / 15.0 | 42.9 / 10.8 | 39.4 / 12.5 | 28.4 / 13.5 | 40.6 /15.0 | 37.9 / 13.7 | 40.0 /14.2 |
| Model | Airline | Retail | Telecom | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Train (30) | Test (20) | Train (74) | Test (40) | Train (74) | Test (40) | Train | Test | |
| Base | 35.0/ 10.0 | 33.8 /5.0 | 26.7/6.8 | 26.9/10.0 | 17.2/4.1 | 26.9/7.5 | 26.3/6.9 | 29.2/7.5 |
| Validity Reward | 42.5 / 16.7 | 30.0/ 10.0 | 23.7/8.1 | 26.3/10.0 | 25.3 / 14.9 | 36.3/10.0 | 30.5/ 13.2 | 30.8/10.0 |
| Binary Reward | 35.8 / 10.0 | 33.8 / 10.0 | 35.8/8.1 | 36.3/ 17.5 | 28.4 / 13.5 | 40.6 / 15.0 | 33.3 /10.5 | 36.9/ 14.2 |
| Random Commit | 34.2/3.3 | 27.5/ 10.0 | 41.6 / 16.2 | 40.6 / 15.0 | 24.0/8.1 | 44.4 / 12.5 | 33.2/9.2 | 37.5 / 12.5 |
| ActionOPD | 42.5 / 16.7 | 40.0 / 15.0 | 42.9 / 10.8 | 39.4 /12.5 | 28.4 / 13.5 | 40.6 / 15.0 | 37.9 / 13.7 | 40.0 / 14.2 |
| Pattern / Task Context | Qwen3-4B Base | Qwen3-4B + ActionOPD |
|---|---|---|
| Following Policy Constraints Airline ( ). The user requests a flight change, but basic economy bookings cannot be modified. | Reads that the booking is basic economy, yet modifies the flight through the API, violating the policy. Outcome: Failure . | Explains the restriction and calls the transfer tool when the user requests escalation. Success means keeping the booking unchanged, not rebooking. Prohibited modifications: . Outcome: Success . |
| Tracking the Correct Target Retail ( ). Change the target order’s address and speaker. Retrieve the new address in New York from another order. | Treats the source order’s New York address as if it already belonged to the target. Changes only the speaker. The target’s address remains in Los Angeles. Outcome: Failure . | Retrieves the source address, then updates the target’s address followed by its speaker. The returned order contains both the New York address and the requested green speaker. Outcome: Success . |
| Completing and Verifying Actions Telecom ( ). Restore service after an overdue-bill suspension and an unseated SIM. Payment alone does not reactivate the line. | Promises restoration after payment but never calls resume_line . The user pays and reboots, but service remains disconnected and the agent transfers the case. Outcome: Failure . | Recovers from an invalid tool call, resumes the line with resume_line , and guides the user to reseat the SIM. User-side tool output confirms connection, and the evaluator verifies that the debt is cleared. Outcome: Success . |
| Model | Airline | Retail | Telecom | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Train (30) | Test (20) | Train (74) | Test (40) | Train (74) | Test (40) | Train | Test | |
| Privileged Teacher | 51.7/33.3 | 35.0/15.0 | 38.2/6.8 | 38.1/17.5 | 20.6/8.1 | 37.5/20.0 | 36.8/16.1 | 36.9/17.5 |
| Base | 35.0 / 10.0 | 33.8 / 5.0 | 26.7 / 6.8 | 26.9 / 10.0 | 17.2 / 4.1 | 26.9 / 7.5 | 26.3 / 6.9 | 29.2 / 7.5 |
| Self-ActionOPD | 44.2 / 26.7 | 35.0 / 10.0 | 35.1 / 8.1 | 35.6 / 10.0 | 19.3 / 5.4 | 31.3 / 10.0 | 32.9 / 13.4 | 34.0 / 10.0 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | AWM | EnvScaler |
|---|---|---|
| Source tasks | 10,000 | 2,550 |
| Context-eligible | 9,380 | — |
| Deterministic integrity pass | 7,562 | 2,495 |
| Static feasibility: healthy | 5,942 | 755 |
| Environments represented in the final pool | 794 | 49 |
| Setting | Transfer experiment | Tau ablations |
|---|---|---|
| Student | Qwen3-4B or Qwen3-8B | Qwen3-4B |
| Action teacher | Qwen3.7-Flash or DeepSeek-V4-Flash | Qwen3-32B |
| Training tasks | AWM/EnvScaler static-feasibility pools | Official train splits |
| Collection steps reported | 100 | 50 |
| Task starts per step | 64: 59 AWM + 5 EnvScaler | 24: 8 per Tau domain |
| Student samples | 4 | 4 |
| Generation Settings | ||||
| Experiment | Role and Model | Thinking | Sampling | Maximum Response |
| AWM/ EnvScaler Training | Student: Qwen3-4B/8B | Enabled | ; ; | 4k |
| Teacher: DeepSeek-V4-Flash | Enabled; effort max | — | 4k | |
| Teacher: Qwen3.7-Flash | Enabled | ; | 8k | |
| Matcher: DeepSeek-V4-Flash | Disabled | 128 | ||
| User: DeepSeek-V4-Flash | Disabled | — | ||
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 567 papers