Agent-Reflex:教语言智能体进行反思式行动
Agent-Reflex: Teaching Language Agents to Act Reflectively
AI总结:
本研究针对现有智能体反思学习与失败恢复监督不足的问题,提出Agent-Reflex框架,通过RSD、ReSFT、ORPO三阶段训练,在多基准上优于基线,提升了智能体的噪声鲁棒性与训练可扩展性。
摘要:
大型语言模型已从单轮聊天机器人发展为具备长程推理能力的交互式智能体。在实际部署中,MCP工具服务可能返回含噪声的反馈,用户也可能介入纠正智能体,但现有方法为反思学习和失败恢复提供的监督有限。为弥合这一差距,我们提出Agent-Reflex,一种用于激励智能体主动反思的通用训练框架。具体而言,Agent-Reflex包含三个阶段:第一,环境反思技能发现(RSD),在环境扩展中注入基于工具反馈的扰动,采样能力多样化的大语言模型(LLM)池,挖掘匹配的成功-失败对,并总结可复用的反思元技能;第二,基于该技能库,应用反思式监督微调(ReSFT),将每个技能转化为自我反思、技能恢复和以用户为中心的纠正的监督,强化互补的反思行为;第三,我们提出在线反思式策略优化(ORPO),将含噪声交互下的智能体强化学习与反思引导的在线蒸馏相结合,进一步激发主动反思。基于Qwen3-8B构建的Agent-Reflex在5个长程工具使用基准上的综合得分为58.6,在AgentNoiseBench上的得分为29.1,优于强大的环境扩展和反思基线。对6个具有挑战性的智能体基准套件的实验证明了Agent-Reflex的有效性。进一步分析表明,Agent-Reflex在保持稳定训练动态的同时,提升了智能体对噪声的鲁棒性,支持可扩展的智能体训练。我们的代码可在该https URL获取。
英文摘要:
Large language models have evolved from single-turn chatbots into interactive agents capable of long-horizon reasoning. In real deployments, MCP tool services can return noisy feedback and users may intervene to correct the agent, but existing methods provide limited supervision for reflection learning and failure recovery. To bridge this gap, we propose Agent-Reflex, a general training framework for incentivizing proactive reflection in agents. Specifically, Agent-Reflex comprises three stages. First, Environment Reflection Skill Discovery (RSD) injects grounded tool-feedback perturbations into environment scaling, samples a capability-diverse LLM pool, mines matched success-failure pairs, and summarizes reusable reflection meta-skills. Building on this skill library, we then apply Reflective Supervised Fine-Tuning (ReSFT) that converts each skill into supervision for self-reflection, skill recovery, and user-centric correction, strengthening complementary reflective behaviors. Finally, we propose On-Policy Reflective Policy Optimization (ORPO) to combine agentic reinforcement learning under noisy interactions with reflection-guided on-policy distillation to further elicit proactive reflection. Built on Qwen3-8B, Agent-Reflex reaches 58.6 overall on five long-horizon tool-use benchmarks and 29.1 on AgentNoiseBench, surpassing strong environment-scaling and reflection baselines. Experiments on six challenging agent benchmark suites demonstrate the effectiveness of Agent-Reflex. Further analyses show that Agent-Reflex improves agents' robustness to noise while maintaining stable training dynamics, supporting scalable agent training. Our code is available at https://github.com/RUC-NLPIR/Agent-Reflex.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。