FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing

Mingda Zhang, Wenjin Liu, Tiesunlong Shen, Qika Lin, Rui Mao, Erik Cambria, Xiaoying Tang, Haoran Luo

TL;DR

FlowSteer introduces a novel "Agent Designing Agentic Workflows" paradigm where a lightweight AI agent automatically constructs, tests, and refines complex multi-step workflows for downstream execution. By framing workflow generation as an interactive, turn-based editing process on an executable "Workflow Canvas," FlowSteer leverages reinforcement learning and real-time execution feedback to dramatically outperform traditional static and search-based orchestration methods.

What Problem Does This Paper Address?

As LLM applications transition from simple single-turn question answering to complex, end-to-end task completion, organizing cognitive operators (like planning, coding, and verifying) into structured workflows has become essential. However, existing workflow orchestration methods suffer from three major bottlenecks:

  1. Human Dependence: Most workflows still rely heavily on manual drag-and-drop design or rigid, rule-based templates.
  2. Lack of Graph-Level Feedback: Current agents typically operate on raw text or isolated tool calls, lacking an environment that provides structured feedback on the entire workflow graph's validity.
  3. Inability to Repair Errors In-Loop: One-shot generation or search-based methods cannot iteratively fix structural mistakes as they emerge during long-horizon construction, leading to sparse learning signals and unstable credit assignment.
Figure 2: Comparison of different workflow orchestration paradigms: static workflow selection, offline workflow generation, automated workflow optimization, and our interactive workflow orches- tration framework FlowSteer.

Methods

To overcome these challenges, the authors propose FlowSteer, which splits the problem into a decoupled designer-executor architecture:

  • The Workflow Canvas: A novel executable graph-state environment. For every atomic edit the agent makes, the canvas performs syntax parsing and constraint checking, returning immediate, localized feedback (success status, failure reasons, and repair suggestions).
  • Flow-Director (The Designer Agent): A lightweight policy model (built on Qwen3-8B) that interacts with the canvas. Instead of generating a massive workflow all at once, it issues a single atomic action per turn (e.g., adding, deleting, modifying, or setting prompts for operator nodes).
  • Reinforced Progressive Canvas Editing: The Flow-Director is trained end-to-end using a modified Group Relative Policy Optimization (GRPO) framework. To handle the interactive environment, the authors introduce a canvas-aware token mask that prevents the agent from calculating gradients on the feedback text returned by the canvas, ensuring unbiased policy updates.
Figure 1: Overview of the FlowSteer framework. The agent initializes with the task, then through multi-turn interaction with the canvas iteratively builds and refines the workflow, finally learning from diversity-constrained rewards.

Datasets

FlowSteer was evaluated across twelve public benchmarks spanning mathematical reasoning, question answering, and code generation:

  • In-Distribution (IID) Benchmarks: GSM8K, MATH, HotPotQA, SQuAD v2, MBPP, and HumanEval.
  • Out-of-Distribution (OOD) Benchmarks: TriviaQA, NaturalQuestions, MathQA, AIME 2025, APPS, and DS-1000.

Key Insights and Ideas

  • Designer-Executor Decoupling: By separating the workflow design (handled by the lightweight Flow-Director) from the workflow computation (handled by a pluggable backend LLM like GPT-4o-mini), a small model can effectively amplify the capabilities of a larger model without needing task-specific fine-tuning of the backend.
  • Decomposed Cognitive Load: FlowSteer uses a two-step mechanism where the agent first decides which operator to add (structural decision) and then specifies how to prompt it (content decision). This separation significantly lowers the cognitive load, allowing smaller models to excel at complex orchestration.
  • Structural-then-Answer Gating: To prevent the agent from taking "shortcuts" (e.g., attempting to output an answer immediately without building a robust workflow), the reward function uses a strict gate: answer rewards are completely locked until all structural diversity constraints on the canvas are fully satisfied.

Key Results

FlowSteer demonstrated substantial performance gains over direct prompting, supervised fine-tuning (SFT), and advanced search-based baselines like AFlow:

  • Accuracy Boosts: On the highly challenging MATH dataset, FlowSteer achieved an accuracy of 81.25% (a +20.31% improvement over GPT-4o-mini). On the competitive AIME 2025 benchmark, it achieved 26.67% accuracy, outperforming AFlow's 13.33%.
  • Orchestration Efficiency: Compared to baseline variants, the progressive editing strategy significantly reduced both token consumption and the number of interactive turns required to reach a correct solution.
  • Cross-Backend Transferability: Because the policy agent learns generalized, task-agnostic orchestration strategies rather than model-specific shortcuts, a Flow-Director trained on one backend transfers seamlessly to other modern LLM backends (such as DeepSeek-V3.2, Claude-Opus-4.5, and Gemini-3-Flash) without retraining.

Limitations and Future Work

The authors note two primary limitations of the current framework:

  1. Error Propagation: FlowSteer relies heavily on historical context. If the agent makes a fundamental error early in the interaction (such as an incorrect problem decomposition), that error can propagate and degrade subsequent decisions.
  2. Context Saturation: For exceptionally long-horizon tasks, the full interaction history can saturate the model's context window, leading to information loss.

To address these bottlenecks, future work will focus on developing dedicated memory mechanisms for the Flow-Director, including hierarchical context compression and retrieval-augmented memory to store and recall past canvas states efficiently.

Summary updated

BibTeX
@inproceedings{zhang2026flowsteer,
  author = {Mingda Zhang and Wenjin Liu and Tiesunlong Shen and Qika Lin and Rui Mao and Erik Cambria and Xiaoying Tang and Haoran Luo},
  title = {{FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=R0wivLiPfK},
}
Figure