ActionOPD:蒸馏决策,而非词元

·

研究论文 · 2026/10/15

将能力强的语言模型智能体蒸馏到更小的模型,需要使学生行为与教师对齐。这引出一个根本问题:应在哪些状态、以何种粒度进行对齐?离线模仿提供密集但针对特定token的监督,且可能遭受状态分布不匹配。token级在线策略蒸馏(OPD)解决了这种不匹配,但通常需要教师token概率和兼容的分词器。我们认为语义动作提供了智能体蒸馏的自然监督单元。我们提出ActionOPD,一种动作级在线策略蒸馏方法,其动机是在学生遇到的状态上最大化期望教师动作似然。在每个这样的状态,ActionOPD从学生和黑盒教师中采样动作,根据学生动作与采样教师动作的语义一致性给予奖励。通过策略优化,ActionOPD将学生的动作级行为与教师的决策对齐,无需复现教师书写的推理或访问教师token概率。在多样化的精选工具使用任务上,用两个教师训练Qwen3-4B和Qwen3-8B,在四个分布外基准上平均提升3.3-6.9个百分点。ActionOPD随学生规模和教师能力良好扩展,无需教师和学生共享模型家族或分词器。在τ^2-bench上,ActionOPD取得了与离线蒸馏和token级OPD竞争的性能。我们进一步探索了使用同模型教师和特权上下文的Self-ActionOPD。这些结果确立了ActionOPD作为智能体蒸馏的一种有前景的方法。

该工作提出了一种不依赖教师token概率和分词器兼容性的智能体蒸馏新范式,在多个基准上取得显著提升,且扩展性良好,为小模型智能体训练提供了实用且有效的方案。

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 τ^2-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.

阅读原文

参与讨论