重新审视LLM代理时代的DAgger
Revisiting DAgger in the Era of LLM-Agents
AI总结:
本文提出通过DAgger算法改进长周期LLM代理,通过学生与教师策略的回合级插值收集轨迹,并利用教师提供的监督标签训练学生,有效缓解协变量偏移并提升性能。
摘要:
长周期LM代理通过多轮交互学习,单个早期错误会改变后续状态分布并导致轨迹失败。现有方法存在互补不足:监督微调提供密集教师监督但因训练于非策略教师轨迹而产生协变量偏移;而具有可验证奖励的强化学习通过学习策略性轨迹避免非策略不匹配但仅提供稀疏反馈。本文通过重新审视DAgger算法改进多轮LM代理:该算法通过学生与教师策略的回合级插值收集轨迹,然后利用教师提供的监督标签训练学生。通过直接与环境交互,模型暴露于部署中可能遇到的真实状态,从而有效缓解协变量偏移。此外,由于学生通过模仿教师行为学习,学习过程中获得丰富反馈。为了展示DAgger兼具两界优势,我们测试了该算法训练软件工程代理,使用4B和8B规模的学生模型。在SWE-bench Verified上,我们的DAgger式训练在4B模型上比最强的post-training基线提高3.9分,在8B模型上提高3.6分。所得到的4B代理达到27.3%,优于代表性的8B SWE代理系统,而8B代理达到29.8%,超越SWE-Gym-32B并接近更强的32B规模代理。此外,一致的提升在保留的SWE-Gym分割上也表明DAgger对现代长周期LM代理的有效性。
英文摘要:
Long-horizon LM agents learn from multi-turn interaction, where a single early mistake can alter the subsequent state distribution and derail the whole trajectory. Existing recipes fall short in complementary ways: supervised fine-tuning provides dense teacher supervision but suffers from covariate shift because it is trained on off-policy teacher trajectories; while reinforcement learning with verifiable rewards avoids this off-policy mismatch by learning from on-policy rollouts but with only sparse outcome feedback. We address this dilemma by revisiting Dataset Aggregation (DAgger) for multi-turn LM agents: the algorithm collects trajectories through a turn-level interpolation of student and teacher policies, and the student is then trained on these trajectories using supervised labels provided by the teacher. By directly interacting with environments, we expose the model to realistic states likely to be encountered during deployment, thereby effectively mitigating covariate shift. Besides, since the student is learned by mimicking the teacher's behavior, it receives rich feedback during learning. To demonstrate DAgger enjoys the benefits of both worlds, we tested the algorithm to train a software-engineering agent with 4B- and 8B-scale student models. On SWE-bench Verified, our DAgger-style training improves over the strongest post-training baseline by +3.9 points at 4B and +3.6 points at 8B. The resulting 4B agent reaches 27.3%, outperforming representative published 8B SWE-agent systems, while the 8B agent achieves 29.8%, surpassing SWE-Gym-32B and coming within 5 points of stronger 32B-scale agents. Together with consistent gains on the held-out SWE-Gym split, these results suggest the effectiveness of DAgger for modern long-horizon LM agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。