2025-10-08 · 专家 · 自然语言处理 · 机器学习

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

该论文提出了一种名为AGENTFLOW的动态可训练的智能体系统,通过流式强化学习在多轮交互中优化规划器,以实现有效的规划和工具使用。

更新于 2026-01-04。作者:Zhuofeng Li、Haoxiang Zhang、Seungju Han、Sheng Liu、Jianwen Xie、Yu Zhang、Yejin Choi、James Zou、Pan Lu。

中文摘要

以结果为导向的强化学习推动了大型语言模型(LLMs)的推理能力,但现行的工具增强方法训练单一、模块化的策略,在完整上下文中交织思考和工具调用;这种方法在长期目标和多种工具面前扩展性较差,并且对新场景的泛化能力较弱。通过将工作分解到专门的模块中,代理系统提供了一个有希望的替代方案,然而,大多数系统仍然没有进行训练或者依赖于与多轮交互动态脱节的离线训练。我们引入了AgentFlow,这是一个可训练的、在流程中的代理框架,通过不断演变的记忆协调四个模块(规划器、执行器、验证器、生成器),并在多轮循环中直接优化其规划器。为了在实时环境中按策略训练,我们提出了基于流的组优化策略优化(Flow-GRPO),它通过将多轮优化转换为一系列可处理的单轮策略更新来解决长期目标和稀疏奖励的信用分配问题。它向每个回合广播单一、可验证的轨迹级结果,以使局部规划器的决策与整体成功保持一致,并通过组归一化优势稳定学习。在十个基准测试中,拥有70亿规模骨干网络的AgentFlow在搜索任务上平均准确率提高了14.9%,在代理任务上提高了14.0%,在数学任务上提高了14.5%,在科学任务上提高了4.1%,甚至超过了像GPT-4o这样的大型专有模型。进一步的分析证实了在流程中优化的好处,显示出改进的规划、增强的工具调用可靠性和与模型规模和推理回合的正相关关系。

英文摘要

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.

解读

一句话总结

该论文提出了一种名为AGENTFLOW的动态可训练的智能体系统,通过流式强化学习在多轮交互中优化规划器,以实现有效的规划和工具使用。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源