WorksComputer Science
It Takes Workflows to Evolve Better Workflows
Abstract
Tackling complex real-world tasks can exceed the capabilities of a single large language model (LLM), motivating the use of multi-agent workflows that coordinate specialized agents to work together on these tasks. Recent methods train LLMs to construct better workflows from execution outcomes, but they optimize only the workflow generator, while the other agents that build or execute each workflow remain fixed even though every outcome depends on all of them. However, extending training beyond the generator is challenging: the agents are coupled, and a workflow's outcome is a single sparse score that cannot tell which agent causes a failure. We propose FloWright, which leverages the workflow as a harness to optimize workflows. By introducing a hierarchical, structure-aware reward paradigm, FloWright enables one role to self-evolve and two or more roles to co-evolve, with no additional models, labels, or executions. Considering the limitation that workflows are commonly trained and evaluated on data that a single agent can already handle, we further propose DataWright, an adaptive data hardening approach that converts existing datasets into workflow-level tasks with increased difficulty. Across document, slide, chart, code, math, and finance tasks, small open models trained with FloWright achieve improved performance by up to , with co-evolving () more roles gaining more than optimizing one of them alone (). Our project page: https://xhguo7.github.io/FloWright/.
Introduction
Large language models (LLMs) are increasingly capable of leveraging tools and specialized skills to solve tasks ((Zhang et al., 2025e; Qian et al., 2025; Wang et al., 2025c; Zhang et al., 2026a)). However, tackling complex real-world problems can go beyond the capability of a single LLM, as it demands gathering evidence across heterogeneous inputs, reasoning over long contexts and diverse sources, and accumulating intermediate results over many steps ((Yu et al., 2025b; Zhu et al., 2025)). To address such tasks, LLMs construct multi-agent workflows that break complex tasks into subtasks and coordinate specialized agents ([14] (Zhang et al. 2025d; Niu et al. 2025)).
Yet constructing an effective workflow for a complex task remains challenging, and many multi-agent frameworks still rely on substantial manual design ([1] (Jin et al. 2026; Li et al. 2025)). To reduce this manual effort, recent works optimize LLMs to construct better workflows by training them against the outcomes of executing those workflows ((Nie et al., 2025; Nielsen et al., 2026)). However, these methods typically optimize a single workflow generator, while the agents that execute the workflow, and any other agents that help build it, remain fixed (§A.1). Since the outcome of a workflow depends jointly on every agent that builds or executes it, training only the generator leaves other agents shaping every outcome without ever learning from it, significantly limiting how much the workflow as a whole can improve.
Extending training beyond the generator introduces two additional challenges. First, agents in a workflow are interdependent: one agent’s output can become another’s input, and overall performance depends on their joint behavior. Existing multi-agent training either trains each agent separately ([11] (Mowat et al. 2025)) or co-trains agents with distinct roles only within a fixed pairing or a hand-designed system ([15] (Park et al. 2025; Zhao et al. 2026; Wan et al. 2025)) (§A.2). Training agents separately thus ignores how each agent’s behavior shapes what the others learn, while co-training remains confined to a single role or a predefined agent structure rather than the workflows constructed for each task. Second, the outcome of a workflow is usually a single score for the whole workflow. It is sparse whenever the workflow falls short, and cannot tell which agent causes a failure. Methods that do attribute failures to specific agents or steps, however, rely heavily on learned critics or reward models, LLM judges, human annotation, or repeated executions (Liu et al., 2025; Zhang et al., 2025b; Ma et al., 2026) (§A.3). Such attribution adds costly models, labels, or executions beyond the workflow run itself, and it can still misattribute where a failure originates.
Beyond how workflows are built and trained, the data used to optimize and evaluate them pose a further challenge. Multi-agent workflows are commonly trained and evaluated on datasets such as single-question math, function-level coding, and short question answering, which a single agent can already handle (Zhang et al., 2026b) (§A.4). On such data, re-evaluations find that the gains of multi-agent systems over a strong single agent are often small or absent [3, 6] (Zhu et al. 2026) (§C). These datasets can therefore neither reveal nor optimize what a workflow adds beyond a single agent.
Motivated by these limitations, we propose FLOWRIGHT (§ 3), which leverages the workflow as a harness (§ 2) to optimize any role (§ 3.5). Besides letting each role self-evolve, FLOWRIGHT co-evolves multiple roles inside the harness (§ 3.4), and stages the grade into a hierarchical, structure-aware reward (§ 3.3) with role-level credit localization (§ 3.2). Beyond workflow construction and optimization, FLOWRIGHT introduces a data adaptation algorithm (Alg. 1) that hardens existing datasets for workflow-level training and evaluation (§D). Our contributions are as follows:
Shared harness for every role, at train and test time. We define a shared workflow harness whose signal serves three purposes (§ 2.1): the evaluation metric (§D.4), the optimization signal for training any role (Figure 2), and the meta distillation objective at test time (§ 3.5).

Figure 2. FLOWRIGHT for reinforcement learning via self-evolving harness. is the policy of a role . For the -th of rollouts of a role being optimized, is the workflow that rollout is graded on, and the rollouts span distinct workflows (Table 7). Workflow generation and execution form a coupled on-policy learning loop: upstream proposes workflows, downstream executes them, and the verifiable harness turns execution outcomes into learning signals for the policies being optimized. Policy updates produce the next generation of workflows and executions, enabling self-evolution by harnessing the system’s own experience without additional supervision.
Structure-aware credit at no extra cost. We design a reward hierarchy that turns the sparse signal of a workflow into dense, role-level feedback (§ 3.3), with credit read from the execution trace that the harness already records, requiring no additional models, labels, or executions (§ 3.2).
Workflow-level data hardening. We propose DATAWRIGHT, a data adaptation approach whose three hardening strategies convert datasets a single agent can already handle into workflow-level tasks with increased difficulty levels, supporting both training and evaluation (§D).
Four evolution modes that generalize. FLOWRIGHT enables four evolution modes (§ 3.4): (a) single-role self-evolution, (b) agent-skill co-evolution, (c) upstream-downstream co-evolution, and (d) multi-agent co-evolution. Co-evolving more roles gains more than optimizing one alone, achieving +5.03% overall against +2.83% for a single role (§ 5.1). In addition, gains are generalizable across roles, backbones, RL algorithms, workflow topologies, and pools (§ 5.2).
Preliminaries
Workflow as Harness
A complex task is solved by a workflow, a directed graph whose nodes are agents, tools, or skills, and whose edges carry the data and control flow among them. A harness grounds a workflow into verifiable measurement through execution and grading: it runs on , returns the answer , and scores it as . A Generator produces for :
where serves three purposes: the evaluation metric, the training signal, and the test-time objective. A role (Table 7) is any component of the upstream-downstream framework (Figure 1) whose policy , with parameters , is optimized against that signal.

Figure 1. Upstream-Downstream Framework. Upstream, workflow generation can take on different structures, from Generator with its own Inventor skill to Generator working with other agents, drawing on pools of different granularity. Downstream, workflows take different structures and topologies to better solve the task.
| Symbol | Meaning | Introduced in |
| a task drawn from the task distribution; is the -th task | § 2, § 3 | |
| a workflow: a directed graph whose nodes are agents, tools, or skills, and whose edges carry the data and control flow | § 2 | |
| the space of workflows | § 3 | |
| the answer a workflow returns | Eq. (1) | |
| Tasks and Workflows | ||
| the harness, which executes and grades a workflow | Eq. (1) | |
| the harness signal, serving as the evaluation metric, the training signal, and the test-time objective | Eq. (1) | |
| the execution trace of produced by | § 3.2 | |
| Harness and Signal | ||
| a role, and the set of roles | § 2 | |
| the policy of role , and its parameters | § 2 | |
| the policy of the Generator | Eq. (1) | |
| ranges over all roles in the flow | Eq. (4) | |
| Roles and Policies | ||
| the pool of reusable components a workflow is built from | § 2 | |
| the agent, tool, and skill pools; is their union under modular granularity | § 3.1 | |
| the capsule pool; under coarse granularity | § 3.1 | |
| Pool | ||
| the rollout index, and the number of rollouts of a role being optimized | Figure 2 | |
| the distinct-workflow index, and the number of distinct workflows the rollouts span | Figure 2 | |
| the workflow the -th rollout is graded on | Figure 2 | |
| the output of role in rollout | § 3.3 | |
| the rollouts of role being optimized | Figure 2 | |
| Rollouts | ||
| the nodes of that role authors | § 3.2 | |
| the nodes of role that root-cause a failure | § 3.2 | |
| the structure-aware credit of role | Eq. (2) | |
| whether the output parses, whether role ’s contribution is valid, whether the workflow executes to a final answer, and how correct the answer is | § 3.3 | |
| per-role weighting coefficients | Eq. (3) | |
| the hierarchical reward of role in rollout | Eq. (3) | |
| Credit and Reward | ||
| the objective optimized for role | Eq. (4) | |
| a reusable prior that conditions generation, and the optimal prior | Eq. (5) | |
| Optimization |
Table 7. Notation. We summarize notations used in our paper, grouped by the concept they denote, from tasks and workflows (§ 2) to rollouts, credit, reward, optimization (§ 3), and data hardening (§D). In § 3, the indices , , and run over tasks, rollouts, and distinct workflows, respectively, and symbols indexed by are specific to role , e.g., is the credit of role in the -th rollout.
Upstream Builds, Downstream Runs
FLOWRIGHT factors into an upstream and a downstream. Upstream, the Generator produces . As shown in Figure 1, upstream workflow generation can take on different structures to construct a better . Downstream, the harness executes and grades to return . The workflow is the interface between them: what the upstream constructs is what the downstream executes (Eq. (1)).
What the Nodes Are Made of
A workflow is built from a shared pool of reusable agents, tools, and skills. Each node of is an agent, a tool, or a skill from , so delimits the space of workflows the Generator can produce.
FloWright: Learning to Wright Workflows
For a task , upstream produces a workflow (§ 2, 3.1). FloWright (Figure 2) grounds it into a measurable optimization signal through a principled harness with both local crediting (§ 3.2) and a global hierarchy (§ 3.3). By learning to optimize this signal, FloWright enables LLMs to solve complex tasks by building better workflows, through self-evolution and co-evolution (§ 3.4) at both train and test time (§ 3.5).
Wire the Workflow: Topology & Pool Dynamics
Upstream construction turns on three choices: the topology of the workflow , and the granularity and dynamics of the pool it draws from.
Topology is a non-linear control-flow graph. Beyond passing progress forward in a chain, runs nodes in parallel when subtasks are independent, forks alternative branches that are later reconciled, and repeats a step until a stopping condition is met. A single workflow can thus express sequential, parallel, branching, and iterative structure as the task demands.
Pool is presented to the upstream at a chosen granularity (Figure 1). A fine, modular granularity keeps agents, tools, and skills as separate units to enable flexible selection and composition: . A coarse granularity bundles each agent with necessary tools and skills into a self-contained capsule, leading to .
Pool is dynamic. When a task calls for a capability that does not contain, the pool is expanded with the missing component, a new tool, skill, or agent. The upstream thus grows its own components during construction in addition to drawing directly from the pool (Figure 1). Holding the pool static disables this growth, a setting we ablate in our experiments (§ 5.2).
Credit the Structure: Localizing Credits to Roles
For the -th workflow executed on , the optimization signal is a single scalar, but the action it measures spans an entire graph. By harnessing the harness, i.e., leveraging the execution trace produced by , we localize it to the roles responsible. Credit localization therefore requires no additional execution and no new signal.
Credit charges each role for the failures of its own nodes. A role authors a subset of the workflow’s nodes (Figure 2), e.g., Generator authors every node it designs and wires, Inventor authors only the nodes that use a component it creates, and Downstream only the agent nodes it runs. From we recover , the role’s own nodes that root-cause a failure, and charge the role in proportion to the fraction of its footprint at fault:
If , e.g., when no node fails, then ; otherwise the term is negative, steering the policy away from failures (§E.1).
Harness the Workflow: A Hierarchical Reward
The harness does not reduce an execution to a single pass-or-fail outcome. Instead, it stages the optimization signal into a principled hierarchy of auto-verified terms, so the policy sees a meaningful gradient even when the workflow falls short. As such, we propose our hierarchical reward as a generic paradigm: one shared harness from which every optimizable role adaptively instantiates its own reward.
Optimization signal is a staged ladder. Reward terms accumulate from the role’s own output to the task outcome: whether the role’s output parses (), whether the role’s contribution is valid (), whether the workflow executes to a final answer (), and how correct that answer is (). The local credit of § 3.2 enters as a fifth, structure-aware term, extending the ladder across local and global. As such, the signal for role is:
where are weighting coefficients configured per role (§F.2). Our hierarchical ladder thus composes one optimization signal across two axes: from the role’s own output to the task outcome, the staged four terms measure how far a workflow reaches; from local to global, the credit term (§ 3.2) localizes failures to roles at fault. FLOwRIGHT aims to maximize this signal at train and test time (§ 3.4, § 3.5).
Harness for Evolution: One Role or Mutual Curriculum
Our reward paradigm serves every role from one shared harness, enabling one role to self-evolve or several to co-evolve.
Any single role self-evolves inside the harness. To train a role, we optimize its role-specific reward inside the harness as it runs, so the role evolves in the same flow that will use it (§ 4). The same procedure fits any role, since all roles share one harness.
Several roles co-evolve inside the harness through a mutual curriculum. When several roles train on one substrate inside one harness, each role’s behavior shapes what the others encounter. Improving one role therefore reshapes the experience the rest learn from. The co-evolving roles can thus share one policy or each keep their own, and in either case each role learns against the latest evolved policies of the others. For example, co-evolution can pair an agent with its own skill (§ 4), couple an upstream agent that builds the workflow with a downstream agent that executes it (§ 4), or co-train any two or more agents (§ 4). In each case, the coupling is a mutual curriculum: each role shapes the training distribution the others learn from. The structure-aware credit of § 3.2 charges each role only for the failures of its own nodes in the shared execution, which separates the roles’ credit wherever their footprints differ.
Maximize the Harness: Train-Time RL, Test-Time Distillation
FLOwRIGHT optimizes the signal in two stages: train-time reinforcement and test-time distillation.
Train time: maximizing the signal. We optimize a role’s policy to maximize its expected signal over tasks:
where optimizes while the expectation runs over the policies of all roles in the flow. As FLOwRIGHT contributes a training paradigm rather than an optimizer, admits any policy-gradient method: we anchor on the proximal policy optimization (Schulman et al., 2017) clipped surrogate and leave the advantage estimator and policy loss interchangeable, so recent variants such as GRPO (Shao et al., 2024), DAPO (Yu et al., 2025a), and CISPO (MiniMax et al., 2025) all instantiate it, and we ablate the choice in our experiments (§ 5.2).
Test time: meta distillation without gradients. The same shared harness also optimizes workflows at test time, where no weights change. In place of the policy parameters, FLOwRIGHT optimizes a reusable prior that optimize generation:
This prior is distilled internally from the system’s own experiences, or externally from a stronger teacher, or both. We additionally distill successful experiences into few-shot cases, from which roles evolve by meta learning. We define this meta distillation: the harness turns what its own successful experiences teach into the prior that later tasks reuse. As such, FLOWRIGHT keeps improving on new tasks, driven by the very signal it optimizes during training.
Experiments
Setup. We evaluate FLOWRIGHT in both objectives it optimizes (§ 3.5): reinforcement learning at train time, and meta distillation at test time. At train time, we cover four evolution modes (§ 3.4): (a) single-role self-evolution, (b) agent-skill co-evolution, (c) upstream-downstream co-evolution, and (d) multi-agent co-evolution. We compare them against two single-agent baselines, with or without the tool and skill pools (Figure 1). Each baseline runs with the same compute budget as our FLOWRIGHT counterpart it is compared against. All evaluations are on the held-out test sets, non-overlapped with training data (§D.5). We train Qwen3.5-4B and Qwen3.5-9B (Team, 2026) on the paired strategy at , and evaluate two open-source models, Qwen3.5-4B and Qwen3.5-9B, together with two close-source models, GPT-5-mini (OpenAI, 2025) and GPT-5.4-mini (OpenAI, 2026b), on held-out test sets, using GPT-5.4 (OpenAI, 2026a) as the distillation teacher (§ 3.5) and GPT-5.6-luna (OpenAI, 2026c) as LLM judge (§D.4). As a role can be powered by a different backbone than the rest, we additionally evaluate settings that pair a smaller upstream backbone with a larger downstream one as well as the reverse. We summarize our implementation details in §F.
Data. We evaluate on the hardened tasks of DATAWRIGHT (§D), which converts 12 datasets over 7 domains into workflow-level tasks under three hardening strategies (§D.1), at hardening levels . Each dataset is split from the source before hardening to preclude train-test overlap. Table 3 summarizes DATAWRIGHT data statistics. We refer to each triple as an evaluation arm, yielding 44 arms in total (Table 1, §D.5). Each arm falls into one of three evaluation regimes by its distance from the arms FLOWRIGHT trains on: in-distribution, out-of-distribution, and out-of-domain (Table 1).
| Method | In-Dist. ℓ=3 | Out-of-Distribution ℓ=3 | Out-of-Distribution ℓ=5 | Out-of-Distribution Mean | Out-of-Domain ℓ=3 | Out-of-Domain ℓ=5 | Out-of-Domain Mean | Overall |
| Baseline: Single Agent (without tool or skill) | ||||||||
| Qwen3.5-4B | 10.87 | 11.39 | 6.12 | 8.15 | 7.89 | 5.12 | 6.56 | 7.42 |
| Qwen3.5-9B | 16.17 | 14.45 | 9.35 | 11.31 | 13.55 | 9.53 | 11.61 | 11.94 |
| Baseline: Single Agent (with tools and skills) | ||||||||
| Qwen3.5-4B | 21.13 | 20.75 | 15.12 | 17.28 | 25.02 | 19.35 | 22.29 | 20.70 |
| Qwen3.5-9B | 28.53 | 31.14 | 23.87 | 26.67 | 35.79 | 30.08 | 33.04 | 30.75 |
| Baseline: FLOWRIGHT (untrained) | ||||||||
| Qwen3.5-4B | 31.91 | 34.91 | 25.70 | 29.24 | 36.17 | 30.58 | 33.48 | 32.09 |
| Qwen3.5-9B | 50.14 | 44.47 | 40.48 | 42.02 | 52.44 | 46.84 | 49.74 | 47.50 |
| FLOWRIGHT: Train-Time Optimization | ||||||||
| + (a) 4B | 35.16 | 37.78 | 29.15 | 32.47 | 38.38 | 33.58 | 36.07 | 34.92 |
| + (a) 9B | 54.51 | 48.28 | 43.66 | 45.44 | 56.99 | 50.36 | 53.80 | 51.39 |
| + (b) 4B | 39.32 | 39.50 | 30.94 | 34.23 | 39.27 | 33.74 | 36.61 | 36.15 |
| + (c) 4B | 36.23 | 38.75 | 29.88 | 33.29 | 38.89 | 32.65 | 35.89 | 35.15 |
| + (d) 4B | 39.23 | 40.71 | 31.91 | 35.29 | 40.48 | 34.67 | 37.68 | 37.12 |
Table 1. Evaluation on Four Evolution Modes. Mean accuracy (%) over the hardening strategies and levels each dataset supports (§D.1). FLOWRIGHT trains on the paired strategy at of four datasets, which defines three regimes (§D.5): in-distribution is those four training arms; out-of-distribution is the same four datasets under a strategy, a level, or both that training never sees (13 arms); and out-of-domain is eight datasets FLOWRIGHT never trains on (27 arms). In-distribution is by construction, since is the training level and is held out. The green shading is proportional to the gain over untrained backbones. 4B and 9B abbreviate Qwen3.5-4B and Qwen3.5-9B. (a)–(d) denote the four evolution modes defined in § 4.
| Dataset | Strategy | Task Type | Input | Test Questions | Training Questions |
| Document Understanding | |||||
| MMLongBench-Doc ((Ma et al., 2024)) | Shared | mixed | file | 960 / 820 | – |
| MMLongBench-Doc ((Ma et al., 2024)) | Paired | mixed | file | 1,089 / 1,090 | – |
| MMLongBench-Doc ((Ma et al., 2024)) | Decoy | mixed | file | 1,091 / 1,091 | – |
| LongDocURL ([8]) | Shared | mixed | file | 456 / 405 | 1,443 / 1,160 |
| LongDocURL ([8]) | Paired | mixed | file | 540 / 540 | 1,782 / 1,780 |
| LongDocURL ([8]) | Decoy | mixed | file | 541 / 541 | 1,783 / 1,783 |
| Finance Understanding | |||||
| DocFinQA ((Reddy et al., 2025)) | Shared | numeric | text | 609 / 275 | 5,031 / 4,250 |
| DocFinQA ((Reddy et al., 2025)) | Paired | numeric | text | 843 / 840 | 5,733 / 5,735 |
| DocFinQA ((Reddy et al., 2025)) | Decoy | numeric | text | 843 / 843 | 5,735 / 5,735 |
| Multimodal Slide Understanding | |||||
| SlideVQA-Doc ((Tanaka et al., 2023)) | Shared | open-ended | file | 1,791 / 1,390 | 8,637 / 7,230 |
| SlideVQA-Doc ((Tanaka et al., 2023)) | Paired | open-ended | file | 2,214 / 2,215 | 10,617 / 10,615 |
| SlideVQA-Doc ((Tanaka et al., 2023)) | Decoy | open-ended | file | 2,215 / 2,215 | 10,617 / 10,617 |
| Chart Understanding | |||||
| InfoChartQA-Text ((Xie et al., 2025)) | Shared | mixed | image | 2,610 / 2,365 | – |
| InfoChartQA-Text ((Xie et al., 2025)) | Paired | mixed | image | 3,129 / 3,125 | – |
| InfoChartQA-Visual ((Xie et al., 2025)) | Shared | mixed | image | 132 / – | 576 / – |
| InfoChartQA-Visual ((Xie et al., 2025)) | Paired | mixed | image | 1,065 / 1,735 | 4,401 / 7,180 |
| InfoChartQA-Metaphor ((Xie et al., 2025)) | Shared | multiple-choice | image | 309 / – | – |
| InfoChartQA-Metaphor ((Xie et al., 2025)) | Paired | multiple-choice | image | 333 / 330 | – |
| Science | |||||
| MMMU-Pro ((Yue et al., 2025)) | Paired | multiple-choice | image | 1,728 / 1,730 | – |
| Math | |||||
| We-Math ((Qiao et al., 2024)) | Paired | multiple-choice | image | 1,740 / 1,740 | – |
| Coding | |||||
| TACO ((Li et al., 2023)) | Paired | code generation | text | 1,362 / 1,360 | 5,424 / 5,425 |
| DS-1000 ((Lai et al., 2022)) | Paired | code generation | text | 873 / 870 | – |
| ChartCoder ((Zhao et al., 2025)) | Paired | code generation | image | 999 / 1,000 | – |
Table 3. Data Statistics. Every dataset DATAWRIGHT hardens, the strategies it supports, the task type its answers take, the input its questions carry, and the number of original questions each hardened set holds at level and (written ). Counts are questions rather than bundles, since a task carries of them under Shared and Paired: bundling regroups the same questions into fewer and harder tasks as the level rises, and under Decoy the level changes only how many inputs surround the one that answers the question. A level is kept only when its test side holds at least 100 original questions (§D.2), which is why two Shared levels are absent. A dash "–" in the training column marks a dataset held out for evaluation only, whose questions all serve the test side.
Evaluation Metrics. A hardened task is scored as the mean over its sub-questions, and a dataset’s accuracy is the mean over its test tasks (§D.4). Every sub-question keeps the metric of its own answer type (Table 2), so bundling changes how hard a task is without changing how its answers are graded.
| Task Type | Evaluation Metric | Definition |
| Question Answering | ||
| multiple choices, one answer | the chosen option equals the reference option | Eq. (7) |
| multiple choices, multiple answers | the share of reference options named, lowered by every extra one | Eq. (7) |
| list of items | the share of reference items named, lowered by every extra one | Eq. (7) |
| numeric | equality at the reference’s precision, after normalizing format and units | Eq. (8) |
| open-ended | exact match after normalization, otherwise the token-level F1 with the reference | Eq. (9) |
| Code Generation | ||
| code with unit tests | every test of the problem passes | Eq. (10) |
| code with a reference checker | the benchmark’s own checker accepts the code | Eq. (10) |
| plotting code | rendered plot accuracy | Eqs. (11)–(12) |
| Aggregation | ||
| a hardened task | the mean over its sub-questions, an unanswered one scoring zero | Eq. (6) |
| a dataset | the mean over its test tasks | Eq. (6) |
Table 2. Evaluation Metrics. We summarize the evaluation metrics of different types of tasks covered by DataWright (§D.4).
Results
Evolve the Roles: Optimize Any Role by Harnessing the Workflow
FLOWRIGHT improves performance in every regime at train time. Comparing with single-agent baselines, untrained FLOWRIGHT showcases improved performance ( overall). This reveals that models with smaller sizes are able to build and run workflows with gains better than its size acting alone. At matched model size, every evolution mode exceeds its untrained counterpart in every regime and overall by up to (Table 1), and every arm improves under at least one mode. Moreover, the gain also increases when more roles co-evolve. Multi-agent co-evolution gains in-distribution, out-of-distribution, and out-of-domain, staying positive across all datasets, strategies, and levels (Figure 12). Among the four Qwen3.5-4B modes, multi-agent co-evolution leads 7/8 columns of Table 1 and gains most overall at , ahead of agent-skill co-evolution at , upstream-downstream co-evolution at and single-role self-evolution at . These improvements indicate that co-evolving more roles yields more than optimizing one of them alone. Harnessing the workflow therefore carries what FLOWRIGHT learns on four datasets at one hardening strategy and one level to the strategies, levels, and domains held out from it.
Figure 12. Per-Arm Results Behind the Mean Scores. Complementing the mean accuracy scores in Table 1, we show the accuracy (%) of each method on the 44 evaluation arms, grouped into the three regimes (Table 1, §D.5): in-distribution, out-of-distribution and out-of-domain. We denote the hardening strategy and level as: S/P/D = Shared/Paired/Decoy, 3/5 = level. Color intensity encodes accuracy on a shared scale, and hue identifies the regime.
FLOWRIGHT also improves performance at test time. In place of policy parameters, FLOWRIGHT additionally distills a reusable prior at test time (§ 3.5) for improved adaptability on new tasks. Distilling this prior from its own experiences gains overall, and from a stronger teacher (GPT-5.4) +1.10% (Figure 3). Meta distillation gives the largest test-time gain at five shots with up to +2.58%, in contrast to one shot staying below the untrained baseline. A prior helps only when it carries enough evidence to generalize beyond the single case it comes from. Test-time and train-time optimization then compound, reaching +3.21% overall, +4.14% in-distribution, +3.80% out-of-distribution, and +2.79% out-of-domain, exceeding the five-shot prior alone by +1.59% and leading other settings across regimes. The same harness (§ 3.5) therefore optimizes workflows whether or not the policy weights update.
Figure 3. Test-Time Optimization with Reusable Prior. The leftmost bar of each group is the untrained Qwen3.5-4B workflow baseline, and every other bar generates workflows by distilling a reusable prior (§ 3.5). Internal and external distillation draw that prior from own experiences and from a stronger teacher (GPT-5.4) respectively. Meta distillation additionally distills successful experiences into few-shot cases, from which roles self-evolve via meta learning (1-shot and 5-shot). The rightmost bar composes train-time evolution with the 5-shot prior.
FLOWRIGHT generalizes across roles and backbones at both train and test time. At train time, optimizing any single role improves the performance, and co-evolving more roles improves it further (Figure 14). Also, an optimized 4B role is able to transfer its gain when other roles run on Qwen3.5-9B, even raising accuracy above the all-9B baseline (Figure 13). At test time, the meta-distilled prior demonstrates persistent gain in every regime on all four open-source and close-source model backbones (Figure 15). One harness therefore optimizes any role and backbone a workflow is built and executed upon. We extend our discussion in §G.2.
Figure 13. Roles Powered by Different Backbones. Accuracy (%) across three evaluation regimes over all 44 arms (§ 4). Single Backbone uses one backbone for every role. Untrained Mix uses a 4B or 9B backbone to specific roles, with no role optimized. Trained Role (*) uses the RL-trained 4B role, with Qwen3.5-9B powering other roles. Gen and Skill name the Generator and the skill it co-evolves with, and others covers every remaining role.
Figure 14. Evolution of Different Roles. Accuracy (%) across three evaluation regimes over all 44 arms (§ 4). Every role runs Qwen3.5-4B, with the only variable as which role the harness optimizes. Single-Role Self-Evolution optimizes the Generator, skill, and downstream agent individually. Co-Evolution optimizes two or more together (§ 3.4).

Figure 15. Meta Distillation Across Backbones. Accuracy (%) across three evaluation regimes over all 44 arms (§ 4). Each backbone appears as an untrained Baseline, compared with +Distill providing the meta prior distilled at five shots (§ 3.5).
Ablate the Design: Algorithm, Reward, Pool, and Topology
FLOWRIGHT is generalizable to different RL algorithms. Optimizing Generator consistently outperforms the untrained baseline with different RL algorithms (Figure 4): +2.83% overall for GRPO, +3.23% for CISPO, and +3.84% for DAPO. DAPO leads in every regime, and its margin widens in out-of-domain evaluation, where it gains +3.69% against +2.82% for CISPO and +2.59% for GRPO. On the other hand, for in-distribution, it stays within 0.01% of CISPO. The harness provides a learning signal generalizable to different RL algorithms.
Figure 4. Algorithm Generalizability. Each algorithm optimizes Generator on Qwen3.5-4B.
Every layer of the reward ladder contributes. As shown in Figure 5, grading format and answer alone stays close to the untrained baseline, with +0.07% under GRPO and +0.80% under DAPO. Adding validity reward contributes the largest single increment at +2.07% under GRPO and +2.29% under DAPO, respectively. The structure-aware credit of § 3.2 adds a further +0.69% and +0.75%, reaching +2.83% and +3.84% overall, respectively. Each layer of the reward ladder contributes, with validity contributing the most.

Figure 5. Reward Ladder. Each layer adds one term (§ 3.3): format and answer alone, plus validity (§E.3), plus the structure-aware credit (§ 3.2).
FLOWRIGHT is generalizable to different workflow topologies. As shown in Figure 6, using code to represent workflows reaches 34.12% untrained and 35.86% with an optimized Generator, ahead of the other three representations in both. Optimization improves every topology, by +2.83% for schema, +2.62% for state machine, +1.74% for code, and +1.25% for graph, narrowing the spread across the four from 3.91% to 3.03%. Optimization improves across workflow representations, so the gains hold whichever topology the Generator writes in.

Figure 6. Workflow Topology. Generator writes workflows in schema, state machine, graph, or code (§E.4). Both use the Qwen3.5-4B backbone.
Capsules lead at every backbone, and optimization narrows the gap. As shown in Figure 7, bundling each agent with the tools and skills it needs gains +3.83% on Qwen3.5-4B and +3.87% on Qwen3.5-9B over a modular pool (§ 3.1). Optimizing Generator improves the modular pool by +4.50% against +2.83% for capsules, narrowing the gap between the two to +2.16%. Composing a workflow from separate units demands more fine-grained workflow design from the upstream, and training strengthens upstream agents to better satisfy that demand.

Figure 7. Pool Granularity. Backbones are compared at two pool granularities (§ 3.1), and Trained 4B carries RL-trained Generator.
Growing the pool from successful experiences adds the most. As shown in Figure 8, a pool that grows on demand gains +4.83% over a pool held fixed. This also gives the largest effect among all the single design choices in this ablation study. Distilling past experiences into the pool adds a further +1.44% when only successful ones are kept, against +0.53% when both successful and failed ones are kept. The performance ranking among the four pool dynamics modes holds before and after optimization, with gains up to +2.83% from training. The workflow therefore learns from its own experience, and learns most from the experiences that succeed.

Figure 8. Pool Dynamics. A static pool stays fixed, a dynamic pool expands on demand, and a grown pool also carries components distilled from past experiences (§ 3.1).
Related Work
We summarize four lines of work below and extend each in §A.
Workflow Construction and Optimization. Early multi-agent frameworks coordinate agents through manually specified roles and procedures ([12] (Wu et al. 2023)). Later methods automate this design while keeping every model fixed, searching for a workflow written as code [14] (Zhang et al. 2025d) or generating a graph for each task and revising it during execution (Niu et al., 2025), and a further line trains the generator itself from execution outcomes (Zhang et al., 2025a; Nie et al., 2025; Nielsen et al., 2026). A separate line improves the workflow without updating any weights, inducing reusable routines from past experience (Wang et al., 2024), evolving the context a model conditions on (Zhang et al., 2026c), or replacing reinforcement learning with reflective prompt evolution [2]. However, the models that solve the workflow’s subtasks remain fixed, limiting how much the workflow as a whole can improve.
Multi-Agent Training and Co-Evolution. Reinforcement learning increasingly optimizes several interacting agents, yet within an interaction structure fixed in advance, such as a discussion among agents that play one role (Park et al., 2025) or a workflow designed once per task domain (Zhao et al., 2026). Co-evolution likewise fixes how the models interact, pairing a challenger that proposes problems with a solver that answers them [15], or scoring proposals in a multi-round discussion (Xue et al., 2026). Other works train each agent separately, in its own reinforcement learning with a role-specific dataset and reward [11] (Motwani et al. 2025). However, agents then learn in isolation or in one fixed role, rather than over the workflows constructed for each task.
Credit Assignment and Failure Attribution. Credit finer than a single outcome typically comes from learned models, such as a process reward model trained alongside the policy (Liu et al., 2025) or a local reward for each component, estimated by re-executing what follows it (Wu et al., 2026). Failure attribution instead names the responsible agent and step with LLM judges (Zhang et al., 2025f), an attributor trained on labeled failures (Zhang et al., 2025b), or re-execution with edited messages (Ma et al., 2026), yet identifies the decisive step in only about a third of failed runs [4]. Credit that adds no model or rollout compares actions taken from states that recur across a single agent’s rollouts of the same task [9, 5]. However, such attribution costs models, labels, or executions beyond the workflow run itself, and it can still misattribute where a failure originates.
Evaluation of Multi-Agent Workflows. Methods that construct or optimize workflows are commonly evaluated on single-question math, function-level code, and short question answering (Zhang et al., 2025d;a; Nie et al., 2025). On such data, automatically designed systems improve on a self-consistent single agent by at most a few points (Singh et al., 2025), and majority voting alone accounts for most of the gains attributed to multi-agent debate [6]. Training on it can also collapse a system into one dominant agent (Zhang et al., 2025h), and failure analyses find the reported gains often minimal [3]. However, such data can neither reveal nor optimize what a workflow adds beyond a single agent.
Conclusions
In this work, we introduce FLOWRIGHT, which leverages the workflow as harness § 3.1 to provide the optimization signal without additional annotations: one signal that evaluates a workflow, trains any role that builds or executes it, and evolves a reusable prior at test time § 2.1, § 3.5. A hierarchical, structure-aware reward § 3.3 turns the sparse outcome of a workflow into role-level feedback, with role-specific credit derived from the execution trace § 3.2. FLOWRIGHT enables train-time optimization in four modes: (1) single role self-evolution, (2) agent-skill co-evolution, (3) upstream-downstream co-evolution, and (4) two or more roles co-evolve; and test-time optimization via meta distillation § 3.4. To supply reliable workflow-level evaluation, we further propose DATAWRIGHT to convert single agent level datasets into workflow-level tasks through three hardening strategies at two levels, yielding the 44 arms our experiments span §D. Across those arms, FLOWRIGHT outperforms the single-agent baselines by , adds a further through meta distillation and through reinforcement optimization § 5.1. These gains hold across RL algorithms, workflow topologies, pool granularities, and pool dynamics § 5.2, and transfer to backbones the harness never trains §G.2.
Extended Discussion of Related Work
Workflow Construction and Optimization
Early multi-agent frameworks coordinate agents through manually specified roles, procedures, and conversation patterns [12] (Wu et al. 2023), and recent visual document understanding systems run agent pipelines designed by hand for their domain on fixed, prompted backbones (Zhu et al., 2025; Jin et al., 2026). Other methods automate this design while keeping every model fixed, searching on each benchmark’s validation data for a single workflow or agent design written as code [14] (Zhang et al. 2025d), or generating a workflow graph for each task and revising it during execution (Niu et al., 2025). Methods that train the workflow generator use supervised fine-tuning on query-specific multi-agent systems (Ye et al., 2025) or learn from execution outcomes, training lightweight controllers that select operators (Zhang et al., 2025a) or communication edges (Zhang et al., 2025c) for fixed LLMs, a weak meta-agent that designs workflows for strong executors (Nie et al., 2025), or orchestrators that assign subtasks to fixed worker models (Nielsen et al., 2026) or select the next agent step by step [7]. Such training also extends to several meta-agents that generate, configure, and rectify a multi-agent system whose agents run on a fixed model pool (Wang et al., 2025a). A separate line improves the workflow without updating weights, leveraging reusable routines from past experience (Wang et al., 2024), evolving the context a model conditions on (Zhang et al., 2026c), or replacing reinforcement learning with reflective prompt evolution [2]. However, in all these methods, the models that solve the workflow’s subtasks remain fixed, which limits how much the workflow as a whole can improve.
Multi-Agent Training and Co-Evolution
Reinforcement learning increasingly optimizes multiple interacting LLM agents, but within an interaction structure fixed in advance for all task instances, such as a multi-turn discussion among agents that play the same role (Park et al., 2025), a meta-thinking agent that guides a reasoning agent (Wan et al., 2025), a workflow designed once per task domain (Zhao et al., 2026), or a document-understanding pipeline of planning, execution, judgment, and answering agents (Yu et al., 2025b). Co-evolution methods likewise fix how the models interact, pairing a challenger that proposes problems with a solver that answers them [15], or letting agents drawn at random propose, critique, and score solutions in a multi-round discussion whose scores serve as their rewards (Xue et al., 2026). Recursive agent training lets the task decomposition vary per instance, but trains a single policy as a root agent and as the copies of itself to which it delegates, all in the same role [10]. Other works train each agent separately, optimizing it in its own reinforcement learning with a role-specific dataset and reward [11], or fine-tuning it to draft, verify, or refine an answer on trajectories sampled once from the untrained model (Motwani et al., 2025). However, these agents learn either in isolation or only within the one structure or role they are trained in, which leaves them unprepared for tasks whose outcome depends on different agents working together in different ways.
Credit Assignment and Failure Attribution
Credit finer than a single outcome often comes from learned models, such as a process reward model trained alongside a single agent’s policy to reward each action (Liu et al., 2025), or a local reward for each component of a compound system, learned from outcomes directly by re-executing the components downstream of it (Wu et al., 2026). Other methods credit the meta-agents that design a multi-agent system by averaging the outcomes of executions branched at each of their decisions (Wang et al., 2025a). Failure attribution for multi-agent systems names the responsible agent and step with LLM judges (Zhang et al., 2025f) or with an attributor trained on failures labeled through counterfactual replay and fault injection (Zhang et al., 2025b), or tests failure hypotheses by re-executing the system with edited messages or plans (Ma et al., 2026). Even with full execution traces, such attributors identify the decisive failure step in only about a third of failed runs [4]. Credit that adds no model or rollout instead compares actions taken from states that recur across a single agent’s rollouts of the same task, and falls back to trajectory-level credit when states do not recur [9, 5]. However, such credit either costs extra models, labels, or executions, or holds only where a single agent revisits the same states, and it can still misattribute failures. Consequently, agents that share one outcome lack a cheap and reliable signal of their own mistakes.
Evaluation of Multi-Agent Workflows
Methods that construct or optimize multi-agent workflows are commonly evaluated on single-question math, function-level code, and short question answering (Zhang et al., 2025d;a; Nie et al., 2025). On such data, automatically designed multi-agent systems improve on a self-consistent single agent by at most a few points (Singh et al., 2025), many reported successes of efficiency methods for multi-agent systems appear in settings where a single agent already preserves strong performance (Zhang et al., 2026b), and majority voting alone accounts for most of the gains attributed to multi-agent debate [6]. When multiple agents are trained on single-question math, one agent comes to dominate while the other contributes little, collapsing the system into a single agent (Zhang et al., 2025h). Final answer accuracy can also remain high while the interactions among agents diverge from their intended behavior (So et al., 2026), and failure analyses find the gains of multi-agent systems on popular benchmarks often minimal [3]. However, as such data can be solved without coordinating agents, evaluating on it cannot reliably assess whether a workflow’s structure helps, and training on it provides little signal for learning beyond a single agent’s effort.
Limitations
By proposing FLOWRIGHT, there are also limitations that confine the scope of what we demonstrate. First, our reinforcement learning experiments are mainly evaluated on two open models of a single family, Qwen3.5-4B and Qwen3.5-9B (§4). FLOWRIGHT leverages the same signal whichever model powers a role, and the meta-distillation improves all four backbones we evaluate, including the two it never optimizes (§G.2). Nevertheless, we aim to incorporate more model families into our evaluation to strengthen our work. Second, our evaluation spans 44 arms over 12 datasets and 7 domains (§D.5), each a task whose inputs are fixed once the task begins. In future work, we plan to train roles at a larger scale, and to extend FLOWRIGHT to dynamic environments, where the inputs a workflow reads and the components it needs change while the workflow runs.
Preliminary Study: The Gap in Existing Benchmarks
A multi-agent workflow is only warranted on a task that a single agent cannot already solve. We therefore ask two questions: what existing benchmarks demand of a system, whether a single agent or a workflow, and how much a workflow gains on them. We answer the first by surveying the evaluations that published workflow generation methods use, and the second by a controlled comparison in which the workflow and the single agent both run the untrained backbone Qwen3-VL-8B.
What Existing Benchmarks Demand. We collect every dataset that each of 20 workflow generation methods published at top-tier venues evaluates on [14, 7, 13] (Zhang et al. 2025d; Zhang et al. 2025a; Zhuge et al. 2025; Shang et al. 2025; Nie et al. 2025; Ye et al. 2025; Wang et al. 2025a; Ke et al. 2026; Nielsen et al. 2026; Su et al. 2025; Zhao et al. 2026; Zhang et al. 2025c; Niu et al. 2025; Zhang et al. 2025g; Zhou et al. 2026; Wang et al. 2025b; Singh et al. 2025), which gives 121 datasets in total, counting a dataset once for each method that uses it. We classify these 121 datasets into six categories according to what a system needs to do to answer each question (Figure 9a): single-question math (39), short-answer QA (25), function-level coding (21), tool use or agentic environments (16), reading comprehension (4), and other (16). The first three categories account for 85 of the 121, and a single competent agent is able to answer their questions in one pass 2.
Figure 9. Preliminary Study. (a) Among the 121 datasets that the 20 workflow generation methods evaluate on: 85 of the 121 are single-question math, short-answer QA, or function-level coding, each of which a single competent agent can answer in one pass. (b) Comparing multi-agent workflows against a single agent given the same compute budget: workflows underperform the single agent on the original datasets, yet gain ↑ 39.28 on DATAWRIGHT-hardened dataset.
How Much a Workflow Gains on Them. Leveraging Qwen3-VL-8B as the backbone, we compare LLM-generated multi-agent workflow against a single agent on two datasets of this kind (MMLongBench-Doc (Ma et al., 2024) and DocFinQA (Reddy et al., 2025)). We give the workflow and the single agent the same compute budget, so that any difference in accuracy is attributable to how the computation is organized rather than to how much of it each system is allowed (Figure 9b). On the original MMLongBench-Doc (200-sample subset) the workflow reaches 40.50% and the single agent 48.00%. On the original DocFinQA (200-sample subset) the workflow reaches 33.00% and the single agent 38.00%. Neither dataset rewards multi-agent coordination. Each sample presents one document and one question, so a system reads through the document and extracts one answer, and no decision in the task requires ability or coordination beyond a single agent. The outcome therefore reflects what these benchmarks ask for, not a limitation of the workflow.
Hardening Changes the Outcome. On MMLongBench-Doc hardened by DATAWRIGHT, the same workflow reaches 51.61% against the single agent’s 12.33% over 150 test samples, an improvement of 39.28 points. Through hardening (§D.1), the evidence a system needs to examine exceeds one effective context window. Therefore, the task requires deciding which input to read in what order, and spending the same number of turns on a single input no longer suffices. This is the condition under which the structure and coordination a workflow adds carry value 3.
DataWright: Workflow-Level Data Hardening
Datasets that a single agent can already handle can neither reveal nor optimize what a workflow adds beyond it (§C). To this end, we propose DATAWRIGHT to convert existing datasets into workflow-level tasks. Particularly, it builds each task by a rule-based hardening strategy at a hardening level (§D.1), adaptively selects the strategies each dataset supports (§D.2), and filters the data with quality control (§D.3). Each hardened task is graded as the mean of its sub-question scores, and the accuracy of each hardened dataset is calculated as the mean accuracy over its test tasks (§D.4). Alg. 1 summarizes the workflow-level data hardening procedure of DATAWRIGHT. We also summarize our data statistics in §D.5.
Hardening Strategies
A hardening strategy converts samples of an existing dataset, each a question paired with the input it asks about, such as a document, a slide deck, a chart, etc., into harder tasks by its rule, without any model in the loop. Solving a hardened task draws on the capabilities that a workflow brings beyond a single agent, including decomposing the task into sub-questions, routing each sub-question to a suitable input and agent, localizing the evidence that answers it, and aggregating the answers. Every strategy calls on these capabilities together, while each emphasizes a different one by its construction.
Shared bundles questions about the same input into one task. Solving it mainly exercises decomposition: the task splits into sub-questions that can be assigned and answered separately.
Algorithm 1 DataWright: Workflow-Level Data Hardening. A sample is a question with its input and reference answer ; denotes the samples of on input , and the number of original samples in task . Group partitions samples into disjoint tasks of questions, and Decoy draws inputs other than , using every input a near-equal number of times.
1: function DataWright(𝓑, ℓ)
2: 𝓑 ← {(q, z, y⋆) ∈ 𝓑 | Valid(q, z, y⋆)} ▷ §D.3
3: (𝓑^train, 𝓑^test) ← Split(𝓑)
4: for σ ∈ {σ′ | Supports(σ′, 𝓑)} do ▷ §D.2
5: T^train_σ ← Harden(𝓑^train, σ, ℓ), T^test_σ ← Harden(𝓑^test, σ, ℓ)
6: if ∑_{x∈T^test_σ} |x| < 100 then
7: T^train_σ, T^test_σ ← ∅
8: end if
9: end for
10: return {(T^train_σ, T^test_σ)}_σ
11: end function
12: function Harden(𝓑, σ, ℓ) ▷ §D.1
13: if σ = Shared then
14: return ⋃_z Group(𝓑_z, ℓ)
15: else if σ = Paired then
16: return Group(𝓑, ℓ) ▷ distinct z within a task
17: else
18: return {(q, Shuffle({z} ∪ Decoy(z, ℓ − 1)), y⋆) | (q, z, y⋆) ∈ 𝓑}
19: end if
20: end function
Paired bundles questions, each with its own distinct input, into one task. Solving it mainly exercises routing: each sub-question is matched to the input that answers it.
Decoy keeps one question and places its input among decoy inputs drawn from the same dataset. Solving it mainly exercises localization: finding the single input that answers the question. Every input serves as a decoy a near-equal number of times, never for its own question.
Hardening level. The level sets the number of questions per task for shared and paired, and the number of inputs per task for decoy. Each original question enters at most one task, and every dataset is split into training and test sets before hardening. Therefore, no question appears on both sides at any level. Accordingly, a hardened task’s score is the mean of its sub-question scores (§D.4).
Adaptive Strategy Selection
Not every dataset supports every hardening strategy, so DataWright selects the suitable strategies for each dataset from what its samples allow (Supports in Alg. 1). Each strategy has one prerequisite.
Shared requires inputs that each carry several independent questions. It is therefore unavailable for (1) datasets that pair every input with a single question, such as one question per coding problem (e.g., TACO (Li et al., 2023)), per image (e.g., MMMU-Pro (Yue et al., 2025)), per chart (e.g., ChartCoder (Zhao et al., 2025)), etc., and for (2) datasets whose questions about one input are steps of the same problem (e.g., We-Math (Qiao et al., 2024)), where one step reveals another’s answer.
Paired requires only questions with distinct inputs, which every dataset provides.
Decoy requires decoys that cannot answer the question, which holds only when the question identifies its own input, as questions about a specific document, slide deck, or financial filing do. For charts, images, and coding problems, a decoy of the same kind can match everything the question states, which would make the task ambiguous rather than harder, so DataWright does not apply this strategy to them.
Sample-size requirement. A hardening level of a strategy is kept for a dataset only if its test set at that level holds at least 100 original samples, so that every accuracy score rests on enough samples to give a valid evaluation. Table 3 summarizes the strategies and levels selected for each dataset.
Quality Control
Existing datasets contain defective samples, such as a question that its input cannot answer, an input that does not match its question, or a reference answer that the input contradicts. DataWright therefore validates the samples of each dataset before hardening (VALID in Alg. 1), mainly by quality filtering and automatic checks.
Quality filtering. On the training data, GPT-5.4 serves as an LLM judge: it examines each sample together with its reference answer and flags the answers it finds wrong. The flagged samples are removed, 203 of the 21,570 training samples (1.9%). For example, on DocFinQA, the judge removes 79 unanswerable questions, and on TACO it removes 36 problems whose statement relies on a figure that the dataset no longer provides.
Automatic checks. For code generation datasets, we implement automatic checks by running the reference solution of each sample, keeping the samples that can pass their own tests. For example, a TACO problem requires at least 10 tests, so that an incorrect code answer cannot pass by chance.
Evaluation Metrics
Hardening changes how hard a task is, not how its answers are graded: every sub-question keeps the metric of its own answer type, and a task’s score is the mean over its sub-questions. A hardened task holds sub-questions, the -th carrying the reference answer and receiving the answer that a workflow returns: under shared and paired, which bundle questions per task, and under decoy, whose level counts inputs rather than questions. With denoting the metric of that sub-question’s answer type, a task’s score and a dataset’s accuracy over its test tasks are:
where a sub-question the workflow leaves unanswered scores . Table 2 summarizes the evaluation metrics for different types of tasks DataWright cover. We also show the task types of each dataset in Table 3.
Multiple choice and lists. Let and be the sets of options, or of list items, that the answer and the reference name. The score is the overlap of the two sets against the larger of them:
which reaches 1 only when the two sets agree. Extra names are penalized, just as missing ones are, so a workflow cannot gain by naming every option. A single-answer question is the case , where Eq. (7) is an exact match.
Numeric. A numeric answer is first normalized: thousands separators and currency symbols are removed, units are mapped to a canonical name, and a percentage and its fraction become one quantity. It is then compared at the precision the reference itself states, with rounding to that precision:
No relative tolerance is allowed, which is stricter than some of these benchmarks.
Open-ended. Let normalize case, punctuation, and spacing, and be the multiset of answer tokens. An exact match after normalization scores 1, and otherwise the score is the token-level F1 with the reference:
so a sub-answer that overlaps its reference without matching it earns partial credit. The second case applies inside shared and paired tasks. A decoy task holding a single question is scored by the first case alone.
Code generation. A code is graded by running it, never by comparing its text to a reference:
where CHECK is a strict execution-based evaluation test: every unit test of the problem passes, the benchmark’s own checker test accepts the code, or, for a dataset that provides no evaluation protocol, the code executes without errors and the code-rendered output is accurate against the reference answer.
LLM as Judge. An answer that no rule can decide is graded by an LLM judge that evaluates the answer directly against the reference. As such, we define an LLM judge as a grader that receives the reference answer and the predicted answer, and evaluates with one integer on a scale whose every level its prompt pre-defines:
where the judge returns an integer in and is the top of the scale its prompt defines. The prompt and the normalization thus stay in step. Each judge makes exactly one judgment, which keeps an answer self-consistent: a verdict paired with a separate similarity admits a pair that disagrees with itself, while anchored levels calibrate. A judge reads text or images, whichever the answer is made of, and a dataset that needs several judges gets one per aspect of the same answer, which the metric averages into that task’s score.
For ChartCoder, we propose its evaluation as the mean of two LLM judged scores gated by execution: two judges at (Figure 10) alongside the execution term of Eq. (10). The first LLM judge evaluates code by assessing the predicted code against the reference code. The second LLM judge evaluates the predicted chart rendered by the predicted code against the reference chart as two images. When execution fails, the score becomes 0:

Figure 10. LLM Judge Prompts. Each judge prompt carries its system instruction and its user message (§D.4), trimmed with [...]. Scores are graded to 0 only when code execution failed (Eq. (12)).
where EXEC marks a code that executes successfully, and RENDER renders one to an image. Both judges score 0 unless the code executes without error. The two judges cover two different aspects of one answer: one evaluating the code from its source and the other the image that code renders, and their mean is the accuracy we present for each ChartCoder task. We use GPT-5.6-luna as the judge (§ 4). ChartCoder is the one dataset that requires a judge, so every ChartCoder number in our experiments is a judge score, and every other dataset carries the rule-based metric of its answer type defined above.
Data Statistics
Table 3 summarizes all the datasets DataWright hardens, together with their task types, input types, and the size of each hardened set at both levels. The level shapes these sizes directly: shared and paired divide a split’s questions into tasks of questions, so raising the level yields fewer and harder tasks out of nearly the same pool of questions; while decoy keeps one question per task and raises the number of inputs it hides the gold one among, which leaves its task count unchanged. Because a task carries every question in its bundle, the test side of a kept level holds at least 100 original questions to form a valid test set.
DataWright hardens 12 datasets across 7 domains. We only use four datasets to supply training datasets, which are split before hardening, so no hardened test task shares a question with training. We keep the remaining eight datasets to be evaluation-only. The hardened datasets span various types of answers, including numeric, multiple-choice, open-ended, and code, and a single task may mix several types. Input types range from slides and documents to charts and figures.
Each dataset supports only the hardening strategies its source data supports (§D.2), so the number of evaluation arms differs across datasets. DataWright provides 44 arms for three regimes:
In-distribution (4 arms). The four datasets FloWright trains on, each taken at the paired strategy and : InfoChartQA-Visual, LongDocURL, SlideVQA-Doc, and TACO. Training sees no other arm.
Out-of-distribution (13 arms). The same four datasets under a strategy, a level, or both that training never sees, yielding 5 arms at and 8 arms at .
Out-of-domain (27 arms). Eight datasets FloWright never trains on: InfoChartQA-Text, InfoChartQA-Metaphor, DS-1000, MMLongBench-Doc, DocFinQA, MMMU-Pro, We-Math, and ChartCoder, yielding 14 arms at and 13 arms at .
Figure 12 shows every method on each of these arms.
FloWright: Inside the Learning
Credit the Structure: Traced Credit, Learnable Co-Evolution
Only genuine root causes are charged. A failed node that has a failed dependency, direct or indirect, is treated as a cascaded failure, so its credit propagates to the root failure along the workflow’s edges, for any topology. Infrastructure faults, such as a provider connection error or a content filter, are not the policy’s fault and thus excluded. A node is judged by its final occurrence in , so a step that fails early in a loop but recovers later is not charged. A fault that never surfaces as a node failure is left to the global signal.
Per-role credit makes co-evolution learnable. For example, when a workflow runs both the Generator’s design and the Inventor’s components, one scalar entangles their contributions. Localized credit restricts each role’s credit term to its own nodes, so a role whose footprint is narrower than the workflow is not charged for failures outside it, e.g., the Inventor is not charged for failures on nodes that use none of the components it creates, as the roles co-evolve (§ 3.4). This local credit is a bounded term of the global hierarchy in § 3.3, alongside the role-specific validity that measures each role’s own contribution (Table 4).
| Role | Format Reward () | Validity Reward () |
| Upstream: Building a Workflow | ||
| Planner | its plan parses | helpfulness: the graded gain its plan brings over the same flow without one |
| Generator | its workflow parses | structure: the workflow is a valid graph over the pool(s) |
| Inventor (Generator Skill) | every creation decision and authored component parses | deciding and authoring: reused components resolve to the pool, and newly authored ones instantiate and run |
| Downstream: Executing a Workflow | ||
| Downstream agent | its output parses | step format and step liveness: every node it runs reaches an answer of its own |
Table 4. Per-Role Validity. What each role’s own output needs to satisfy, split into the upstream roles that build a workflow and the downstream agent that executes it (Figure 1). Every reward is deterministic, so no learned judge enters the reward (§E.2).
Harness the Workflow: Rich in Signal, Broad in Reach
Every step of progress earns signal. The ladder makes the signal rich: it reflects every step of a role’s progress, from a well-formed output through a valid contribution to a correct answer. Because each stage with a nonzero weight adds its own term, the policy learns from the full hierarchy of outcomes. Thus, even a partially successful workflow yields a graded, informative gradient.
One shared harness generalizes to every role. The invariant tail carries across every role: the harness always runs a workflow and evaluates its answer, and only the source of the workflow or of its execution differs. Every role’s own quality enters through its own validity reward at the same stage of the ladder, deterministic and never a learned judge. Because the whole framework is shared (Figure 1), the harness generalizes to any role, which is what makes co-evolution across arbitrary roles practical (§ 3.4).
Define the Reward: Validity Reward in the Hierarchical Ladder
The reward of Eq. (3) is built from five terms. Whether the role’s output parses () gates the rest: an output that cannot be read leaves nothing to execute. Whether the role’s contribution is valid () is a role-specific term, and §E.2 states why the remaining terms are not: the harness always runs a workflow and grades its answer, so whether the workflow executes to a final answer () and how correct that answer is () are shared by every role (Eq. (3)). The credit term (§E.1) then charges a role only for the nodes it authors. Thus, only a parse failure gates the reward, while validity rewards without gating. A correct answer requires an execution that reaches one, so a role earns dense partial credit for how far its contribution carries the workflow.
A role earns its validity reward when its own output effectively contributes to the workflow, and Table 4 shows what a contribution amounts to for each role. Four forms arise: (1) structural correctness rewards a workflow that is well formed against the pool; (2) deciding and authoring reward components that resolve to an existing pool entry or, when newly authored, instantiate and run; (3) helpfulness rewards what the role’s intervention adds, calculated as the graded gain over the same flow without it, suiting a role that steers the flow; and (4) step format and step liveness reward every node the role runs for reaching an answer of its own. A reward resting on a semantic judgment (e.g., the coherence of a plan) is deliberately excluded: a semantically correct output can also lead to the wrong final answer, whereas an outcome-grounded gain measures the actual contribution.
Wire the Workflow: Representing Workflows In Different Topologies
A workflow needs to be properly written down to enable seamless upstream generation and downstream execution. FloWright allows four workflow topologies (Figure 11): a step schema, an agent graph, a state machine, and a block code. The four topologies differ only in where the control flow is recorded. A schema states it in a separate block, a graph types each edge, a state machine attaches conditions and bounds to transitions, and a code carries it in the type of a block. Each is converted into the same directed graph before harness execution: nodes hold the agent with its instruction and inputs, and edges hold sequence, parallel, conditional and bounded-loop relations, and a cycle that no topology marks as a loop is reclassified as a bounded one so the graph stays schedulable. The control operations convert the same way in every topology. Execution, credit, and evaluation therefore read one graph and never observe which topology produces it. For this reason, FloWright wires different topologies into the shared workflow graph (§ 3.1), and thus the topology a generator writes cannot change what the harness measures.

Figure 11. Workflow Topologies. We show an example of the same hardened task represented in four topologies: a step schema, an agent graph, a state machine, and a block code. Each topology example is directly extracted from our evaluation outputs and trimmed with [...]. The four topologies differ only in where the control flow is written down, e.g., a separate control_flow block, a typed edge, a transition, a block type, etc. Each is then converted into a shared directed graph structure, so execution, credit, and evaluation stay uniform without knowing which topology produced it (§E.4).
What the choice does change is how reliably the generator writes a workflow worth running: whether its output parses, whether the structure it declares is valid, and how well the resulting workflow performs. Thus, this becomes an empirical question that we measure via an ablation over the four topologies in § 5.2.
Implementation Details
Reward Configuration
Every role instantiates one hierarchical ladder, so the reward weights differ only where the roles differ. We summarize per-role reward weights in Table 5. Format carries 0.1 for every role, since parsing is a gate rather than an achievement. Across different roles, the answer term always dominates at 0.6 to 0.8. We set the execution weight to 0.0 for every role in main experiments: a workflow that does not run cannot answer, so the answer term already covers it, and weighting execution on its own would pay a workflow for running cleanly while answering wrongly. Coding tasks reward the term at 0.1, since a workflow there reaches an answer only once its code executes, so the ladder sets this weight by task type (§G.3). The validity term holds what each role alone controls, and its components take the weight the answer term leaves: one component for the Generator and the steering roles, two for the Inventor and the Downstream agent. The credit penalty of §E.1 rides on top at 0.1, and the ablation that switches it off sets it to 0.0 (§ 5.2).
Table 5: Per-Role Reward Configuration. Every role instantiates the same hierarchical ladder (Eq. (3)). The validity term is role-specific, and the credit penalty rides on top of the weighted sum (§E.1).
| Role | Format () | Validity () | Answer () | Credit () |
| Planner | 0.1 | helpfulness 0.1 | 0.8 | 0.1 |
| Generator | 0.1 | structure 0.1 | 0.8 | 0.1 |
| Inventor (Generator Skill) | 0.1 | grounding 0.1 + authoring 0.1 | 0.7 | 0.1 |
| Critic | 0.1 | helpfulness 0.3 | 0.6 | 0.1 |
| Downstream agent | 0.1 | step format 0.025 + step liveness 0.075 | 0.8 | 0.1 |
Table 5.
Experiment Configuration
As FLOWRIGHT contributes a training paradigm rather than an optimizer, the objective of Eq. (4) admits any policy-gradient method. We instantiate it with GRPO, DAPO, and CISPO, ablating the choice. All three draw rollouts per task and score them against their group rather than a learned critic, so they differ in how that group is turned into an update: GRPO normalizes token-level advantages within the group, DAPO decouples the clipping bounds and drops the groups that carry no signal, and CISPO clips the importance-sampling weight instead of the update, so a token far from the old policy is down-weighted rather than dropped from the gradient. We summarize our experiment configuration details in Table 6.
Table 6: Experiment Configuration. We summarize the experiment configurations for training and evaluation (§ 4). The same configuration applies across all four evolution modes and roles.
| Setting | Value | Note |
| Training Configuration | ||
| Policy optimization | GRPO / DAPO / CISPO | ablated; all three instantiate Eq. (4) |
| Learning rate | constant, uniform for all settings | |
| Group size | 8 | rollouts per task |
| Batch size | 8 | tasks per step |
| Epochs per data pass | 1 | constant, uniform for all settings |
| Clipping ratio | 0.2 | symmetric for GRPO; DAPO decouples the upper bound |
| KL loss coefficient | 0.001 | against the reference policy |
| Rollout sampling | , top-p=0.95, top-k=20 | temperature kept at 1.0 for group diversity |
| Evaluation Configuration | ||
| Decoding | greedy, | deterministic, so a reported number is reproducible |
| Baseline compute budget | matched | each baseline receives the budget of the workflow it is compared against |
| Seed | 12345 | shared by hardening, splitting, and evaluation |
Table 6.
Notation
We summarize the core notations in Table 7. An index denotes the -th item of the list in scope, and in § 3 it indexes tasks.
A Deeper Dive Beneath the Results
| Symbol | Meaning | Introduced in |
| a source dataset, and one of its samples: a question , its input , and its reference answer | Alg. 1 | |
| a hardening strategy: Shared, Paired, or Decoy | §D.1 | |
| the hardening level: questions per task for Shared and Paired, and inputs per task for Decoy | §D.1 | |
| the hardened tasks that strategy builds from a dataset’s training split, and those it builds from its test split | Alg. 1 | |
| the number of sub-questions a hardened task holds, one per original sample bundled into it | Alg. 1 | |
| Data Hardening | ||
| the answer a workflow returns for the -th sub-question of a hardened task, and that sub-question’s reference answer | Eq. 6 | |
| the score of one sub-question, given by the metric that its answer type uses | Tab. 2 | |
| the metrics of set-valued, numeric, open-ended, and code answers | Eqs. 7–10 | |
| a hardened task’s score: the mean of the scores of its sub-questions | Eq. 6 | |
| a dataset’s accuracy: the mean task score over the test tasks of a strategy and level | Eq. 6 | |
| the options, or list items, that an answer names, and those that its reference names | Eq. 7 | |
| rounding to the precision that the reference answer states | Eq. 8 | |
| normalization of case, punctuation, and spacing in a text answer | Eq. 9 | |
| the multiset of tokens of a text answer | Eq. 9 | |
| the indicator: 1 when its condition holds, and 0 otherwise | Eq. 8 | |
| the strictest execution-based test that a code dataset provides for generated code | Eq. 10 | |
| an LLM judge’s verdict: one integer on the anchored scale its prompt fixes | Eq. 11 | |
| the top of that anchored scale, by which the verdict is normalized | Eq. 11 | |
| the metric of an answer no rule decides: a judge’s verdict over | Eq. 11 | |
| whether generated code executes successfully, beyond assessment above | Eq. 12 | |
| the chart image that executing the code produces | Eq. 12 | |
| the code and render judges of a chart answer, and their mean | Eq. 12 |
Table 8.
A Deeper Dive Beneath the Results
Unfold the Means: Consistent Gains Across Datasets, Strategies, and Levels
FLOWRIGHT improves performance across diverse datasets, hardening strategies, and task complexities. As shown in Figure 12, the improvement holds on every dataset: under multi-agent co-evolution, all 12 datasets gain over the untrained workflow, with up to +7.34% on LongDocURL and +5.13% on ChartCoder. So no domain is traded away for another. It also holds on every hardening strategy, and grows as the strategy demands more of the workflow: +3.57% on shared, +4.11% on paired, and +4.68% on decoy. The improvement further holds at both levels of task complexity, with multi-agent co-evolution gaining +4.31% out-of-domain at and +4.09% at , and +5.80% and +6.21% out-of-distribution (Table 1). Consequently, increased task complexities does not erode the gain. Harnessing the workflow therefore improves performance across different datasets, strategies, and levels DATAWRIGHT spans, rather than on a favorable subset of them.
Generalize the Harness: Optimization Transfers to Different Settings
FLOWRIGHT generalizes to roles powered by backbones it never trains alongside. As shown in Figure 13, powering one upstream role with Qwen3.5-4B and other roles with Qwen3.5-9B performs between the two single-agent baselines, gaining +11.91% over the all-4B setting when Qwen3.5-4B powers the Generator and +10.77% when Qwen3.5-4B powers the Inventor skill. Exchanging the two models reverses the result: powering the Generator and the Inventor skill with Qwen3.5-9B and the downstream agent with Qwen3.5-4B reaches 29.57%, below the all-4B baseline of 32.09%. A stronger upstream model thus builds workflows for a downstream agent of its own capability, which a less capable downstream agent executes less effectively. Consequently, when using different backbones to power upstream and downstream roles, the downstream agent bounds what a workflow performs however well it is built. Optimizing a single 4B role then raises accuracy above the all-9B baseline of 47.50%, to 47.67% for the Generator, 47.96% for the Inventor skill, and 48.50% for co-evolving the two together. An optimized role transfers its gain when other roles run on a different backbone it never trains with. Train-time optimization therefore generalizes across models that power the remaining roles.
FLOWRIGHT improves performance whichever role it optimizes. As shown in Figure 14, every single-role optimization outperforms the untrained baseline, and every co-evolving optimization gains more: +2.83% for the Generator, +0.90% for the Inventor skill, and +0.88% for the downstream agent alone, against +4.06% for Generator-skill co-evolution, +3.06% for upstream-downstream co-evolution, and +5.03% for multi-agent co-evolution. The Generator is the largest single lever, gaining +2.59% out-of-domain where the other two roles stay flat. The role that designs every workflow returns the largest gain among single roles.
Meta distillation improves every backbone, including those FLOWRIGHT never optimizes. As shown in Figure 15, a meta-distilled prior gains in all three regimes on all four backbones, and overall by +1.62% on Qwen3.5-4B, +1.53% on Qwen3.5-9B, +1.44% on GPT-5-mini, and +1.91% on GPT-5.4-mini. Every backbone keeps its weights fixed, so each gain comes from the prior alone, and GPT-5.4-mini gains most among the four. What the harness distills at test time transfers to models whose weights stay beyond reach. Optimizing the signal thus improves a model FLOWRIGHT trains and a model it only prompts.
Weigh the Execution: The Ladder Adapts to the Task Type
Weighting execution adds the most on coding tasks. As shown in Figure 16, an execution weight of improves over the untrained baselines, gaining +3.98% and +5.68% on the coding arms and +0.59% and +2.03% over all 44 arms, for Qwen3.5-4B and Qwen3.5-9B respectively. On coding, where a workflow reaches an answer only once its code executes to earn score based on the portion of evaluation tests it passes, outperforms by +1.69% and +2.12%. Over all arms, where the answer term already covers whether a workflow reaches an answer, leads by +2.24% and +1.86%. This is also why our main experiments hold the execution weight at 0.0 (§F.1). The hierarchical ladder therefore serves as a paradigm whose weights follow what each task type demands, with execution earning its own weight where the task rewards running the workflow.
Figure 16. Execution Reward by Task Type. against untrained baselines, on the four coding arms (TACO and DS-1000) and over all 44 arms (§ 4). Every other ladder weight stays fixed (Table 5).
References
- [1]Saaket Agashe, Kyle Wong, Vincent Tu, Jiachen Yang, Ang Li, and Xin Eric Wang. Agent s2: A compositional generalist-specialist framework for computer use agents, 2025. URL https://arxiv.org/abs/2504.00906.
- [2]Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumbh Shandilya, Michael J Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. Gepa: Reflective prompt evolution can outperform reinforcement learning, 2026. URL https://arxiv.org/abs/2507.19457.
- [3]Mert Cemri, Melissa Z. Pan, Shuyi Yang, Lakshya A. Agrawal, Bhavya Chopra, Rishabh Tiwari, Kurt Keutzer, Aditya Parameswaran, Dan Klein, Kannan Ramchandran, Matei Zaharia, Joseph E. Gonzalez, and Ion Stoica. Why do multi-agent llm systems fail?, 2025. URL https://arxiv.org/abs/2503.13657.
- [4]Mengzhuo Chen, Junjie Wang, Fangwen Mu, Yawen Wang, Zhe Liu, Huanxiang Feng, and Qing Wang. Seeing the whole elephant: A benchmark for failure attribution in llm-based multi-agent systems, 2026. URL https://arxiv.org/abs/2604.22708.
- [5]Xin Cheng, Shuo He, Lang Feng, Hai Yang Xu, Ming Yan, Lei Feng, and Bo An. Beyond trajectory-level attribution: Graph-based credit assignment for agentic reinforcement learning, 2026. URL https://arxiv.org/abs/2605.26684.
- [6]Hyeong Kyu Choi, Xiaojin Zhu, and Sharon Li. Debate or vote: Which yields better decisions in multi-agent large language models?, 2025. URL https://arxiv.org/abs/2508.17536.
- [7]Yufan Dang, Chen Qian, Xueheng Luo, Jingru Fan, Zihao Xie, Ruijie Shi, Weize Chen, Cheng Yang, Xiaoyin Che, Ye Tian, Xuantang Xiong, Lei Han, Zhiyuan Liu, and Maosong Sun. Multi-agent collaboration via evolving orchestration, 2025. URL https://arxiv.org/abs/2505.19591.
- [8]Chao Deng, Jiale Yuan, Pi Bu, Peijie Wang, Zhong-Zhi Li, Jian Xu, Xiao-Hui Li, Yuan Gao, Jun Song, Bo Zheng, and Cheng-Lin Liu. Longdocurl: a comprehensive multimodal long document benchmark integrating understanding, reasoning, and locating, 2025. URL https://arxiv.org/abs/2412.18424.
- [9]Lang Feng, Zenghai Xue, Tingcong Liu, and Bo An. Group-in-group policy optimization for llm agent training, 2025. URL https://arxiv.org/abs/2505.10978.
- [10]Apurva Gandhi, Satyaki Chakraborty, Xiangjun Wang, Aviral Kumar, and Graham Neubig. Recursive agent optimization, 2026. URL https://arxiv.org/abs/2605.06639.
- [11]Xuehang Guo, Zhiyong Lu, Tom Hope, and Qingyun Wang. Anagent for enhancing scientific table & figure analysis, 2026. URL https://arxiv.org/abs/2602.10081.
- [12]Sirui Hong, Mingchen Zhuge, Jiaqi Chen, Xiawu Zheng, Yuheng Cheng, Ceyao Zhang, Jinlin Wang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmidhuber. Metagpt: Meta programming for a multi-agent collaborative framework, 2024. URL https://arxiv.org/abs/2308.00352.
- [13]Mengkang Hu, Yuhang Zhou, Wendong Fan, Yuzhou Nie, Bowei Xia, Tao Sun, Ziyu Ye, Zhaoxuan Jin, Yingru Li, Qiguang Chen, Zeyu Zhang, Yifeng Wang, Qianshuo Ye, Bernard Ghanem, Ping Luo, and Guohao Li. Owl: Optimized workforce learning for general multi-agent assistance in real-world task automation, 2025a. URL https://arxiv.org/abs/2505.23885.
- [14]Shengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems, 2025b. URL https://arxiv.org/abs/2408.08435.
- [15]Chengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang, Zongxia Li, Ruosen Li, Jiaxin Huang, Haitao Mi, and Dong Yu. R-zero: Self-evolving reasoning llm from zero data, 2026. URL https://arxiv.org/abs/2508.05004.






