Manuscript Offprint

arXiv:2610.05284

Fusion is the New Mutation: Bandit-Guided Evolution on Workflow Graphs

Zhiwei Shang, Jiahang Sun, Mingrong Gong, Mingze Kong, Zikun Qu, Pingchen Lu, Junhao Dong, Zhipiao Liu, Hongwei Yang, Guoqing Xie, Yao Shu, Zhongxiang Dai

ABSTRACT

Automated agentic workflow optimization relies on costly evaluations, making it essential to allocate a limited evaluation budget effectively. Multi-parent fusion can reuse designs from previously discovered workflows, but identifying promising parent combinations requires learning from limited fusion feedback. We introduce DAGO (Directed Acyclic Graph Optimization), a contextual-bandit-guided framework that learns which parent workflows to fuse under a limited evaluation budget. DAGO formulates each candidate parent combination as an arm, represented by pretrained embeddings of its constituent workflows' code and prompts. A diagonal LinUCB policy learns a shared reward model across arms and balances exploitation of arms with high predicted offspring quality against uncertainty-driven exploration. After an arm is selected, an LLM generates a child workflow through summary-guided fusion, and the child's validation score serves as the reward for updating the bandit. A shared directed acyclic graph maintains discovered workflows and their multi-parent lineage, providing an expanding pool of parents for subsequent arm proposals. Across six benchmarks covering mathematical reasoning, code generation, and question answering, DAGO achieves the highest macro-average score among the evaluated baselines. Under matched validation-evaluation budgets, it improves over AFlow from 80.3 to 81.7 while reducing aggregate search expenditure by 11.2%. Ablation studies show that LinUCB-guided arm selection outperforms both random selection and its exploration-free variant, supporting the value of feedback-driven selection and exploration-exploitation balance.

1 INTRODUCTION

Agentic workflows coordinate large language model (LLM) calls, tools, and control-flow logic to solve complex tasks. Automating their design turns workflow construction into a search problem over executable programs. ADAS generates new agentic systems by conditioning on an archive of previous discoveries (Hu et al., 2025), while AFlow explores workflow code through a variant of Monte Carlo Tree Search (Zhang et al., 2025d). In these settings, assessing a candidate requires executing its LLM calls and tools on validation examples, making search evaluations costly. Under a limited evaluation budget, an optimizer must therefore decide not only how to generate new workflows, but also which generation decisions are worth evaluating.

Multi-parent fusion offers a way to reuse useful designs from previously discovered workflows. For example, a workflow with effective problem decomposition may provide useful guidance for improving another workflow with a strong verification procedure. Existing approaches already explore workflow recombination: EvoFlow uses LLM-based crossover (Zhang et al., 2025a), and MermaidFlow introduces constraint-preserving crossover over workflow graphs (Zheng et al., 2025). However, an effective fusion operator does not by itself determine which parents should be fused. High individual validation scores do not guarantee that a parent combination will produce a strong child, and the number of possible combinations grows combinatorially as more workflows are discovered. Evaluating every combination is impractical, while selecting parent combinations at random does not use past fusion outcomes to guide future choices. The central challenge is thus to learn which combinations merit the next expensive fusion and evaluation.

This motivates our research question: Under a limited evaluation budget, how can we learn from past fusion outcomes to select promising parent workflow combinations? We introduce DAGO

DAGO: Bandit-Guided Multi-Parent Workflow Evolution

Task-level workflow search with cross-lineage fusion

N=10N = 10 roots T≤30T \leq 30 fusion rounds

Figure

Figure 1: Overview of the DAGO framework. (a) The DAG stores workflows, validation scores, and parent lineage. (b) Annealed score sampling proposes parent combinations. (c) Diagonal LinUCB selects a combination from code-and-prompt embeddings. (d) Summary-guided fusion generates a child. Validation feedback updates LinUCB and the DAG; the highest-scoring workflow is returned.

(Directed Acyclic Graph Optimization), a contextual-bandit-guided framework that makes this selection problem explicit. An arm is a selectable action in a bandit problem; here, it corresponds to a candidate combination of parent workflows to fuse. The child's validation score serves as the reward, rather than an aggregate of the parents' existing scores. This distinction directs learning toward the quality of the generated workflow, rather than merely favoring parents that already perform well individually.

To learn from limited feedback, DAGO uses a shared linear reward model across arms instead of learning an independent reward estimate for every combination. Each workflow is represented by pretrained embeddings of its code and prompts, and an arm's features concatenate its parent embeddings in descending order of validation score. At each iteration, annealed score-based sampling proposes a manageable set of candidate arms without enumerating the full combination space. A diagonal LinUCB policy (Li et al., 2010; Chu et al., 2011) then selects an arm by combining predicted child-workflow quality with an uncertainty-driven exploration bonus. The shared representation allows feedback from evaluated arms to inform the ranking of newly proposed arms, while the exploration bonus encourages evaluating alternatives beyond those with the highest current predictions. The diagonal approximation keeps arm scoring and online updates lightweight. Thus, parent scores guide candidate proposal, whereas observed fusion rewards guide arm selection, allocating evaluation opportunities through an explicit exploration-exploitation mechanism.

DAGO embeds this decision process in a workflow-generation loop. A shared directed acyclic graph (DAG) stores discovered workflows and their multi-parent generation lineage, providing an expanding pool of parents for subsequent arm proposals. This DAG records the search history, not the execution graph within an individual workflow. After the bandit selects an arm, an LLM summarizes the parents' strengths and constraints and generates a child through summary-guided fusion, starting from the strongest parent and applying targeted modifications informed by the selected workflows. The child's validation score updates the bandit, and the child is added to the DAG. At the end of search, DAGO returns the workflow with the highest validation score for reuse on the target task; arm selection occurs during optimization rather than separately for each test query.

We evaluate DAGO on six benchmarks spanning mathematical reasoning (GSM8K and MATH), code generation (HumanEval and MBPP), and question answering (HotpotQA and DROP). DAGO achieves the highest macro-average score among the evaluated baselines. Under the same validation-evaluation budget cap as AFlow, it improves the macro-average score from 80.3 to 81.7 while

Figure

(a) Performance across benchmarks.

(b) Macro-average ranking.

Figure 2: Overall performance across benchmarks and average ranking. Selected methods from Table 1, with test scores averaged over three executions. (a) Solve rate / pass@1 / F1 for math / code / QA; brackets show DAGO's gains over AFlow in points. (b) Six-task macro averages.

reducing aggregate search expenditure by 11.2% across the six benchmarks. Arm-selection ablations show that the default LinUCB policy achieves higher mean scores than both random selection and an exploration-free variant on all three tested benchmarks, supporting the value of feedback-guided selection and the exploration bonus. Our contributions are threefold:

  1. A bandit formulation of workflow fusion decisions. We model each parent workflow combination as an arm whose reward is the generated child's validation score, making feedback-driven parent selection central to workflow search under limited evaluation budgets.

  2. A shared, uncertainty-aware arm-selection mechanism. We combine pretrained code-and-prompt representations, score-based candidate proposal, and diagonal LinUCB to reuse fusion feedback across arms and guide exploration without exhaustive combination evaluation.

  3. An integrated framework with empirical evaluation. We integrate arm selection with DAG-based workflow memory and summary-guided fusion, and evaluate performance, search expenditure, and the effects of learned selection and exploration across reasoning, coding, and question-answering tasks.

References (38)