arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05592cs.AIcs.CLcs.LGcs.MA
收藏

用于有效规划和工具使用的流内智能体系统优化

In-the-Flow Agentic System Optimization for Effective Planning and Tool Use

Stanford University(斯坦福大学);Texas A&M University(德克萨斯农工大学);UC San Diego(圣地亚哥大学);Lambda Website(Lambda网站)

Zhuofeng Li, Haoxiang Zhang, Seungju Han, Sheng Liu, Jianwen Xie, Yu Zhang, Yejin Choi, James Zou, Pan Lu

AI总结:

研究针对大语言模型中工具增强方法的不足,提出可训练的流内智能体框架AgentFlow及Flow-GRPO训练方法,通过协调模块优化规划器,在多基准测试中表现优异,展现流内优化优势。

摘要:

结果驱动的强化学习推动了大语言模型的推理,但现有的工具增强方法训练的是一个单一的整体策略,在长视野和多样工具下扩展性差且对新场景泛化能力弱。智能体系统提供了一种有前途的替代方案,但大多无需训练或依赖离线训练。我们引入了AgentFlow,一个可训练的流内智能体框架,通过不断演变的记忆协调四个模块,并在多轮循环中直接优化其规划器。为在实时环境中进行在线训练,我们提出了基于流的组细化策略优化(Flow-GRPO)。在十个基准测试中,具有70亿参数主干的AgentFlow优于顶级基线,在搜索、智能体、数学和科学任务上平均准确率分别提高了14.9%、14.0%、14.5%和4.1%。进一步分析证实了流内优化的好处,包括改进规划、提高工具调用可靠性以及与模型大小和推理轮数的正相关缩放。

英文摘要:

Outcome-driven reinforcement learning has advanced reasoning in large language models (LLMs), but prevailing tool-augmented approaches train a single, monolithic policy that interleaves thoughts and tool calls under full context; this scales poorly with long horizons and diverse tools and generalizes weakly to new scenarios. Agentic systems offer a promising alternative by decomposing work across specialized modules, yet most remain training-free or rely on offline training decoupled from the live dynamics of multi-turn interaction. We introduce AgentFlow, a trainable, in-the-flow agentic framework that coordinates four modules (planner, executor, verifier, generator) through an evolving memory and directly optimizes its planner inside the multi-turn loop. To train on-policy in live environments, we propose Flow-based Group Refined Policy Optimization (Flow-GRPO), which tackles long-horizon, sparse-reward credit assignment by converting multi-turn optimization into a sequence of tractable single-turn policy updates. It broadcasts a single, verifiable trajectory-level outcome to every turn to align local planner decisions with global success and stabilizes learning with group-normalized advantages. Across ten benchmarks, AgentFlow with a 7B-scale backbone outperforms top-performing baselines with average accuracy gains of 14.9% on search, 14.0% on agentic, 14.5% on mathematical, and 4.1% on scientific tasks, even surpassing larger proprietary models like GPT-4o. Further analyses confirm the benefits of in-the-flow optimization, showing improved planning, enhanced tool-calling reliability, and positive scaling with model size and reasoning turns.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑