NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MoFlow: Multi-Objective Agentic Workflow Generation

Yining Lu, Aurelie Lozano, Xi Yang, Naoki Abe, Yu Deng, Meng JiangarXiv 2026

TL;DR

MoFlow is a new framework that generates agentic workflows optimized for multiple competing goals—like accuracy, cost, and speed—in a single search. By formulating workflow generation as a multi-objective Markov decision process, it builds a "Pareto front" of solutions, allowing users to instantly select the best trade-off for their specific needs without ever having to retrain the system.

What Problem Does This Paper Address?

Building an "agentic workflow"—a structured graph of LLM calls and operations—is the current frontier for squeezing high performance out of AI models. However, designing these workflows is a balancing act. While we usually want maximum accuracy, real-world deployment also demands low cost, low latency, robustness to noisy inputs, and consistency across runs.

Existing automated workflow generators (like AFlow) typically optimize for a single metric or a fixed "weighted sum" of objectives. This creates a "one-size-fits-all" problem: if your business needs shift from "highest accuracy at any cost" to "good enough accuracy at minimum cost," you have to rerun the entire expensive search process from scratch. The authors ask: Can we span the entire Pareto front of possible workflows in a single run?

Methods

MoFlow treats workflow construction as a Multi-Objective Markov Decision Process (MOMDP). Instead of a single path to a single goal, the search explores a tree of potential graph edits (adding operators, loops, or ensembles).

Key technical innovations include:

  • Convex-Hull Monte Carlo Tree Search (CHMCTS): Standard MCTS stores a single scalar value at each node. MoFlow instead stores a Convex Coverage Set (CCS)—a collection of the best reachable trade-offs.
  • Optimistic Set-Valued Backups: As the search progresses, it propagates these sets of trade-offs back up the tree. It uses "optimistic" pruning to keep the number of stored trade-offs manageable while ensuring the search doesn't miss high-potential paths.
  • Contextual Zooming for Trees (CZT): To explore the preference space efficiently, MoFlow samples different "preference weights" (e.g., prioritizing cost over accuracy) during each trial. It uses CZT to refine the search tree specifically in regions where small changes in preference lead to different optimal workflow designs.
  • GNN-Based Performance Prediction: Evaluating a workflow by actually running it is expensive. MoFlow trains a Graph Neural Network (GNN) to predict the performance of partial and complete workflows based on their graph structure, significantly speeding up the search.
Figure 2: Overall MoFlow framework. MoFlow searches once, then answers any preference by lookup. Each trial samples a preference w and walks the tree as follows. At a decision node, the trial selects an action for w; at a chance node, an LLM realizes that action into at most Nr distinct outcomes, each visited with empirical probability p estimating T(s′ | s, a). Decision and chance nodes alternate until a terminal action completes the workflow; MoFlow then executes it and backs the result up the visited path (faded nodes are branches the current trial does not visit). Every node therefore stores a convex coverage set ( ˆV (s) at decision nodes, ˆQ(s, a) at chance nodes), so a single tree can unroll different workflows for different preferences such as w1 and w2 (Inference panel).

Datasets

The authors evaluated MoFlow across six diverse benchmarks using four different base models (GPT-4o mini, Claude 3.5 Haiku, Gemini 1.5 Flash, and DeepSeek-V3-Flash):

  • Mathematics: AIME 2024 and MATH-Hard (Level 5 problems).
  • Coding: MBPP (sanitized) and SWE-Bench Lite.
  • Question Answering: GPQA-Diamond and HotpotQA-Hard.

Workflows were evaluated on five objectives: Accuracy, Cost, Latency, Robustness, and Consistency.

Key Insights and Ideas

  • Cross-Preference Transfer: A major "aha" moment is that searching for one set of preferences helps find good solutions for others. Because all preferences share the same underlying search tree, the effort spent finding a "high-accuracy" workflow naturally uncovers "medium-accuracy, low-cost" branches.
  • Stepwise Construction vs. Monolithic Revision: Unlike earlier methods that try to revise a whole workflow at once, MoFlow builds them edit-by-edit. This allows for much finer "credit assignment"—knowing exactly which operator added the most value to which objective.
  • Predictability of Workflows: The success of the "Offline" MoFlow variant proves that a GNN can learn to estimate workflow quality remarkably well just from the graph topology and prompt archetypes, without needing to execute the code every time.

Key Results

MoFlow consistently outperformed six strong baselines (including AFlow and ADAS) in Hypervolume, a metric that measures how well a set of solutions covers the space of possible trade-offs.

  • Superior Coverage: As seen in Figure 1, MoFlow matches or beats baselines on nearly every objective across all benchmarks.
  • Efficiency: The "Offline" version of MoFlow, which uses a pretrained GNN evaluator, is at least 17 times cheaper than the best baseline while still achieving higher average hypervolume.
  • Zero-Shot Inference: Once the search is done, MoFlow can serve any new preference (e.g., "I want 90% accuracy and I don't care about cost") via a simple lookup in the search tree, requiring zero additional LLM calls for the design phase.
Per-objective coverage showing MoFlow (red) pushing the boundaries further than baselines.

Limitations and Future Work

  • Linear Preferences: MoFlow currently assumes users have linear preferences (weighted sums). It covers the "convex hull" of the Pareto front but might miss specific "concave" trade-offs that require non-linear optimization.
  • Fixed Operator Pool: The system relies on a human-designed pool of operators (like "Ensemble" or "ReviewRevise"). Future work could involve letting the LLM discover entirely new types of operators during the search.
  • Search Budget: The authors noted that their "Online" runs were stopped early to save costs; it's possible that with a larger budget, the performance gap over baselines would widen even further.

Summary updated

BibTeX
@misc{lu2026moflow,
  author = {Yining Lu and Aurelie Lozano and Xi Yang and Naoki Abe and Yu Deng and Meng Jiang},
  title = {{MoFlow: Multi-Objective Agentic Workflow Generation}},
  year = {2026},
  eprint = {2609.38294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38294},
}
Figure