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

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Expert, extended

Summary

AgentFlow is a novel trainable, in-the-flow agentic framework designed to optimize large language models for effective planning and tool use in complex, multi-turn interactions. It coordinates a planner, executor, verifier, and generator via an evolving memory, directly optimizing the planner within the live multi-turn loop. The system employs Flow-based Group Refined Policy Optimization (Flow-GRPO) to address long-horizon, sparse-reward credit assignment by broadcasting a single trajectory-level outcome to every turn and stabilizing learning with group-normalized advantages. Using a 7B-scale backbone, AgentFlow achieved average accuracy gains of 14.9% on search, 14.0% on agentic, 14.5% on mathematical, and 4.1% on scientific tasks, even surpassing GPT-4o.

Key takeaway

For AI Architects designing advanced LLM applications requiring multi-turn reasoning and diverse tool use, you should evaluate AgentFlow's "in-the-flow" agentic system. Its on-policy optimization via Flow-GRPO significantly enhances planning and tool-calling reliability, outperforming larger monolithic models. This approach offers a robust framework for tackling long-horizon tasks, demonstrating superior performance and positive scaling with increased reasoning turns.

Key insights

AgentFlow optimizes LLM agent planning on-policy in multi-turn interactions using Flow-GRPO for robust, long-horizon task execution.

Principles

Method

Flow-GRPO converts multi-turn RL into single-turn policy updates by broadcasting a final outcome reward to every turn and using group-normalized advantages for stable on-policy training.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.