PivotOPD:学习从多轮智能体的关键错误中恢复

·

研究论文 · 2026/10/01

在策略蒸馏(OPD)通过在学生生成的轨迹上提供密集的教师监督来训练语言智能体,但在多轮交互中,一个错误动作会改变学生后续遇到的状态,导致错误跨轮次累积。在三个Qwen3模型(8B至235B)上的初步实验发现,超过一半的失败轨迹包含一个关键错误——即让智能体偏离任务完成的动作,且该错误通常发生在早期。这些关键错误往往仍可恢复:仅在关键轮次后引导模型几轮即可恢复任务成功。为此,作者提出PivotOPD,一种在策略蒸馏框架,联合训练学生预防关键错误并从其造成的状态中恢复。在每个关键错误处,教师模型提供一个黄金动作,并在随后几轮中每轮指定一个恢复动作。预防性蒸馏使用黄金动作和反向KL使学生远离关键错误,而恢复性蒸馏使用恢复动作和正向KL来传递学生很少采样到的恢复行为。在ALFWorld、WebShop和基于搜索的QA上,与13个基线相比,PivotOPD对Qwen3-1.7B和Qwen3-8B学生均取得最强平均性能,其中1.7B学生在ALFWorld上比最强基线提升+5.5%。该增益还迁移到软件工程领域的另一个模型家族,PivotOPD将Nemotron-3.5学生在SWE-Bench Verified上的解决率提升+3.2%。项目页面:https://research.nvidia.com/labs/lpr/pivotopd/

该工作针对多轮智能体中错误累积的关键问题,提出可同时预防和恢复关键错误的蒸馏框架,在多个基准和模型规模上取得一致提升,并展示了跨模型家族和领域的迁移能力,对构建更鲁棒的语言智能体具有实用价值。

On-policy distillation (OPD) is a promising approach for training language agents, providing dense teacher supervision on student-generated trajectories. However, in multi-turn interaction, an incorrect action changes the states the student encounters later, so errors compound across turns. In preliminary experiments across three Qwen3 models (8B to 235B), we find that more than half of the failed rollouts contain a pivotal mistake, an action that moves the agent farther from completing the task, and this mistake typically occurs early. These pivotal mistakes often remain recoverable: guiding the model for only a few turns after the pivotal turn can restore task success. We therefore propose PivotOPD, an on-policy distillation framework that jointly trains the student to prevent pivotal mistakes and to recover from the states they create. At each pivotal mistake, a teacher model provides a gold action and then names a recovery action at each of the next few turns. Preventive distillation uses the gold action with reverse KL to steer the student away from the pivotal mistake, while recovery distillation uses the recovery actions with forward KL to transfer recovery behaviors that the student rarely samples. Against 13 baselines on ALFWorld, WebShop, and Search-based QA, PivotOPD achieves the strongest average performance for both Qwen3-1.7B and Qwen3-8B students, improving over the strongest baseline on ALFWorld by +5.5% with the 1.7B student. The gains also transfer to another model family on the software engineering domain, where PivotOPD raises the resolve rate of a Nemotron-3.5 student on SWE-Bench Verified by +3.2%. Project page: https://research.nvidia.com/labs/lpr/pivotopd/

阅读原文

参与讨论