TL;DR
ActionOPD is a new on-policy distillation method for language model agents that aligns student behavior with teacher decisions at the semantic action level rather than the token level. By rewarding semantic agreement in student-encountered states, it enables effective distillation from black-box teachers across different model families, improving agent performance by up to 6.9 percentage points on out-of-distribution benchmarks.
What Problem Does This Paper Address?
Distilling large, frontier models into smaller, efficient "agent" models is challenging. Traditional methods like Offline Knowledge Distillation (KD) suffer from state-distribution mismatch: the student is trained on teacher-generated trajectories but struggles when it encounters new states during its own deployment.
Token-level On-Policy Distillation (OPD) addresses this by supervising the student on its own generated sequences. However, it typically requires access to the teacher's token probabilities (logits) and assumes both models share the same tokenizer. This makes it impossible to distill from black-box API models or models with different architectures. Furthermore, token-level imitation is often too rigid; two agents might use different reasoning steps or wording to arrive at the exact same correct tool call. The authors argue that we should be distilling the decision (the semantic action), not the specific tokens used to express it.
Methods
The core of ActionOPD is shifting the unit of supervision from tokens to semantic actions (e.g., a specific tool call with its arguments or a specific communicative intent).
- Action-Level Semantic Reward: At each state encountered by the student, the system samples $K$ actions from a teacher and $N$ candidate responses from the student. A "semantic matcher" (a combination of programmatic checks for tool calls and an LLM for natural language) determines if a student's action matches the teacher's intent.
- On-Policy Optimization: Using a REINFORCE-style policy gradient, the student is rewarded for generating responses that semantically match the teacher's sampled actions. This allows the student to use its own "reasoning" tokens as long as they lead to the "correct" action.
- Frequency Bonus: To handle teacher uncertainty or multi-modal distributions, the reward is scaled based on how many teacher samples a student action matches.
- State-Group Rollout: The training process uses a specific rollout strategy where multiple student candidates are evaluated at each state, but only the highest-reward action is executed to advance the environment, balancing exploration with teacher guidance.
The authors also introduce Self-ActionOPD, where a model acts as its own teacher. In this mode, the "teacher" version of the model is given privileged context (e.g., hidden task goals or reference solutions) to generate better actions, which then supervise the "student" version that only sees public information.
Datasets
- Training: The models were trained on curated tool-use tasks from Agent World Model (AWM) and EnvScaler, totaling 6,697 tasks across hundreds of environments.
- Evaluation: To test generalization, the authors used four out-of-distribution benchmarks: BFCL Multi-turn, ToolSandbox, AppWorld (Normal and Challenge), and $\tau^2$-bench (covering Airline, Retail, and Telecom domains).
Key Insights and Ideas
- Decoupling from Tokenization: Because the supervision happens at the semantic level, ActionOPD allows for "cross-family" distillation. For example, they successfully distilled a DeepSeek-V4-Flash teacher into a Qwen3 student.
- Teacher as a Black Box: The method only requires the teacher to generate text, not provide internal probability distributions. This opens the door to using proprietary API-based models as teachers.
- Scaling Laws for Distillation: The researchers found that ActionOPD scales favorably: larger students (8B vs 4B) and stronger teachers (DeepSeek vs Qwen) consistently lead to better performance.
Key Results
- Performance Gains: Training Qwen3-4B and 8B models with ActionOPD yielded average gains of 3.3–6.9 percentage points across the four evaluation benchmarks compared to base models.
- Competitive with Baselines: On $\tau^2$-bench, ActionOPD achieved competitive results against standard offline KD and token-level OPD, despite having a more flexible (and arguably harder) supervision signal.
- Self-Improvement: Self-ActionOPD improved the Qwen3-4B model's performance on $\tau^2$-bench by 4.8 percentage points (pass1), demonstrating that models can learn from their own "privileged" versions.
Limitations and Future Work
- Teacher Fallibility: The student aims to match the teacher, meaning it will also learn the teacher's errors or suboptimal strategies.
- Matching Errors: The LLM-based semantic matcher is not perfect and can produce false positives or negatives, potentially misassigning rewards during training.
- Computational Cost: Sampling multiple responses from both the teacher and student at every state is computationally expensive compared to offline methods.
- Future Directions: The authors suggest exploring larger sample sizes ($K$ and $N$) to improve coverage in long-horizon tasks and refining the semantic matcher to be more robust.
Summary updated