alphaFeedback

WorksComputer Science

IF-MAP: Influence-Function-Inspired Agent Prioritization in Multi-Agent Systems

AI contributions
  • Generative AI assistants
View details

Abstract

Improving every agent in an LLM-based multi-agent system can be prohibitively costly, making it important to identify which agent should be prioritized to achieve the greatest system-level gain with limited resources. Failure attribution can inform this decision, but an agent's responsibility for failures does not directly reveal the system-level gains achievable by improving it. We therefore introduce IF-MAP, an influence-function-inspired method for identifying agents with high potential for system-level improvement. For each agent, IF-MAP measures end-to-end loss changes under controlled semantic prompt perturbations, fits a regularized local response model in a low-dimensional prompt-embedding subspace, and uses the estimated response norm as a priority score. This black-box procedure requires no access to model parameters or gradients and produces agent priorities that can guide subsequent improvement effort. We evaluate IF-MAP across six multi-agent workflows spanning code generation, question answering, and mathematical reasoning, using the same priorities for prompt optimization and model upgrades. Optimizing the selected agents' prompts achieves a macro-average gain of 3.81 percentage points, compared with 1.85 for uniform agent selection. Across five target models, upgrading the selected agents yields macro-average gains of 7.62-16.42 percentage points, compared with 3.81-8.62 for uniform agent selection. Despite its probing overhead, IF-MAP reduces Qwen3-8B and DeepSeek-V3.2 token use by 74.2% and 35.2%, respectively, relative to optimizing every agent, and reduces target-model tokens by 63.6-64.9% relative to upgrading every agent. These results support the use of IF-MAP to identify promising agents and direct improvement effort toward greater end-to-end performance gains.

Code: https://github.com/s1412/IF-MAS

Introduction

Large language model (LLM)-based multi-agent systems distribute complex tasks across specialized agents that generate solutions, gather evidence, coordinate reasoning, and verify intermediate or final outputs (Wu et al., 2023; Zhang et al., 2025a). Their performance depends on both the capabilities of individual agents and the interactions through which their outputs affect the overall computation. Improving such a system therefore offers several possible interventions: replacing an agent’s model with a more capable one, fine-tuning its model, refining its instructions, or improving its tools. However, these interventions need not produce comparable benefits at different agents. For example, in a question-answering workflow, refining the answer-generation agent’s prompt may improve overall answer accuracy, whereas refining the prompt of the agent that combines candidate answers may yield little benefit or even reduce accuracy. Determining where to direct improvement effort is consequently an important decision in developing multi-agent systems.

This decision becomes particularly consequential under limited development compute, evaluation capacity, or deployment resources. Improving all agents may exceed these resource limits. For example, replacing every agent’s model with a more capable one can substantially increase the inference cost of each workflow execution, making a system-wide upgrade prohibitively expensive.

We therefore study agent prioritization: given a fixed multi-agent system, select the agent whose improvement is expected to produce the largest end-to-end performance gain. This formulation captures the next improvement decision in an ongoing development process. The goal is to identify a high-value target without carrying out the full improvement procedure for every candidate agent.

Existing work provides useful foundations for this decision. Failure-attribution methods identify agents and execution steps associated with unsuccessful outcomes, providing evidence for debugging and system refinement (Zhang et al., 2025b). Nevertheless, responsibility for an observed failure does not uniquely determine an agent’s potential for system-level improvement. An agent may frequently contribute to errors while offering little room for improvement, whereas another agent may admit a change that substantially improves downstream behavior. Intervention-oriented studies further demonstrate the importance of evaluating actual recovery and realized system-level gains [14] (Yoon & Kim 2026). These observations motivate a complementary objective: estimating which agent is a promising target for system-level improvement under a limited budget.

Influence functions offer a useful conceptual starting point for this objective. Classical influence functions characterize how perturbations to training data affect a learned model and its predictions [11]. We take inspiration from this perturbation-based perspective and investigate whether controlled changes to an agent can reveal information useful for prioritizing its improvement. Because an agent’s outputs propagate through the remaining workflow, measuring the resulting end-to-end loss captures responses beyond that agent’s immediate behavior. In the black-box setting considered here, we obtain this evidence through workflow executions and semantic representations, without requiring access to model parameters or gradients. The central hypothesis is that an estimated local response can reveal agents with substantial improvement potential, providing a useful signal for allocating improvement effort.

We propose IF-MAP, Influence Function–Inspired Multi-Agent Prioritization for System Improvement. For each agent, IF-MAP constructs controlled semantic prompt perturbations and measures their effects on end-to-end loss while keeping the remaining system configuration fixed. It represents these perturbations as displacements in a prompt-embedding space and fits a regularized local response model within a low-dimensional subspace. The norm of the estimated response vector then provides an agent-priority score, incorporating both the observed loss changes and the geometry of the perturbations. Prompt perturbations serve as executable black-box interventions, and the resulting ranking guides subsequent improvement effort. This makes IF-MAP a prioritization step that can be used alongside existing agent-improvement methods. The score uses estimated local response sensitivity to define a model-implied local intervention opportunity, whose relation to realized gains we evaluate through prompt optimization and model upgrades.

Macro-average performance and ranking agreement across six workflows

Figure 2. Macro-average performance and ranking agreement across six workflows spanning code generation (HumanEval and MBPP), question answering (NQ, HotpotQA and DROP), and mathematical problem solving (MATH). The base model (before the model upgrade) is Qwen3-8B. Higher mean performance and ranking agreement (Kendall τb\tau_b) indicate better system performance and stronger agreement between the agent-priority and realized-improvement rankings, respectively.

We evaluate IF-MAP across six task-specific multi-agent workflows spanning code generation, question answering, and mathematical reasoning. We assess the usefulness of the same agent priorities through prompt optimization and upgrades to stronger models. Under prompt optimization, IF-MAP achieves a macro-average selected gain of 3.81 percentage points (pp), compared with 1.85 pp for uniform agent selection (Table 1). Across five model-upgrade targets, the selected gains range from 7.62 to 16.42 pp, compared with 3.81–8.62 pp for uniform agent selection (Table 2). The selected mean gains exceed the uniform-selection reference on all six workflows under prompt optimization and each model-upgrade target. The priorities also align with observed improvement gains: mean Kendall τb\tau_b is 0.741 for prompt optimization and 0.708–0.804 across the five model upgrades. These findings support IF-MAP as a useful tool for directing improvement effort toward agents with substantial potential for system-level gains.

AlgorithmHumanEval Δ\Delta ↑HumanEval τb\tau_b ↑MBPP Δ\Delta ↑MBPP τb\tau_b ↑NQ Δ\Delta ↑NQ τb\tau_b ↑DROP Δ\Delta ↑DROP τb\tau_b ↑HotpotQA Δ\Delta ↑HotpotQA τb\tau_b ↑MATH Δ\Delta ↑MATH τb\tau_b ↑Macro (6) Δ\Delta ↑Macro (6) τb\tau_b ↑
IF-MAP (ours)+4.440.556+7.910.889+2.140.778+4.991.000+1.530.556+1.850.667+3.810.741
Who&When-AAO+3.23-0.222+3.020.222+2.140.333+4.991.000+1.530.333+1.38-0.035+2.720.272
A2P+3.23-0.556+3.020.000+2.140.333+4.991.000+1.530.333+1.380.004+2.720.186
Adapted locator+4.550.816+5.270.516-0.11-0.333+2.980.333-0.55-0.778-0.40-0.713+1.96-0.026
AgentRx+3.74-0.161+0.16-0.411+2.140.333+4.991.000+1.530.333+1.05-0.084+2.270.169
CHIEF+4.440.444+3.800.365+1.390.111+4.991.000+1.530.333+1.700.305+2.980.427
FAMAS+4.650.717+4.650.669+2.140.878+4.991.000+1.530.778+1.850.219+3.300.710
Uniform-agent reference†+3.43—+2.85—+1.34—+1.98—+0.33—+1.18—+1.85—

Table 1. Prompt optimization: mean selected gain and mean Kendall τb\tau_b for each dataset and their six-dataset macro means.

AlgorithmHumanEval Δ↑\Delta\uparrowHumanEval τb↑\tau_b \uparrowMBPP Δ↑\Delta\uparrowMBPP τb↑\tau_b \uparrowNQ Δ↑\Delta\uparrowNQ τb↑\tau_b \uparrowDROP Δ↑\Delta\uparrowDROP τb↑\tau_b \uparrowHotpotQA Δ↑\Delta\uparrowHotpotQA τb↑\tau_b \uparrowMATH Δ↑\Delta\uparrowMATH τb↑\tau_b \uparrowMacro (6) Δ‾↑\overline{\Delta} \uparrowMacro (6) τb‾↑\overline{\tau_b} \uparrow
A. Qwen3-32B / Qwen3-235B-A22B / Qwen3.7-Plus (mean)
IF-MAP (ours)+17.310.778+13.410.889+17.400.778+10.191.000+8.030.630+8.800.578+12.520.775
Who&When-AAO+14.880.494+7.670.222+17.400.333+10.191.000+8.030.556+3.760.035+10.320.440
A2P+14.880.111+7.670.000+17.400.333+10.191.000+8.030.556+3.760.099+10.320.350
Adapted locator+14.850.816+8.840.516-0.47-0.333+8.820.333+0.36-0.556+2.22-0.305+5.770.079
AgentRx+18.550.605+1.23-0.411+17.400.333+10.191.000+8.030.556+3.650.018+9.840.350
CHIEF+17.310.717+8.470.365+11.440.111+10.191.000+8.030.556+6.820.347+10.380.516
FAMAS+12.390.444+9.590.669+17.400.878+10.191.000+8.030.704+8.800.363+11.070.676
Uniform-agent reference†+9.97—+6.28—+6.23—+8.13—+3.34—+5.46—+6.57—
B. DeepSeek-V3.2
IF-MAP (ours)+15.760.778+12.330.889+23.080.778+8.971.000+5.180.556+9.590.246+12.480.708
Who&When-AAO+12.530.494+8.600.222+23.080.333+8.971.000+5.180.333+2.20-0.704+10.090.280
A2P+12.530.111+8.600.000+23.080.333+8.971.000+5.180.333+2.20-0.639+10.090.190
Adapted locator+14.240.816+8.290.516+1.70-0.333+7.630.333+1.47-0.778+3.86-0.074+6.200.080
AgentRx+15.660.605+0.93-0.411+23.080.333+8.971.000+5.180.333+2.87-0.201+9.450.277
CHIEF+15.760.717+7.750.365+15.960.111+8.971.000+5.180.333+6.01-0.289+9.940.373
FAMAS+12.730.444+9.840.669+23.080.878+8.971.000+5.180.778+9.590.192+11.570.660
Uniform-agent reference†+9.49—+5.87—+8.89—+6.96—+3.01—+5.28—+6.58—
C. GPT-5 nano
IF-MAP (ours)+19.390.778+17.210.556+14.100.556+6.501.000+3.030.778+11.240.733+11.910.733
Who&When-AAO+16.770.494+2.09-0.111+14.101.000+6.501.000+3.031.000+1.38-0.246+7.310.523
A2P+16.770.111+2.09-0.333+14.101.000+6.501.000+3.031.000+1.38-0.211+7.310.428
Adapted locator+16.670.816+11.320.415+2.140.333+5.220.333+1.38-0.111+0.69-0.509+6.240.213
AgentRx+20.810.605+1.01-0.289+14.100.000+6.501.000+3.031.000+2.26-0.159+7.950.526
CHIEF+19.390.717+7.750.233+10.110.778+6.501.000+3.031.000+7.110.235+8.980.660
FAMAS+13.940.444+7.130.304+14.100.655+6.501.000+3.030.556+11.240.364+9.320.554
Uniform-agent reference†+11.31—+5.70—+5.86—+4.58—+1.51—+5.87—+5.81—

Table 2. Model upgrades: selecting an agent for upgrade. Panel A averages the metrics over Qwen3-32B, Qwen3-235B-A22B, and Qwen3.7-Plus; panels B and C report DeepSeek-V3.2 and GPT-5 nano separately. Each panel includes its uniform-agent reference (the † row). Mean gain and mean Kendall are reported for each dataset and in macro average.

Our contributions are threefold:

  • Agent prioritization for system improvement. We formulate the selection of an agent to prioritize under a limited budget in a fixed multi-agent system, with expected end-to-end improvement as the target quantity.

  • Influence-function-inspired response estimation. We introduce IF-MAP, a black-box prioritization method that combines semantic perturbations, whole-system response measurements, and a regularized local model to estimate agent response sensitivity.

  • Empirical validation of agent priorities. We evaluate the same priorities across six workflows through prompt optimization and model upgrades, obtaining higher mean selected gains than uniform agent selection and measuring ranking agreement with observed improvement gains.

Agent prioritization in multi-agent systems

We consider a fixed LLM-based multi-agent system WW with nn agents, indexed by i∈{1,…,n}i \in\{1,\ldots,n\}, prompts p=(p1,…,pn)\mathbf{p} = (p_1,\ldots,p_n), and assigned models. An agent corresponds to a persistent workflow role and may execute multiple times within a run. The workflow structure determines how agents exchange information, so changing one agent can affect both its own outputs and the behavior of downstream agents. For a task example xx, the system-level score s(W,x)∈[0,1]s(W, x) \in[0, 1] defines the loss ℓ(W,x)=1−s(W,x)\ell(W, x) = 1 - s(W, x).

Prioritization objective. Under a limited improvement budget, our goal is to identify the agent whose improvement is expected to yield the largest end-to-end gain. Let Ai\mathcal{A}_i denote an improvement procedure applied to agent ii, with the workflow structure and the configurations of all other agents fixed. This procedure may refine the agent’s prompt, upgrade or fine-tune its model, or improve its tools. For a given procedure and budget, the expected utility of improving agent ii is

Ui=Ex,ξ[ℓ(W,x)−ℓ(Ai(W;ξ),x)],(1)U_i = \mathbb{E}_{x,\xi}\left[\ell(W, x) - \ell(\mathcal{A}_i(W; \xi), x)\right], \tag*{(1)}

where the expectation is over task examples xx and randomness ξ\xi in workflow execution and improvement. A prioritization method assigns each agent a score SiS_i and selects i^∈arg⁡max⁡iSi\hat{i} \in\arg\max_i S_i, aiming for a large Ui^U_{\hat{i}} without executing the full improvement procedure for every agent. IF-MAP estimates these priorities from development-time response probes; its ranking can then guide subsequent agent improvement.

Evaluating agent priorities. We evaluate the priorities through the gains obtained by improving the selected agents. Let U^i\widehat{U}_i be the mean observed test gain from improving agent ii. For a unique top-ranked agent, the selected gain is 100U^i^100\widehat{U}_{\hat{i}} percentage points (pp). If multiple agents share the highest priority score, we report their average observed improvement gain, corresponding to selecting one of these agents uniformly at random. We compare selected gain with no improvement (zero gain), uniform agent selection (100n−1∑iU^i100n^{-1}\sum_i \widehat{U}_i), and the empirical best agent (100max⁡iU^i100\max_i \widehat{U}_i). Evaluating improvements at every agent provides an offline reference for assessing the selection; these test outcomes are not inputs to the prioritization method.

To assess the full ranking, we compute Kendall’s τb\tau_b [10] between the ranking induced by agent-priority scores and the ranking induced by mean observed test gains from improving each agent. This metric accounts for ties in both rankings and measures whether agents assigned higher priority tend to yield larger improvements. Higher values indicate stronger agreement. Appendix § 14 specifies aggregation and uncertainty estimates.

IF-MAP: Influence-function-inspired agent prioritization

IF-MAP is inspired by influence functions, which characterize how perturbations to training data affect a learned model and its predictions [11]. We adapt this perturbation-response perspective to agent prioritization: semantic changes to one agent’s prompt reveal how its behavior affects end-to-end loss. Our estimator fits a local response model from black-box workflow executions and prompt embeddings, without computing classical training-data influences or accessing model parameters, gradients, or Hessians. As illustrated in Figure 1, we probe each agent, estimate its local response strength, and use the resulting scores to direct improvement effort.

Overview of IF-MAP

Figure 1. Overview of IF-MAP. Given a fixed multi-agent system ①, we perturb one agent’s prompt at a time and measure end-to-end losses on the probing set ②. Subspace ridge regression on normalized prompt-embedding displacements and loss responses estimates a local response vector; its norm gives an influence-function-inspired priority score ③. We rank agents by this score ④ and direct improvement effort toward the top-ranked agent ⑤, e.g., through prompt revision, model upgrades, or fine-tuning. The ranking is illustrative.

Data subsets. We use disjoint development subsets for probing, optimization, and validation, and reserve the test set for frozen interventions; complete data roles and sizes appear in Appendix § 11.

Probing agents through semantic prompt perturbations

For each agent ii, we start from its original prompt pip_i and construct at most ten formal perturbations pi(m)p_i^{(m)} spanning static, adaptive, and structure-preserving changes. They retain the agent’s role and required output interface, while structural checks reject unusable or duplicate prompts. The ten-slot budget is therefore an upper bound on the realized perturbation pool. Appendix § 12 provides the full perturbation protocol.

Each probe changes only agent ii’s prompt, keeping the other agents’ prompts, all assigned models, and the workflow structure fixed. We execute the full system on the probing set, so the measured response includes changes propagated through agent interactions. Let L‾0\overline{L}_0 denote the mean baseline loss and L‾i(m)\overline{L}_i^{(m)} the mean loss under perturbation mm. The signed effect is Δim=L‾0−L‾i(m)\Delta_{im} = \overline{L}_0 - \overline{L}_i^{(m)}, with positive values indicating improvement.

Estimating local response strength

Our goal is to turn the probe results into a priority score that reflects how strongly system performance responds to changes in each agent. Influence functions motivate studying such responses through a local approximation: they estimate how perturbing training data affects a learned model and its downstream loss [11]. Inspired by this perspective, we estimate how changes to an agent’s prompt affect the end-to-end loss of the multi-agent system. We learn this response from observed workflow executions, using prompt embeddings to represent the changes.

Representing prompt changes and their effects. Each probe provides two pieces of information: how the prompt changed and how the system’s loss changed. A fixed embedding model EE maps prompts to L2-normalized vectors, allowing us to represent a prompt change as a displacement in embedding space. Since perturbations can differ in size, we normalize both the displacement and the observed loss change by the embedding distance between the original and perturbed prompts:

vim=E(pi(m))−E(pi),uim=vim∥vim∥2,yim=Lˉi(m)−Lˉ0∥vim∥2.(2)v_{im} = E\left(p_i^{(m)}\right) - E\left(p_i\right), \qquad u_{im} = \frac{v_{im}}{\lVert v_{im} \rVert_2}, \qquad y_{im} = \frac{\bar{L}_i^{(m)} - \bar{L}_0}{\lVert v_{im} \rVert_2}. \tag*{(2)}

Here, vimv_{im} represents the prompt change, uimu_{im} describes its direction, and yimy_{im} measures the resulting loss change per unit of embedding distance. Positive values of yimy_{im} indicate increased loss, whereas negative values indicate improvement. This normalization compares responses relative to perturbation size, using embedding distance as a proxy for that size. We exclude zero or near-zero displacements and let MiM_i denote the number of retained measurements.

Combining probes into a stable local response model. A single probe measures the response to one particular change. To combine evidence from several changes, we fit a simple linear model that predicts each normalized loss response from its direction: yim≈g^iTuimy_{im} \approx\hat{g}_i^{\mathsf{T}}u_{im}. The vector g^i\hat{g}_i acts as an estimated local slope: it summarizes which directions tend to increase or decrease loss and how strongly the system responds along those directions. This adopts a local perturbation–response perspective inspired by influence functions, while estimating the response directly from finite prompt perturbations rather than differentiating through model training.

There are few probes relative to the embedding dimension, so estimating a separate response for every embedding coordinate would be unreliable. We therefore restrict the fit to a low-dimensional space derived from the observed probe directions. We also use ridge regularization to discourage large, unstable coefficients. These choices allow the estimate to combine the available evidence without fitting an unrestricted high-dimensional response.

Formally, let ViV_i have rows uimTu_{im}^{\mathsf{T}} and let yiy_i collect the responses yimy_{im}. We construct an orthonormal basis QiQ_i from the right-singular vectors of the centered direction matrix and set Zi=ViQiZ_i = V_iQ_i. Centering is used only to construct the basis; the regression retains the original directions so that they remain paired with their measured responses. Ridge regression [9] gives

β^i=(ZiTZi+λI)−1ZiTyi,g^i=Qiβ^i,SiG=∥g^i∥2.(3)\hat{\beta}_i = \left(Z_i^{\mathsf{T}}Z_i + \lambda I\right)^{-1}Z_i^{\mathsf{T}}y_i, \qquad\hat{g}_i = Q_i\hat{\beta}_i, \qquad S_i^{G} = \lVert\hat{g}_i \rVert_2. \tag*{(3)}

The coefficients β^i\hat{\beta}_i describe the response in the reduced space, and g^i\hat{g}_i expresses that response in the original embedding space. We use Qwen3-Embedding-8B vectors (Zhang et al., 2025c), and a default subspace size of max⁡(1,Mi−1)\max(1, M_i - 1), bounded by the available SVD dimensions.

Turning response strength into an agent priority. For a local displacement δ∈span⁡(Qi)\delta\in\operatorname{span}(Q_i), the fitted model predicts the loss change g^iTδ\hat{g}_i^{\mathsf{T}}\delta. Under a common local intervention radius rr, define the model-implied intervention opportunity as

U^i(r)=max⁡δ∈span⁡(Qi)∥δ∥2≤r−g^iTδ=r∥g^i∥2=rSiG.(4)\hat{U}_i(r) = \max_{\substack{\delta\in\operatorname{span}(Q_i) \\ \lVert\delta\rVert_2 \le r}} -\hat{g}_i^{\mathsf{T}}\delta= r\lVert\hat{g}_i\rVert_2 = rS_i^{G}. \tag*{(4)}

The equality follows from Cauchy–Schwarz and, for g^i≠0\hat{g}_i \ne0, is attained at δi∗=−rg^i/∥g^i∥2\delta_i^{*} = -r\hat{g}_i/\lVert\hat{g}_i\rVert_2. Thus, for a common radius, ranking agents by SiGS_i^{G} is equivalent to ranking them by the maximum first-order loss reduction predicted within the fitted perturbation subspace. Intuitively, a larger score indicates a steeper local response and a larger predicted loss-reducing direction. § 4 evaluates how these priorities transfer to realizable prompt revisions and model upgrades.

Entries report means only; Δ\Delta is gain in percentage points. The complete mean±\pmSE results appear in Appendix Table 11. Top ties use uniform tie-averaged gain, and Kendall retains score ties. † denotes the uniform-agent expected gain, a reference average rather than a selector; bold/underline marks the largest/second-largest distinct displayed mean per column.

Comparison with response-magnitude scores. For ablation, we compare GG-norm with II-abs and MeanAbs, which summarize the largest and average absolute probe effects, respectively. Unlike these magnitude-only scores, GG-norm also uses the directions and sizes of prompt changes. Appendix § 17 gives the formal definitions.

From agent priorities to system improvement

After ranking agents by SiGS^{G}_{i}, we apply the improvement procedure only to a highest-scoring agent while keeping the remaining workflow fixed.

We assess the same priorities through prompt optimization and model upgrades. For prompt optimization, a shared textual-feedback optimizer revises only the selected agent using development-set evidence [17] (Yuksekgonul et al. 2025). Its full protocol appears in Appendix § 13. For model upgrades, the selected agent receives a stronger model while retaining its original prompt. Final configurations are fixed before test-set evaluation; § 4 details the evaluation protocols and the model-upgrade results.

Experiments

Experimental setup and baselines

Workflows and data. We study six AFlow-derived workflows (Zhang et al., 2025a): HumanEval and MBPP (code), NQ (factoid question answering), HotpotQA (multi-hop question answering), DROP (discrete reasoning over passages), and MATH (mathematical problem solving) [4, 1, 12, 6, 8] (Yang et al. 2018). For all six datasets, we start from the benchmark partitions used by AFlow and divide their development data into the roles specified in Appendix § 11. The appendix also specifies sample counts and node inventories.

Models and configurations. Experiments use Qwen3-8B for workflow execution (Yang et al., 2025), DeepSeek-V3.2 for prompt operations (DeepSeek-AI, 2025), and five model-upgrade targets: Qwen3-32B, Qwen3-235B-A22B, Qwen3-7B [18, 19], DeepSeek-V3.2, and GPT-5 nano (OpenAI, n.d.). DeepSeek’s prompt-operation and upgrade roles are evaluated and accounted for separately. The Qwen3-235B-A22B target specifically uses the Instruct-2507 checkpoint. Full configurations and repetitions appear in Appendix § 11, with uncertainty aggregation specified in Appendix § 14.

Baselines. We compare IF-MAP with six failure-attribution, debugging, or weak-agent localization methods adapted to produce workflow-level agent rankings. Who&When-AAO uses the complete conversation log for agent/step failure attribution (Zhang et al., 2025b); A2P uses counterfacEntries report means only; the complete mean±SE results appear in Appendix Table 12. Uniform-agent rows are reference averages rather than selectors. Other notation and formatting conventions follow Table 1.

tual blame reasoning (West et al., 2025); the adapted locator uses the locator component of Shen et al. (Shen et al., 2025); AgentRx uses trajectory-derived constraints and debugging evidence Barke et al., [2]; and CHIEF and FAMAS provide additional failure-attribution procedures (Wang et al., 2026; Ge et al., 2025). We use the All-at-Once variant of Who&When because the original study reports higher agent-level accuracy when the full conversation log is available. We adapt all six methods to produce workflow-level agent rankings from development trajectories. Appendix § 16 describes the common evaluation setting, aggregation procedure, and method-specific adaptations.

Main Results

Prompt optimization. Table 1 shows that IF-MAP achieves a macro-average selected gain of 3.81 pp, which is 1.96 pp above the uniform-agent reference and 0.51 pp above FAMAS, the strongest external selector on this measure. Its selected gain exceeds the uniform-agent reference on all six workflows, with the largest margins on MBPP and DROP (5.06 and 3.01 pp, respectively), so the aggregate improvement is not confined to one task family. IF-MAP also has the highest mean Kendall τb\tau_b (0.741 versus 0.710 for FAMAS), showing that it achieves a better overall ordering of agents by their realized prompt-improvement gains, not only a better top-agent selection.

Model upgrades. The prompt-derived priorities are reused without target-specific reprioritization. Table 2 gives macro-average selected gains of 12.52, 12.48, and 11.91 pp for the mean across the three Qwen upgrade targets, DeepSeek-V3.2, and GPT-5 nano, respectively. The corresponding uniform-agent references are 6.57, 6.58, and 5.81 pp, and the mean Kendall τb\tau_b values for IF-MAP are 0.775, 0.708, and 0.733. Target-wise uncertainty, per-node gains, and complete rankings appear in Appendix § 15. Across the five individual targets, selecting with IF-MAP yields 1.86–2.05 times the gain of upgrading a uniformly chosen agent. IF-MAP also exceeds the strongest external selector baseline by 1.45, 0.91, and 2.59 pp in the three displayed panels and has the highest macro-average ranking agreement in each panel. The same priorities are used across all five target models, and their consistent performance suggests that the probes identify agent-level leverage that transfers across replacement models. The uniform-agent reference averages all agents within each dataset, so the gap over that row measures the benefit of deciding where to upgrade rather than the capability gain of the target model alone.

Cost analysis

Semantic probing evaluates each perturbation through the complete workflow, requiring more Qwen3-8B executions than most attribution baselines. It uses only 3.6–34.1% of their DeepSeek-V3.2 requests and 1.5–16.6% of their DeepSeek tokens, shifting computation from diagnostic-model calls to base-model workflow execution.

The same effect is more consequential for downstream improvement. Compared with applying the same prompt optimizer to every agent, selecting one agent with IF-MAP uses 30.69% of the Qwen requests, 25.82% of the Qwen tokens, 57.16% of the DeepSeek requests, and 64.78% of the DeepSeek tokens. For model replacement, FullSwap (i.e., upgrading every agent to the target model) avoids the Qwen3-8B and DeepSeek selection overhead, but invokes the target model for every agent: it uses 2.61–3.16 times as many target-model requests and 2.75–2.85 times as many target-model tokens as IF-MAP. Thus, the practical benefit of prioritization is not simply fewer total calls, but concentrating optimization and target-model calls on a single promising agent while using a cheaper model to decide where that effort should be spent. Complete request and token counts are reported in Appendix Tables 16–18.

Ablation Study

Table 3 reports two matched ablations, macro-averaged with equal weight across the six workflows. The scoring-rule variants use the same probes and realized intervention gains, changing only how probe responses are converted into priorities. The budget variants all use GG-norm but retain three, five, or up to ten formal probes per agent (adopted by our main IF-MAP configuration). For model upgrades, each agent’s gain is averaged across all five target models before aggregation. Complete aggregation rules appear in Appendix § 14.

MethodPrompt optimizationModel upgrades
Gain (pp) ↑τb\tau_b ↑Gain (pp) ↑τb\tau_b ↑
IF-MAP+3.8120.741+12.3940.778
Scoring-rule ablation
w/ I-abs+3.2760.752+9.3960.641
w/ MeanAbs+3.5760.774+9.0900.663
Probe-budget comparison
w/ 3 probes+2.4520.289+6.7440.178
w/ 5 probes+2.9030.415+7.8060.304

Table 3. Macro-average ablation results over six datasets. IF-MAP uses G-norm and the full probe pool (at most 10 probes per node). Scoring variants replace only the scoring rule; budget variants retain G-norm. Model upgrades use per-node gains averaged over all five target models. Dataset means are equally weighted.

Scoring-rule ablation. This ablation directly tests the § 3.2 choice to fit a geometry-aware local response rather than use magnitude-only summaries. Using identical probes and test outcomes, GG-norm obtains the highest selected gains: 3.812 pp for prompt optimization and 12.394

pp for model upgrades, exceeding II-abs by 0.536 and 2.998 pp and MeanAbs by 0.236 and 3.304 pp, respectively. The larger model-upgrade advantage suggests that the direction and displacement information used by GG-norm transfers beyond prompt editing. However, MeanAbs has slightly higher prompt-ranking agreement (0.774 versus 0.741) while yielding lower selected gain, showing that agreement over the full ranking need not identify the best top-ranked intervention target.

Probe-budget comparison. With GG-norm, increasing the budget from three to five probes raises selected gain from 2.452 to 2.903 pp for prompt optimization and from 6.744 to 7.806 pp for model upgrades, while mean Kendall τb\tau_b increases by 0.126 for both. The full pool of up to ten probes further raises the gains to 3.812 and 12.394 pp and substantially improves ranking agreement, suggesting that five probes provide insufficient aggregate directional coverage. Per-workflow effects are not monotonic, and the reduced variants retain auxiliary adaptive evaluations; the comparison therefore supports a larger formal response pool rather than a proportional cost reduction.

Related work

Attribution, debugging, and improvement. Failure-attribution and debugging methods localize agents or steps associated with unsuccessful outcomes through full-trajectory attribution, counterfactual blame, constraint-based evidence, and other localization signals [2] (Zhang et al. 2025b; West et al. 2025; Shen et al. 2025; Wang et al. 2026; Ge et al. 2025). We adapt six such methods as external selectors in § 4.1. DoVer emphasizes that attribution should be validated through realized interventions [14]. CICA shows more directly that, in its experimental setting, the module assigned the greatest responsibility is not necessarily the module whose repair yields the greatest benefit (Yoon & Kim, 2026). This distinction motivates our work: rather than equating responsibility with improvement potential, we evaluate workflow-level agent priorities through two downstream intervention families.

Optimizing prompts and workflows. ProTeGi and TextGrad use textual feedback to improve prompts or compound computations [17] (Yuksekgonul et al. 2025). AFlow searches executable agentic workflows (Zhang et al., 2025a). HiveMind uses coalition-based credit for online prompt optimization, while Agents that Matter studies removal- and model-replacement-based attribution [13] (Xia et al. 2026). Their coalition/removal variants require a semantics-preserving executor for workflows with absent agents, which is not consistently available for our workflows; Appendix F gives details. Optimas instead optimizes components with globally aligned local rewards (Wu et al., 2026). Our work focuses on the preceding allocation decision of which agent to improve.

Local response estimation. Our response-estimation procedure is methodologically related to local sensitivity analysis and finite-difference estimation [3, 15], as well as local surrogate methods such as LIME (Ribeiro et al., 2016). These approaches characterize local input–output behavior through derivatives, perturbations, or locally fitted surrogate models. IF-MAP applies this general principle at the level of semantically structured agent responses: each perturbed response is propagated through the downstream workflow, and its effect on task-level system utility is measured to estimate an agent-level response signal. This signal is then used to prioritize candidate agents for improvement under a fixed intervention budget. We demonstrate that the estimated priorities translate into practical gains through downstream interventions including prompt optimization and model upgrades.

Conclusion

We introduced IF-MAP, a black-box method for deciding where limited improvement effort should be directed in a fixed LLM-based multi-agent system. By measuring end-to-end responses to semantic prompt perturbations and fitting a regularized local response model, IF-MAP estimates model-implied local intervention opportunities and identifies agents with promising system-level improvement potential. Across six workflows, its priorities guide both prompt optimization and model upgrades, yielding larger selected gains than uniform agent selection while reducing the expensive downstream calls required by full-agent interventions. These results suggest that local response estimation can provide a practical link between failure analysis and resource-aware multi-agent system improvement. Realized gains depend on the embedding model, local linearity, probe coverage, and the alignment between available interventions and the fitted loss-reducing direction. Future work should translate the continuous response direction into discrete improvements through direction-conditioned generation, iterative edit-and-measure procedures, adaptive probing, and uncertainty-aware selection.

AI Use Statement

Generative AI assistants were used in preparing this draft, including literature retrieval, drafting, code assistance, table construction, and automated consistency checks. The experiment itself also uses LLMs for workflow execution, prompt generation, and diagnostic judgments, as distinguished in the experimental protocol. No missing measurements were synthesized as results. Responsibility for verification of the experimental evidence, references, and final submission remains with the authors.

Ethics Statement

The study uses existing public benchmarks and model services. Generated code can be unsafe and must be executed in an appropriately restricted environment. Execution transcripts may contain sensitive material in deployment settings; only authorized data should be sent to external prompt-generation or judgment services. Scientific integrity requires retaining infrastructure failures, distinguishing missing from zero results, and disclosing adaptations of published baselines.

Reproducibility Statement

Appendices A–I specify the data roles, estimator, intervention protocol, statistical units, and artifact details. Tables are generated from the recorded experimental results and checked for consistency with the protocol described in the appendix.

References

Experimental protocol and details

This appendix specifies the experimental protocol used for all reported results, including data roles, model configurations, repetitions, statistical aggregation, baseline adaptations, and cost accounting.

Data roles and workflow nodes

The probing set supplies examples for constructing prompt perturbations, measuring their effects, and proposing subsequent prompt revisions. The optimization set scores candidate revisions and selects the candidate to consider for acceptance. The validation set supplies the additional acceptance signal specified in Appendix § 13. The test set evaluates the final intervention and is excluded from agent prioritization and candidate generation. Following the benchmark partitions used by AFlow, the probing, optimization, and validation sets originate from separate portions of each benchmark’s development partition. Because the optimization and validation sets are used adaptively, both are treated as development data. Model-upgrade experiments reuse the priorities from the probing set and evaluate gains on the test set, without using the optimization or validation sets.

WorkflowProbingOptimizationValidationTestNodes
HumanEval454343333
MBPP115113113864
NQ2682662662663
DROP2682662662002
HotpotQA2682662662003
MATH (reduced execution)8080801215
MATH (full-sample cost scenario)1621611611215

Table 4. Sizes of the probing, optimization, validation, and test sets. The optimization and validation sets are capped within their separate thirds for ordinary workflows. MATH uses the reduced execution sizes for the performance experiments; the full-sample row is used only for the cost scenario in Appendix H.

For a development partition of size NN, the ordinary split starts with q=⌊N/3⌋q = \lfloor N/3\rfloor. The probing set receives q+(N−3q)q + (N - 3q) examples; the optimization and validation sets occupy the second and third blocks of qq, respectively. Unused examples above either cap are not reassigned to the other block. Partition sampling uses seed 42; this is distinct from whether an LLM request specifies an inference seed. The MATH reduction uses a fixed 80-example subset of the probing set. The cost scenario in Appendix § 18 instead uses all 162/161/161 probing/optimization/validation examples, respectively, and all 121 test examples.

WorkflowIntervenable nodes
HumanEvalCustomCodeGenerate, ScEnsemble, Test
MBPPCodeGenerate, ScEnsemble, Test, FixCode
NQAnswerGenerate, ScEnsemble, FormatAnswer
DROPSolve, Format
HotpotQAAnswerGenerate, ScEnsemble, FormatAnswer
MATHProgrammer, RefineAnswer, DetailedSolution, GenerateSolution, ScEnsemble

Table 5. Node inventory for the six task-specific AFlow-derived workflows. A named node is the unit of intervention and can execute repeatedly in a trace.

HumanEval and MBPP judge code by the workflow’s execution/testing protocol [4, 1]. Our NQ adaptation targets short factual answers [12]; HotpotQA involves multi-hop questions (Yang et al., 2018); DROP requires discrete reasoning over passages [6]; MATH assesses competition-style mathematical solutions [8]. Each workflow uses the benchmark subset and workflow-specific scoring implementation described in this appendix. Exact example IDs, normalizers, the execution harness, and prompt snapshots form part of the complete replication record.

Models, contexts, and repetitions

The scoring encoder is Qwen3-Embedding-8B with 512 output dimensions (Zhang et al., 2025c). The ridge coefficient in Equation (3) is fixed to λ=1.0\lambda= 1.0 for every workflow and run. The local execution model is Qwen3-8B, with thinking disabled in the intended local request path. The ordinary configuration uses an 8,192-token context, an input budget of 6,144, and an output limit of 2,048. MATH uses a 16,384-token context with input and output budgets of 8,192 each. These are limits rather than measured response lengths. Only nodes designed to sample multiple candidate answers use a nonzero execution temperature (0.3 in the prompt-optimization configuration); other execution nodes use 0. Prompt rewriting uses DeepSeek-V3.2 at 0.7. Generation and workflow evaluation are different model roles.

Each prioritization algorithm is run independently three times on every workflow. Prompt-optimization and model-upgrade interventions are each run independently five times for every agent and dataset; the per-agent gains use the mean and standard error across these five runs. Method-level selected-gain and ranking summaries are aggregated over the three prioritization runs. The five model-upgrade target identities are Qwen3-32B, Qwen3-235B-A22B-Instruct-2507, Qwen3.7-Plus, DeepSeek-V3.2, and GPT-5 nano. Qwen3.7-Plus denotes the service alias recorded during the experiments, with provider and version metadata retained for reproducibility. The two additional targets use the OpenRouter identifiers deepseek/deepseek-v3.2 and openai/gpt-5-nano, respectively, with five test executions per node on each workflow. DeepSeek upgrades disable reasoning and use the workflow’s node-specific temperatures. GPT-5 nano uses low reasoning effort and a 16,384-token output cap, including reasoning tokens; its requests omit temperature, top-pp, and seed.

The ten-slot perturbation specification

Table 6 describes the intended mechanism of each formal slot. Generated prompts are additionally assessed through prompt diffs and structural guards because a revision may combine multiple semantic changes. The numerical potential scores used in this paper are GG-norm, II-abs, and MeanAbs; the mechanism names identify intervention types.

MechanismIntended revision
Downstream interfaceClarify what the next operator needs and how this operator must provide it, without changing the workflow’s interface.
Decomposition controlMake the allocation or ordering of reasoning steps explicit, keeping the original task and output requirements.
Ambiguity resolutionResolve an underspecified term, priority, or instruction that could admit incompatible interpretations.
Semantic precisionSharpen the meaning of an existing instruction rather than merely adding emphasis.
VerificationAdd or refine a task-relevant internal check while preserving the required externally visible answer.
Edge casesClarify boundary conditions or exceptional cases in a task-general way, not by copying development answers.
Adaptive counterfactual repairUse a prior’s changed outcomes on the probing set to identify and address a plausible repair opportunity.
Adaptive regression repairProtect original behavior damaged by an otherwise useful prior, using development evidence.
Adaptive score-conditionedRevise a prior in light of its measured response and the development evidence available for that node.
Sectionwise rephraseRephrase editable logical sections separately, keeping protected fragments and template placeholders intact.

Table 6. Formal mechanisms, grouped by construction family. Auxiliary response measurements support the adaptive construction process.

Within adaptive construction, up to 36 auxiliary candidates are generated from 12 initial mechanisms, three slots per mechanism. A single development evaluation estimates each candidate’s loss change on a shared subset of the probing set. The subset rule uses approximately a quarter of the probing set, at least 40 examples where available, combining low-scoring and random examples without overlap. MATH’s restarted adaptive construction instead uses 32 examples. These internal measurements are performed once per candidate, not three times; formal response estimation is a separate repeated step.

Adaptive construction considers up to the five highest-ranked priors with nonnegative point estimates. A generated adaptive prompt must differ from its selected prior; repeated duplication advances to the next eligible prior. If no distinct candidate is produced, the slot is recorded as redundant. Ordinary mechanisms, sectionwise rephrasing, and adaptive candidates enter the formal response pool regardless of the sign of their measured effect, and no test-set screening is used. The resulting pool contains up to ten distinct prompts per node.

Structural checks preserve placeholders and protected content, require a changed English prompt with parseable generated fields, and reject unusable responses. Formal-pool generation and downstream optimizer validation are different operations with different length policies; the optimizer policy is specified below. Missing or failed measurements are recorded as unavailable rather than assigned an observed effect.

Common prompt-optimization intervention

To evaluate all selectors with a common downstream intervention, we use a shared optimizer inspired by textual-feedback search. The procedure is as follows.

  1. Hold the original node prompt and its agent-prioritization evidence fixed. Rank eligible directions by absolute mean effect on the probing set, using lower uncertainty to break ties. The optimizer uses ∣Δ∣≥0.005|\Delta| \ge0.005 as its eligibility threshold. The evidence pool remains unchanged during optimization, and each direction is considered at most once.

  1. For the next direction, provide the original prompt, current accepted prompt, measured perturbation, a concise LLM-generated description of their difference, and up to three direction-consistent reversal examples from the probing set. Positive evidence uses improved examples; negative evidence uses degraded examples. When none are available, the request omits examples. Expected answers refer to final task outcomes.

  1. Ask DeepSeek-V3.2 for four complete local revisions. All four receive the same evidence, with different implementations of the relevant change. Structural validation checks placeholders and protected fragments, rejects the unchanged current prompt, and applies the recorded length interval from 0.2 times the original token length to max⁡(512,3×original token length)\max(512, 3 \times\text{original token length}). Generation is retried up to three times to obtain four valid candidates; if this is unsuccessful, the current state is retained and the procedure advances to the next direction.

  1. Evaluate each candidate on the optimization set with three repeat-specific evaluations. Select the lowest mean loss. Only that candidate can proceed to validation, where the rule below determines acceptance.

  1. On acceptance, update the current state and its optimization- and validation-set reference losses. On rejection, retain the previous state. Stop after six accepted updates or exhaustion of eligible directions. Rejected directions do not count toward the six-update limit. MATH’s reduced record uses three candidates and at most five attempted directions instead.

  1. Hold the final accepted prompt fixed for test-set evaluation. If it equals the original prompt, use the same per-repeat baseline losses, yielding zero gain by construction.

Acceptance rule

Let LoptcurL_{\mathrm{opt}}^{\mathrm{cur}} be the mean loss on the optimization set of the current accepted state and Lopt∗L_{\mathrm{opt}}^{*} that of the beam winner. For the validation set, let LvalorigL_{\mathrm{val}}^{\mathrm{orig}}, LvalprevL_{\mathrm{val}}^{\mathrm{prev}}, and Lval∗L_{\mathrm{val}}^{*} be the mean losses of the original prompt, previous accepted state, and beam winner, respectively. Define the optimization gain oo and validation gains v0v_0, vprevv_{\mathrm{prev}}, and vv by

o=Loptcur−Lopt∗,(5)o = L_{\mathrm{opt}}^{\mathrm{cur}} - L_{\mathrm{opt}}^{*}, \tag*{(5)}
v0=Lvalorig−Lval∗,vprev=Lvalprev−Lval∗,(6)v_0 = L_{\mathrm{val}}^{\mathrm{orig}} - L_{\mathrm{val}}^{*}, \qquad v_{\mathrm{prev}} = L_{\mathrm{val}}^{\mathrm{prev}} - L_{\mathrm{val}}^{*}, \tag*{(6)}
v={v0,before the first accepted update,min⁡(v0,vprev),otherwise.(7)v = \begin{cases} v_0, & \text{before the first accepted update},\\ \min(v_0,v_{\mathrm{prev}}), & \text{otherwise}. \end{cases} \tag*{(7)}

The validation set is evaluated only when o>−0.005o > -0.005 (up to numerical tolerance). The recorded acceptance rule is

accept⁡(o,v)={true,o>0∧[v≥0∨o−max⁡(0,−v)>0.005],true,−0.005<o≤0∧v>0∧(o+v)/2>0.0025,false,otherwise.(8)\operatorname{accept}(o,v) = \begin{cases} \text{true}, & o > 0 \land[v \ge0 \lor o-\max(0,-v)>0.005],\\ \text{true}, & -0.005 < o \le0 \land v > 0 \land(o+v)/2>0.0025,\\ \text{false}, & \text{otherwise}. \end{cases} \tag*{(8)}

The numerical implementation uses an epsilon of 10−1210^{-12} at comparisons. Thresholds are fractions of score, so 0.005 is 0.5 pp. The second branch allows improvement on the validation set to compensate for a small decline on the optimization set. The final exported prompt is the final accepted state, which need not be the state with the best optimization-set score alone. The minimum comparison on the validation set guards against both the frozen original and the previous accepted state; a first candidate is not accepted unconditionally. The rule is used for development-set candidate selection; generalization is evaluated after the final state is fixed for test-set evaluation.

Representative generation instruction

The following condensed template summarizes the generator’s semantics. The replication artifact will provide the exact serialized prompts and API parameters used in the experiments.

You are optimizing one operator’s system prompt in a fixed multi-agent workflow. Lower loss is better. You receive the frozen original prompt, current accepted prompt, measured perturbation prompt, its signed effect on the probing set, and a concise description of the change. Any supplied examples are observations from the probing set; expected answers refer to the final task outcome.

For positive evidence, incorporate the relevant beneficial difference into the current prompt. For negative evidence, do not copy the harmful difference; protect the original behavior it damaged. Add a local safeguard only when the evidence supports a task-general risk. Do not invent an opposite rule merely because the measured direction is negative.

Return four complete, distinct local revisions using the same full evidence. Preserve every required placeholder and protected fragment. Do not summarize or globally rewrite the current prompt. Do not copy example-specific answers. Vary how the supported change is implemented, not which evidence is visible. Output only a JSON list of four prompt strings, without commentary or fences.

Statistical units and recomputation

For prioritization run r∈{1,2,3}r \in\{1,2,3\}, let Ar=arg max⁡iSi(r)A_r = \operatorname*{arg\,max}_i S_i^{(r)} be the set of top-tied nodes. The reported selected gain for that group is gr=100∣Ar∣−1∑i∈ArU^ig_r = 100|A_r|^{-1}\sum_{i\in A_r}\widehat{U}_i. This quantity is the expected gain under uniform tie-breaking. Kendall trt_r compares the complete score vector with the vector of mean intervention gains. For either z=gz=g or z=tz=t, the three-run summary is

zˉ=13∑r=13zr,SEsel(z)=13∑r(zr−zˉ)22.(9)\bar{z} = \frac{1}{3}\sum_{r=1}^{3}z_r, \qquad\mathrm{SE}_{\mathrm{sel}}(z) = \frac{1}{\sqrt{3}}\sqrt{\frac{\sum_r(z_r-\bar{z})^2}{2}}. \tag*{(9)}

This aggregation describes variability across the three independent prioritization runs.

We report Kendall against the vector of mean intervention gains. For each node and intervention, the five repeated gains u1,…,u5u_1,\ldots,u_5 determine the mean intervention gain and its standard error. Sample variance uses divisor T−1T-1 with T=5T=5, and SEtest=s2/T\mathrm{SE}_{\mathrm{test}}=\sqrt{s^2/T}.

The uniform-agent reference first averages nodes within each repeat and then estimates its SE across repeats; individual node SEs cannot be averaged to reconstruct it because covariance matters. In the main model-upgrade table, the Qwen panel averages the selected-gain and Kendall metrics across the three Qwen targets. For the ablations, we instead average all five target models’ per-node gains before computing selected gain and Kendall.

The six-workflow macro statistics weight workflows equally, not individual examples or nodes. A two-node workflow such as DROP has only one pair; perfect Kendall on it is less demanding than a complete five-node ordering. Point estimates are interpreted in light of sample sizes, shared baselines, and ties; standard-error bars summarize variability rather than define a standalone significance test.

All-node gain references and complete uncertainty tables

WorkflowNodePrompt optimization32B3.7-plus235BDeepSeek V3.2GPT-5 nanoMeanGain
HumanEvalCustomCodeGenerate+4.242+15.152+27.273+24.242+18.788+24.849+22.061
HumanEvalScEnsemble+1.212+0.606+0.000+0.000+0.000+0.606+0.242
HumanEvalTest+4.849+4.242+9.091+9.091+9.697+8.485+8.121
MBPPCodeGenerate+3.023+6.744+9.070+7.209+8.605+2.093+6.744
MBPPScEnsemble+0.000−0.233−0.233−0.465+0.233−0.465−0.233
MBPPTest+7.907+7.442+21.168+11.628+12.325+17.210+13.955
MBPPFixCode+0.465+0.930+8.553+3.488+2.325+3.954+3.850
NQAnswerGenerate+2.141+10.634+19.780+21.782+23.085+14.097+17.876
NQScEnsemble−0.111−0.305−0.122−0.984+1.705+2.138+0.486
NQFormatAnswer+2.002+1.298+1.326+2.630+1.881+1.343+1.696
DROPSolve+4.994+6.633+12.822+11.126+8.969+6.503+9.211
DROPFormat−1.038+3.425+7.448+7.346+4.947+2.658+5.165
HotpotQAAnswerGenerate+1.534+5.739+10.463+7.878+5.182+3.033+6.459
HotpotQAScEnsemble−0.547+0.403+0.145+0.533+1.472+1.378+0.786
HotpotQAFormatAnswer+0.000+0.359+2.314+2.248+2.387+0.116+1.485
MATHProgrammer+1.377+1.653+5.234+4.408+2.204+1.378+2.975
MATHRefineAnswer+1.551+1.377+11.771+1.653+4.187+7.493+5.296
MATHDetailedSolution+1.728+0.551+8.264+9.091+3.526+6.832+5.653
MATHGenerateSolution+2.002+4.959+13.751+13.499+12.286+13.113+11.522
MATHScEnsemble−0.755−1.423+3.581+3.581+4.187+0.551+2.096

Table 7. Per-node mean test gains (pp) for prompt optimization and all five model-upgrade targets used as evaluation references, rounded to three decimals. The listed nodes cover all six workflows. MeanGain averages each node’s five model-upgrade means before ranking. Each prompt-optimization and model-upgrade entry averages five intervention runs. No uncertainty is implied by this mean-only table.

The all-node outcomes provide offline reference values for evaluating agent selection. They are measured intervention gains and are excluded from all selector inputs.

Table 8: Expanded view of the IF-MAP uncertainty in Table 2. Every ±\pm is SEsel\mathrm{SE}_{\mathrm{sel}} across the three prioritization runs against the per-node mean gains computed from five intervention runs. It is not SEtest\mathrm{SE}_{\mathrm{test}}. Zero SEsel\mathrm{SE}_{\mathrm{sel}} can result from identical selections despite nonzero test execution variability. The table covers all five upgrade targets. Target aliases match Table 2.

WorkflowTargetGG-norm gain (pp)GG-norm τb\tau_bWorkflowTargetGG-norm gain (pp)GG-norm τb\tau_b
HumanEval32B+11.515 ±\pm3.6360.778 ±\pm0.222DROP32B+6.633 ±\pm0.0001.000 ±\pm0.000
3.7-plus+21.212 ±\pm6.0610.778 ±\pm0.2223.7-plus+12.822 ±\pm0.0001.000 ±\pm0.000
235B+19.192 ±\pm5.0510.778 ±\pm0.222235B+11.126 ±\pm0.0001.000 ±\pm0.000
DeepSeek-V3.2+15.758 ±\pm3.0300.778 ±\pm0.222DeepSeek-V3.2+8.969 ±\pm0.0001.000 ±\pm0.000
GPT-5 nano+19.394 ±\pm5.4550.778 ±\pm0.222GPT-5 nano+6.503 ±\pm0.0001.000 ±\pm0.000
MBPP32B+7.442 ±\pm0.0000.889 ±\pm0.111HotpotQA32B+5.739 ±\pm0.0000.778 ±\pm0.222
3.7-plus+21.168 ±\pm0.0000.889 ±\pm0.1113.7-plus+10.463 ±\pm0.0000.556 ±\pm0.222
235B+11.628 ±\pm0.0000.889 ±\pm0.111235B+7.878 ±\pm0.0000.556 ±\pm0.222
DeepSeek-V3.2+12.325 ±\pm0.0000.889 ±\pm0.111DeepSeek-V3.2+5.182 ±\pm0.0000.556 ±\pm0.222
GPT-5 nano+17.210 ±\pm0.0000.556 ±\pm0.111GPT-5 nano+3.033 ±\pm0.0000.778 ±\pm0.222
NQ32B+10.634 ±\pm0.0000.778 ±\pm0.222MATH32B+3.765 ±\pm1.1940.600 ±\pm0.115
3.7-plus+19.780 ±\pm0.0000.778 ±\pm0.2223.7-plus+13.091 ±\pm0.6600.733 ±\pm0.176
235B+21.782 ±\pm0.0000.778 ±\pm0.222235B+9.550 ±\pm3.9490.400 ±\pm0.115
DeepSeek-V3.2+23.085 ±\pm0.0000.778 ±\pm0.222DeepSeek-V3.2+9.587 ±\pm2.7000.246 ±\pm0.186
GPT-5 nano+14.097 ±\pm0.0000.556 ±\pm0.222GPT-5 nano+11.240 ±\pm1.8730.733 ±\pm0.176

Table 8.

Table 9: Agent rankings by mean model-upgrade test gain for HumanEval, MBPP, NQ. Each row ranks nodes from highest to lowest gain for one target model. Parentheses give mean gains in percentage points; = denotes a tie. Gains use the references in Table 7; rankings are computed before display rounding.

WorkflowUpgrade targetAgent ranking (mean gain, pp)
HumanEvalQwen3-32BCustomCodeGenerate (+15.152) > Test (+4.242) > ScEnsemble (+0.606)
Qwen3-235B-A22BCustomCodeGenerate (+24.242) > Test (+9.091) > ScEnsemble (+0.000)
Qwen3.7-PlusCustomCodeGenerate (+27.273) > Test (+9.091) > ScEnsemble (+0.000)
DeepSeek-V3.2CustomCodeGenerate (+18.788) > Test (+9.697) > ScEnsemble (+0.000)
GPT-5 nanoCustomCodeGenerate (+24.849) > Test (+8.485) > ScEnsemble (+0.606)
MBPPQwen3-32BTest (+7.442) > CodeGenerate (+6.744) > FixCode (+0.930) > ScEnsemble (-0.233)
Qwen3-235B-A22BTest (+11.628) > CodeGenerate (+7.209) > FixCode (+4.488) > ScEnsemble (-0.465)
Qwen3.7-PlusTest (+21.168) > CodeGenerate (+9.070) > FixCode (+8.553) > ScEnsemble (-0.233)
DeepSeek-V3.2Test (+12.325) > CodeGenerate (+8.605) > FixCode (+2.325) > ScEnsemble (+0.233)
GPT-5 nanoTest (+17.210) > FixCode (+3.954) > CodeGenerate (+2.093) > ScEnsemble (-0.465)
NQQwen3-32BAnswerGenerate (+10.634) > FormatAnswer (+1.298) > ScEnsemble (-0.305)
Qwen3-235B-A22BAnswerGenerate (+21.782) > FormatAnswer (+2.630) > ScEnsemble (-0.984)
Qwen3.7-PlusAnswerGenerate (+19.780) > FormatAnswer (+1.326) > ScEnsemble (-0.122)
DeepSeek-V3.2AnswerGenerate (+23.085) > FormatAnswer (+1.881) > ScEnsemble (+1.705)
GPT-5 nanoAnswerGenerate (+14.097) > ScEnsemble (+2.138) > FormatAnswer (+1.343)

Table 9.

WorkflowUpgrade targetAgent ranking (mean gain, pp)
DROPQwen3-32BSolve (+6.633) > Format (+3.425)
Qwen3-235B-A22BSolve (+11.126) > Format (+7.346)
Qwen3.7-PlusSolve (+12.822) > Format (+7.448)
DeepSeek-V3.2Solve (+8.969) > Format (+4.947)
GPT-5 nanoSolve (+6.503) > Format (+2.658)
HotpotQAQwen3-32BAnswerGenerate (+5.739) > ScEnsemble (+0.403) > FormatAnswer (+0.359)
Qwen3-235B-A22BAnswerGenerate (+7.878) > FormatAnswer (+2.248) > ScEnsemble (+0.533)
Qwen3.7-PlusAnswerGenerate (+10.463) > FormatAnswer (+2.314) > ScEnsemble (+0.145)
DeepSeek-V3.2AnswerGenerate (+5.182) > FormatAnswer (+2.387) > ScEnsemble (+1.472)
GPT-5 nanoAnswerGenerate (+3.033) > ScEnsemble (+1.378) > FormatAnswer (+0.116)
MATHQwen3-32BGenerateSolution (+4.959) > Programmer (+1.653) > RefineAnswer (+1.377) > DetailedSolution (+0.551) > ScEnsemble (-1.423)
Qwen3-235B-A22BGenerateSolution (+13.499) > DetailedSolution (+9.091) > Programmer (+4.408) > ScEnsemble (+3.581) > RefineAnswer (+1.653)
Qwen3.7-PlusGenerateSolution (+13.751) > RefineAnswer (+11.771) > DetailedSolution (+8.264) > Programmer (+5.234) > ScEnsemble (+3.581)
DeepSeek-V3.2GenerateSolution (+12.286) > RefineAnswer (+4.187) = ScEnsemble (+4.187) > DetailedSolution (+3.526) > Programmer (+2.204)
GPT-5 nanoGenerateSolution (+13.113) > RefineAnswer (+7.493) > DetailedSolution (+6.832) > Programmer (+1.378) > ScEnsemble (+0.551)

Table 10. Agent rankings by mean model-upgrade test gain for DROP, HotpotQA, MATH. Each row ranks nodes from highest to lowest gain for one target model. Parentheses give mean gains in percentage points; = denotes a tie. Gains use the references in Table 7; rankings are computed before display rounding.

AlgorithmHumanEval Δ\Delta ↑HumanEval τb\tau_b ↑MBPP Δ\Delta ↑MBPP τb\tau_b ↑NQ Δ\Delta ↑NQ τb\tau_b ↑DROP Δ\Delta ↑DROP τb\tau_b ↑HotpotQA Δ\Delta ↑HotpotQA τb\tau_b ↑MATH Δ\Delta ↑MATH τb\tau_b ↑Macro (6) Δ‾\overline{\Delta} ↑Macro (6) τb‾\overline{\tau_b} ↑
IF-MAP (ours)+4.44 ±0.200.556 ±0.222+7.91 ±0.000.889 ±0.111+2.14 ±0.000.778 ±0.222+4.99 ±0.001.000 ±0.000+1.53 ±0.000.556 ±0.222+1.85 ±0.150.667 ±0.067+3.81 ±0.050.741 ±0.056
Who&When-AAO+3.23 ±1.01-0.222 ±0.401+3.02 ±0.000.222 ±0.111+2.14 ±0.000.333 ±0.000+4.99 ±0.001.000 ±0.000+1.53 ±0.000.333 ±0.000+1.38 ±0.00-0.035 ±0.070+2.72 ±0.170.272 ±0.075
A2P+3.23 ±1.01-0.556 ±0.222+3.02 ±0.000.000 ±0.000+2.14 ±0.000.333 ±0.000+4.99 ±0.001.000 ±0.000+1.53 ±0.000.333 ±0.000+1.38 ±0.00-0.000 ±0.000+2.72 ±0.170.186 ±0.075
Adapted locator+4.55 ±0.000.816 ±0.000+2.04 ±2.640.516 ±0.289-0.11 ±0.00-0.333 ±0.000+2.01 ±0.000.667 ±0.000-0.55 ±0.00-0.778 ±0.222-0.40 ±0.36-0.713 ±0.054+1.96 ±0.46-0.026 ±0.038
AgentRx+3.74 ±0.51-0.161 ±0.342+0.16 ±0.160.297 ±0.000+2.14 ±0.000.333 ±0.000+4.99 ±0.001.000 ±0.000+1.53 ±0.000.333 ±0.000+1.05 ±0.31-0.084 ±0.221+2.27 ±0.100.169 ±0.063
CHIEF+4.44 ±0.200.444 ±0.294+3.80 ±2.180.365 ±0.279+0.75 ±0.220.111 ±0.222+4.99 ±0.001.000 ±0.000+1.53 ±0.000.333 ±0.000+1.08 ±0.180.305 ±0.058+2.98 ±0.470.427 ±0.104
FAMAS+4.65 ±0.200.717 ±0.199+4.65 ±1.630.669 ±0.122+2.14 ±0.000.878 ±0.061+4.99 ±0.001.000 ±0.000+1.53 ±0.000.778 ±0.222+1.85 ±0.150.219 ±0.114+3.30 ±0.210.710 ±0.067
Uniform-agent reference†+3.43 ±0.40—+2.85 ±0.56—+1.34 ±0.36—+1.98 ±0.18—+0.33 ±0.36—+1.18 ±0.28—+1.85 ±0.15—

Table 11. Prompt optimization with standard errors: complete mean±SE version of Table 1. Each dataset has separate columns for selected gain and Kendall τb\tau_b; the final pair gives six-dataset macro means.

Mean above, ±SE below; Δ\Delta is gain in percentage points. Method-row SEs summarize three prioritization runs; per-agent intervention means are computed from five runs. Top ties are uniform tie-averaged gain, and Kendall retains score ties. †: uniform-agent expected gain, shown as a reference average rather than a selector, with SEtest across the five intervention runs instead; Bold/underline: largest/second-largest distinct displayed mean per column within each panel.

AlgorithmHumanEval Δ↑\Delta\uparrowHumanEval τb↑\tau_b \uparrowMBPP Δ↑\Delta\uparrowMBPP τb↑\tau_b \uparrowNQ Δ↑\Delta\uparrowNQ τb↑\tau_b \uparrowDROP Δ↑\Delta\uparrowDROP τb↑\tau_b \uparrowHotpotQA Δ↑\Delta\uparrowHotpotQA τb↑\tau_b \uparrowMATH Δ↑\Delta\uparrowMATH τb↑\tau_b \uparrowMacro (6) Δ↑\Delta\uparrowMacro (6) τb↑\tau_b \uparrow
A. Qwen3-32B
IF-MAP (ours)+11.52±3.64+11.52 \pm3.640.778±0.2220.778 \pm0.222+7.44±0.00+7.44 \pm0.000.889±0.1110.889 \pm0.111+10.63±0.00+10.63 \pm0.000.778±0.2220.778 \pm0.222+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.000.778±0.2220.778 \pm0.222+3.76±1.19+3.76 \pm1.190.600±0.1150.600 \pm0.115+7.62±0.54+7.62 \pm0.540.804±0.0360.804 \pm0.036
Who&When-AAO+10.30±4.85+10.30 \pm4.850.494±0.4170.494 \pm0.417+6.74±0.00+6.74 \pm0.000.222±0.1110.222 \pm0.111+10.63±0.00+10.63 \pm0.000.333±0.0000.333 \pm0.000+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.001.000±0.0001.000 \pm0.000+1.65±0.00+1.65 \pm0.000.176±0.0700.176 \pm0.070+6.95±0.81+6.95 \pm0.810.538±0.0740.538 \pm0.074
A2P+10.30±4.85+10.30 \pm4.850.111±0.2220.111 \pm0.222+6.74±0.00+6.74 \pm0.000.000±0.0000.000 \pm0.000+10.63±0.00+10.63 \pm0.000.333±0.0000.333 \pm0.000+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.001.000±0.0001.000 \pm0.000+1.65±0.00+1.65 \pm0.000.219±0.1670.219 \pm0.167+6.95±0.81+6.95 \pm0.810.444±0.0270.444 \pm0.027
Adapted locator+9.70±0.00+9.70 \pm0.000.816±0.0000.816 \pm0.000+4.88±2.56+4.88 \pm2.560.516±0.2890.516 \pm0.289−0.30±0.00-0.30 \pm0.00−0.333±0.000-0.333 \pm0.000+5.56±1.07+5.56 \pm1.070.333±0.6670.333 \pm0.667+0.40±0.00+0.40 \pm0.00−0.111±0.222-0.111 \pm0.222−0.91±0.51-0.91 \pm0.51−0.102±0.058-0.102 \pm0.058+3.22±0.44+3.22 \pm0.440.187±0.0400.187 \pm0.040
AgentRx+12.73±2.42+12.73 \pm2.420.605±0.3070.605 \pm0.307+0.16±0.39+0.16 \pm0.39−0.411±0.297-0.411 \pm0.297+10.63±0.00+10.63 \pm0.000.333±0.0000.333 \pm0.000+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.001.000±0.0001.000 \pm0.000+1.09±0.56+1.09 \pm0.560.141±0.2170.141 \pm0.217+6.16±0.41+6.16 \pm0.410.445±0.0660.445 \pm0.066
CHIEF+11.52±3.64+11.52 \pm3.640.717±0.1990.717 \pm0.199+5.04±2.06+5.04 \pm2.060.365±0.2790.365 \pm0.279+6.99±3.65+6.99 \pm3.650.111±0.2220.111 \pm0.222+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.001.000±0.0001.000 \pm0.000+2.39±1.32+2.39 \pm1.320.502±0.2630.502 \pm0.263+6.38±0.62+6.38 \pm0.620.616±0.0260.616 \pm0.026
FAMAS+7.88±3.64+7.88 \pm3.640.444±0.2940.444 \pm0.294+6.98±0.23+6.98 \pm0.230.669±0.1220.669 \pm0.122+10.63±0.00+10.63 \pm0.000.878±0.0610.878 \pm0.061+6.63±0.00+6.63 \pm0.001.000±0.0001.000 \pm0.000+5.74±0.00+5.74 \pm0.000.556±0.2220.556 \pm0.222+3.76±1.19+3.76 \pm1.190.579±0.1690.579 \pm0.169+6.94±0.45+6.94 \pm0.450.688±0.0240.688 \pm0.024
Uniform-agent reference†^\dagger+6.67±0.69+6.67 \pm0.69—+3.72±0.12+3.72 \pm0.12—+3.88±0.27+3.88 \pm0.27—+5.03±0.89+5.03 \pm0.89—+2.17±0.21+2.17 \pm0.21—+1.42±1.76+1.42 \pm1.76—+3.81±0.35+3.81 \pm0.35—
B. Qwen3-235B-A22B
IF-MAP (ours)+19.19±5.05+19.19 \pm5.050.778±0.2220.778 \pm0.222+11.63±0.00+11.63 \pm0.000.889±0.1110.889 \pm0.111+21.78±0.00+21.78 \pm0.000.778±0.2220.778 \pm0.222+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.556±0.2220.556 \pm0.222+9.55±3.95+9.55 \pm3.950.400±0.1150.400 \pm0.115+13.53±0.77+13.53 \pm0.770.733±0.0400.733 \pm0.040
Who&When-AAO+16.16±8.08+16.16 \pm8.080.494±0.4170.494 \pm0.417+7.21±0.00+7.21 \pm0.000.222±0.1110.222 \pm0.111+21.78±0.00+21.78 \pm0.000.333±0.0000.333 \pm0.000+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.333±0.0000.333 \pm0.000+4.41±0.00+4.41 \pm0.000.176±0.1410.176 \pm0.141+11.43±1.35+11.43 \pm1.350.426±0.0870.426 \pm0.087
A2P+16.16±8.08+16.16 \pm8.080.111±0.2220.111 \pm0.222+7.21±0.00+7.21 \pm0.000.000±0.0000.000 \pm0.000+21.78±0.00+21.78 \pm0.000.333±0.0000.333 \pm0.000+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.333±0.0000.333 \pm0.000+4.41±0.00+4.41 \pm0.000.290±0.1000.290 \pm0.100+11.43±1.35+11.43 \pm1.350.345±0.0260.345 \pm0.026
Adapted locator+16.67±0.00+16.67 \pm0.000.816±0.0000.816 \pm0.000+7.60±4.03+7.60 \pm4.030.516±0.2890.516 \pm0.289−0.98±0.00-0.98 \pm0.00−0.333±0.000-0.333 \pm0.000+9.87±1.26+9.87 \pm1.260.333±0.6670.333 \pm0.667+0.53±0.00+0.53 \pm0.00−0.778±0.222-0.778 \pm0.222+3.72±0.14+3.72 \pm0.14−0.305±0.058-0.305 \pm0.058+6.23±0.61+6.23 \pm0.610.042±0.0390.042 \pm0.039
AgentRx+20.20±4.04+20.20 \pm4.040.605±0.3070.605 \pm0.307+0.85±1.32+0.85 \pm1.32−0.411±0.297-0.411 \pm0.297+21.78±0.00+21.78 \pm0.000.333±0.0000.333 \pm0.000+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.333±0.0000.333 \pm0.000+3.81±0.60+3.81 \pm0.600.072±0.3740.072 \pm0.374+10.94±0.78+10.94 \pm0.780.322±0.0910.322 \pm0.091
CHIEF+19.19±5.05+19.19 \pm5.050.717±0.1990.717 \pm0.199+7.44±2.35+7.44 \pm2.350.365±0.2790.365 \pm0.279+14.19±7.59+14.19 \pm7.590.111±0.2220.111 \pm0.222+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.333±0.0000.333 \pm0.000+9.00±2.62+9.00 \pm2.620.305±0.1450.305 \pm0.145+11.47±1.09+11.47 \pm1.090.472±0.0370.472 \pm0.037
FAMAS+14.14±5.05+14.14 \pm5.050.444±0.2940.444 \pm0.294+8.68±1.47+8.68 \pm1.470.669±0.1220.669 \pm0.122+21.78±0.00+21.78 \pm0.000.878±0.0610.878 \pm0.061+11.13±0.00+11.13 \pm0.001.000±0.0001.000 \pm0.000+7.88±0.00+7.88 \pm0.000.778±0.2220.778 \pm0.222+9.55±2.47+9.55 \pm2.470.145±0.2470.145 \pm0.247+12.19±0.43+12.19 \pm0.430.652±0.0590.652 \pm0.059
Uniform-agent reference†^\dagger+11.11±0.00+11.11 \pm0.00—+5.47±0.07+5.47 \pm0.07—+7.81±0.22+7.81 \pm0.22—+9.24±0.50+9.24 \pm0.50—+3.55±0.21+3.55 \pm0.21—+6.45±0.66+6.45 \pm0.66—+7.27±0.15+7.27 \pm0.15—
C. Qwen3-7-Plus
IF-MAP (ours)+21.21±6.18+21.21 \pm6.180.778±0.2220.778 \pm0.222+21.17±0.00+21.17 \pm0.000.889±0.1110.889 \pm0.111+19.78±0.00+19.78 \pm0.000.778±0.2220.778 \pm0.222+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.556±0.2220.556 \pm0.222+13.09±0.00+13.09 \pm0.000.733±0.3330.733 \pm0.333+16.42±0.68+16.42 \pm0.680.789±0.0680.789 \pm0.068
Who&When-AAO+18.18±9.09+18.18 \pm9.090.494±0.4170.494 \pm0.417+9.07±0.00+9.07 \pm0.000.222±0.1110.222 \pm0.111+19.78±0.00+19.78 \pm0.000.333±0.0000.333 \pm0.000+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.333±0.0000.333 \pm0.000+5.23±5.00+5.23 \pm5.00−0.246±0.356-0.246 \pm0.356+12.59±0.68+12.59 \pm0.680.356±0.0640.356 \pm0.064
A2P+18.18±9.09+18.18 \pm9.090.111±0.2220.111 \pm0.222+9.07±0.00+9.07 \pm0.000.000±0.0000.000 \pm0.000+19.78±0.00+19.78 \pm0.000.333±0.0000.333 \pm0.000+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.333±0.0000.333 \pm0.000+5.23±5.00+5.23 \pm5.00−0.211±0.161-0.211 \pm0.161+12.59±0.00+12.59 \pm0.000.261±0.0280.261 \pm0.028
Adapted locator+18.18±0.00+18.18 \pm0.000.816±0.0000.816 \pm0.000+14.03±7.13+14.03 \pm7.130.516±0.2890.516 \pm0.289−0.12±0.00-0.12 \pm0.00−0.333±0.000-0.333 \pm0.000+11.03±1.79+11.03 \pm1.790.333±0.6670.333 \pm0.667+0.14±0.00+0.14 \pm0.00−0.778±0.222-0.778 \pm0.222+3.86±0.28+3.86 \pm0.28−0.509±0.058-0.509 \pm0.058+7.85±1.10+7.85 \pm1.100.008±0.0390.008 \pm0.039
AgentRx+22.73±4.55+22.73 \pm4.550.605±0.3070.605 \pm0.307+2.70±2.93+2.70 \pm2.93−0.411±0.297-0.411 \pm0.297+19.78±0.00+19.78 \pm0.000.333±0.0000.333 \pm0.000+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.333±0.0000.333 \pm0.000+6.05±0.81+6.05 \pm0.81−0.159±0.138-0.159 \pm0.138+12.42±1.11+12.42 \pm1.110.284±0.0600.284 \pm0.060
CHIEF+21.21±6.06+21.21 \pm6.060.717±0.1990.717 \pm0.199+12.93±4.12+12.93 \pm4.120.365±0.2790.365 \pm0.279+13.15±6.63+13.15 \pm6.630.111±0.2220.111 \pm0.222+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.333±0.0000.333 \pm0.000+9.08±2.49+9.08 \pm2.490.235±0.1850.235 \pm0.185+13.28±0.72+13.28 \pm0.720.460±0.0150.460 \pm0.015
FAMAS+15.15±6.06+15.15 \pm6.060.444±0.2940.444 \pm0.294+13.10±4.03+13.10 \pm4.030.669±0.1220.669 \pm0.122+19.78±0.00+19.78 \pm0.000.878±0.0610.878 \pm0.061+12.82±0.00+12.82 \pm0.001.000±0.0001.000 \pm0.000+10.46±0.00+10.46 \pm0.000.778±0.2220.778 \pm0.222+13.09±0.66+13.09 \pm0.660.364±0.1650.364 \pm0.165+14.07±0.67+14.07 \pm0.670.689±0.1130.689 \pm0.113
Uniform-agent reference†^\dagger+12.12±0.00+12.12 \pm0.00—+9.64±0.20+9.64 \pm0.20—+6.99±0.23+6.99 \pm0.23—+10.13±0.19+10.13 \pm0.19—+4.31±0.13+4.31 \pm0.13—+8.52±0.50+8.52 \pm0.50—+8.62±0.11+8.62 \pm0.11—

Table 12. Model upgrades with standard errors: complete mean±\pmSE version of Table 2. Each panel uses one target model and its own uniform-agent reference. Mean above, ±\pmSE below. Method-row SEs summarize three prioritization runs; uniform-agent reference rows use SEtest_{\mathrm{test}} across five intervention runs and are reference averages rather than selectors. Other notation and formatting conventions follow Appendix Table 11.

Table 13: Model upgrades with standard errors: complete mean±SE version of Table 2. Each panel uses one target model and its own uniform-agent reference.

AlgorithmHumanEval Δ\Delta ↑HumanEval τb\tau_b ↑MBPP Δ\Delta ↑MBPP τb\tau_b ↑NQ Δ\Delta ↑NQ τb\tau_b ↑DROP Δ\Delta ↑DROP τb\tau_b ↑HotpotQA Δ\Delta ↑HotpotQA τb\tau_b ↑MATH Δ\Delta ↑MATH τb\tau_b ↑Macro (6) Δ\Delta ↑Macro (6) τb\tau_b ↑
D. DeepSeek-V3.2
IF-MAP (ours)+15.76 ±3.030.778 ±0.222+12.33 ±0.000.889 ±0.111+23.08 ±0.000.778 ±0.222+8.97 ±0.001.000 ±0.000+5.18 ±0.000.556 ±0.222+9.59 ±2.700.246 ±0.186+12.48 ±0.480.708 ±0.069
Who&When-AAO+12.53 ±6.260.494 ±0.417+8.60 ±0.000.222 ±0.111+23.08 ±0.000.333 ±0.000+8.97 ±0.001.000 ±0.000+5.18 ±0.000.333 ±0.000+2.20 ±0.00-0.704 ±0.098+10.09 ±1.040.280 ±0.081
A2P+12.53 ±6.260.111 ±0.222+8.60 ±0.000.000 ±0.000+23.08 ±0.000.333 ±0.000+8.97 ±0.001.000 ±0.000+5.18 ±0.000.333 ±0.000+2.20 ±0.00-0.639 ±0.127+10.09 ±1.040.190 ±0.028
Adapted locator+14.24 ±0.000.816 ±0.000+8.29 ±4.030.516 ±0.289+1.70 ±0.00-0.333 ±0.000+7.63 ±1.340.333 ±0.667+1.47 ±0.00-0.778 ±0.222+3.86 ±0.33-0.074 ±0.096+6.20 ±0.550.080 ±0.028
AgentRx+15.66 ±3.130.605 ±0.307+0.93 ±0.70-0.411 ±0.297+23.08 ±0.000.333 ±0.000+8.97 ±0.001.000 ±0.000+5.18 ±0.000.333 ±0.000+2.87 ±0.66-0.201 ±0.224+9.45 ±0.640.277 ±0.086
CHIEF+15.76 ±3.030.717 ±0.199+7.75 ±2.920.365 ±0.279+15.96 ±7.130.111 ±0.222+8.97 ±0.001.000 ±0.000+5.18 ±0.000.333 ±0.000+6.01 ±3.16-0.289 ±0.198+9.94 ±0.920.373 ±0.014
FAMAS+12.73 ±3.030.444 ±0.294+9.84 ±1.240.669 ±0.122+23.08 ±0.000.878 ±0.061+8.97 ±0.001.000 ±0.000+5.18 ±0.000.778 ±0.222+9.59 ±2.700.192 ±0.103+11.57 ±0.260.660 ±0.090
Uniform-agent reference1+9.49 ±0.49—+5.87 ±0.29—+8.89 ±0.18—+6.96 ±0.15—+3.01 ±0.19—+5.28 ±0.38—+6.58 ±0.18—
E. GPT-5 nano
IF-MAP (ours)+19.39 ±5.450.778 ±0.222+17.21 ±0.000.556 ±0.111+14.10 ±0.000.556 ±0.222+6.50 ±0.001.000 ±0.000+3.03 ±0.000.778 ±0.222+11.24 ±1.870.733 ±0.176+11.91 ±0.800.733 ±0.106
Who&When-AAO+16.77 ±8.080.494 ±0.417+2.09 ±0.00-0.111 ±0.111+14.10 ±0.001.000 ±0.000+6.50 ±0.001.000 ±0.000+3.03 ±0.001.000 ±0.000+1.38 ±0.00-0.246 ±0.070+7.31 ±1.350.523 ±0.074
A2P+16.77 ±8.080.111 ±0.222+2.09 ±0.00-0.333 ±0.000+14.10 ±0.001.000 ±0.000+6.50 ±0.001.000 ±0.000+3.03 ±0.001.000 ±0.000+1.38 ±0.00-0.211 ±0.161+7.31 ±1.350.428 ±0.028
Adapted locator+16.67 ±0.000.816 ±0.000+11.32 ±5.890.415 ±0.381+2.14 ±0.000.333 ±0.000+5.22 ±1.280.333 ±0.667+1.38 ±0.00-0.111 ±0.222+0.69 ±0.14-0.509 ±0.058+6.24 ±0.910.213 ±0.077
AgentRx+20.81 ±4.040.605 ±0.307+1.01 ±1.47-0.289 ±0.418+14.10 ±0.001.000 ±0.000+6.50 ±0.001.000 ±0.000+3.03 ±0.001.000 ±0.000+2.26 ±0.88-0.159 ±0.138+9.75 ±0.870.526 ±0.078
CHIEF+19.39 ±5.450.717 ±0.199+7.75 ±4.760.233 ±0.217+10.11 ±3.990.778 ±0.222+6.50 ±0.001.000 ±0.000+3.03 ±0.001.000 ±0.000+3.03 ±3.390.185 ±0.185+9.32 ±0.260.660 ±0.026
FAMAS+13.94 ±5.450.444 ±0.294+7.13 ±5.040.304 ±0.122+14.10 ±0.000.655 ±0.061+6.50 ±0.001.000 ±0.000+3.03 ±0.000.556 ±0.222+11.24 ±1.870.364 ±0.165+9.32 ±1.440.554 ±0.059
Uniform-agent reference1+11.31 ±0.45—+5.70 ±0.55—+5.86 ±0.28—+4.58 ±0.36—+1.51 ±0.33—+5.87 ±0.66—+5.81 ±0.19—

Table 13. Mean above, ±SE below. Method-row SEs summarize three prioritization runs; uniform-agent reference rows use SEtest_{\mathrm{test}} across five intervention runs and are reference averages rather than selectors. Other notation and formatting conventions follow Appendix Table 11.

External selectors and adaptations

The six external selectors use the same frozen DEV-A trajectories, node inventory, and downstream gain matrices. Diagnostic judgments use DeepSeek-V3.2, while task execution uses the base workflow model. Each selector is run independently three times. Valid task-level attributions are aggregated over failed development trajectories to form a workflow-level node ranking; unparseable outputs and explicit abstentions contribute no vote. The resulting ranking is used unchanged for both prompt optimization and model upgrades.

Who&When-AAO. We use the paper’s All-at-Once prompt, which reads the complete failed trajectory in one request and returns an agent, an error step, and a reason. A valid agent–step attribution contributes one vote to that agent. Votes are summed over failed trajectories to obtain the node ranking.

A2P. One diagnostic request performs the paper’s three reasoning stages: abduction of the failure cause, a minimal corrective action, and prediction of the resulting continuation. The final agent–step attribution contributes one vote, and the workflow-level ranking is obtained by aggregating these votes.

Adapted locator. We first apply the task critic adapted from the paper’s critic template to the final workflow output and its recorded evaluation evidence. The locator then uses this feedback together with agent roles and the complete trajectory to return a set of weak agents. Each trajectory contributes one vote divided uniformly over that set, and the accumulated shares determine the ranking. We evaluate this localization component independently of the paper’s subsequent workflow-optimization stage.

AgentRx. The recorded trajectory is converted to AgentRx’s canonical intermediate representation. Its static and dynamic invariant generators produce checks, the generated Python and natural-language checks are evaluated, and the native judge assigns a failure category and responsible step from the resulting violation log. Generated Python checks run in isolated containers. A mapped responsible step contributes one vote to its owning agent; intermediate violation counts are not used as node scores.

CHIEF. The implementation follows CHIEF’s staged diagnosis: retrieval-augmented task decomposition, OTAR construction, subtask/agent/step dependency graphs, virtual oracle construction, hierarchical backtracking, and the final Local–Planning-Control–Data-Flow–Deviation-Aware attribution. The final supported agent receives one task-level vote. The RAG store and the complete intermediate diagnosis are retained for every trajectory.

FAMAS. For each failed anchor trajectory, the reported configuration combines the anchor with 20 additional replays and retains at most ten native leaf events per trajectory. The implementation abstracts events into agent/action/state triples, clusters semantically equivalent action–state pairs within each agent, and applies the FAMAS frequency, coverage, and success/failure spectrum score with decay λ=0.9\lambda= 0.9. The owner of the unique highest-scoring anchor triple receives one vote; a top-score tie produces an abstention.

Why coalition/removal baselines are not included. HiveMind assigns node credit from coalition values on a workflow DAG using a Shapley calculation (Xia et al., 2026). Agents that Matter likewise formalizes agent credit through explicit removal protocols, alongside a separate model-replacement analysis [13]. In the five chain-structured workflows used here, the current executable interface admits only the complete source-to-sink coalition: removing an intermediate node leaves a downstream node without its required input. Under this coalition set, every node receives the same value V(N)/∣N∣V(N)/|N|, so the selected node is determined only by tie breaking. MATH admits additional graph-valid coalitions, but its composite operators do not define what a downstream node should receive when one of its required parents is absent. Filling those inputs with null values or replaying outputs from the complete workflow would define a different intervention rather than execute the coalition being evaluated. We therefore do not include the coalitional removal variants of these methods in the matched selector comparison, because the six workflows do not provide a common semantics-preserving removal operator.

Tables 1 and 2 report the comparison under the shared aggregation and intervention protocol above.

Scoring and perturbation-budget ablations

Using the signed probe effect Δim=L‾0−L‾i(m)\Delta_{im} = \overline{L}_0 - \overline{L}^{(m)}_i, the two magnitude-only scoring baselines are

Siabs=max⁡m∣Δim∣,Simean=1Mi∑m∣Δim∣(10)S_i^{\mathrm{abs}} = \max_m \lvert\Delta_{im} \rvert,\qquad S_i^{\mathrm{mean}} = \frac{1}{M_i} \sum_m \lvert\Delta_{im} \rvert \tag*{(10)}

These scores ignore whether a perturbation helps or harms and do not use the embedding direction or displacement size.

Table 3 reports completed variants with three, five, and up to ten formal probes per node. All variants use the same datasets, execution models, downstream interventions, and evaluation rules. The nominal probe budget does not include auxiliary evaluations used during adaptive construction, which are retained in the reduced-probe variants.

Tables 14 and 15 report the corresponding results for each workflow. Gains are in percentage points; each ±\pm term is the standard error across the three prioritization runs. The model-upgrade columns first average each node’s gain over the five target models. The macro rows use equal dataset weights and reproduce Table 3.

WorkflowScoreGain (pp) ↑\uparrowτb↑\tau_b \uparrowGain (pp) ↑\uparrowτb↑\tau_b \uparrow
HumanEvalGG-norm+4.444 ±\pm0.2020.556 ±\pm0.222+17.414 ±\pm4.6470.778 ±\pm0.222
II-abs+4.849 ±\pm0.0001.000 ±\pm0.000+8.121 ±\pm0.0000.333 ±\pm0.000
MeanAbs+4.849 ±\pm0.0001.000 ±\pm0.000+8.121 ±\pm0.0000.333 ±\pm0.000
MBPPGG-norm+7.907 ±\pm0.0000.889 ±\pm0.111+13.955 ±\pm0.0000.889 ±\pm0.111
II-abs+4.651 ±\pm1.6280.778 ±\pm0.111+9.148 ±\pm2.4040.778 ±\pm0.111
MeanAbs+6.279 ±\pm1.6280.556 ±\pm0.111+11.551 ±\pm2.4040.556 ±\pm0.111
NQGG-norm+2.141 ±\pm0.0000.778 ±\pm0.222+17.876 ±\pm0.0000.778 ±\pm0.222
II-abs+2.141 ±\pm0.0000.778 ±\pm0.222+17.876 ±\pm0.0000.778 ±\pm0.222
MeanAbs+2.095 ±\pm0.0460.778 ±\pm0.222+12.483 ±\pm5.3930.778 ±\pm0.222
DROPGG-norm+4.994 ±\pm0.0001.000 ±\pm0.000+9.211 ±\pm0.0001.000 ±\pm0.000
II-abs+4.994 ±\pm0.0001.000 ±\pm0.000+9.211 ±\pm0.0001.000 ±\pm0.000
MeanAbs+4.994 ±\pm0.0001.000 ±\pm0.000+9.211 ±\pm0.0001.000 ±\pm0.000
HotpotQAGG-norm+1.534 ±\pm0.0000.556 ±\pm0.222+6.459 ±\pm0.0000.556 ±\pm0.222
II-abs+1.534 ±\pm0.0000.556 ±\pm0.222+6.459 ±\pm0.0000.556 ±\pm0.222
MeanAbs+1.534 ±\pm0.0000.778 ±\pm0.222+6.459 ±\pm0.0000.778 ±\pm0.222
MATHGG-norm+1.852 ±\pm0.1500.667 ±\pm0.067+9.447 ±\pm2.0750.667 ±\pm0.067
II-abs+1.485 ±\pm0.2000.399 ±\pm0.204+5.563 ±\pm0.0520.399 ±\pm0.204
MeanAbs+1.702 ±\pm0.1810.533 ±\pm0.176+6.717 ±\pm2.5240.533 ±\pm0.176
MacroGG-norm+3.8120.741+12.3940.778
II-abs+3.2760.752+9.3960.641
MeanAbs+3.5760.774+9.0900.663

Table 14. Per-workflow scoring-rule ablation. Each cell reports the mean ±\pmSEsel_{\mathrm{sel}} over three prioritization runs. Model-upgrade gains first average each node over all five target models.

WorkflowProbesPrompt optimization: Gain (pp) ↑Prompt optimization: τb\tau_b ↑Model upgrades: Gain (pp) ↑Model upgrades: τb\tau_b ↑
HumanEval3+4.849±0.000+4.849 \pm0.0001.000±0.0001.000 \pm0.000+8.121±0.000+8.121 \pm0.0000.333±0.0000.333 \pm0.000
HumanEval5+4.849±0.000+4.849 \pm0.0001.000±0.0001.000 \pm0.000+8.121±0.000+8.121 \pm0.0000.333±0.0000.333 \pm0.000
HumanEvalFull+4.444±0.202+4.444 \pm0.2020.556±0.2220.556 \pm0.222+17.414±4.647+17.414 \pm4.6470.778±0.2220.778 \pm0.222
MBPP3+5.426±2.481+5.426 \pm2.4810.667±0.1920.667 \pm0.192+10.587±3.368+10.587 \pm3.3680.667±0.1920.667 \pm0.192
MBPP5+5.426±2.481+5.426 \pm2.4810.667±0.1920.667 \pm0.192+10.587±3.368+10.587 \pm3.3680.667±0.1920.667 \pm0.192
MBPPFull+7.907±0.000+7.907 \pm0.0000.889±0.1110.889 \pm0.111+13.955±0.000+13.955 \pm0.0000.889±0.1110.889 \pm0.111
NQ3+1.344±0.728+1.344 \pm0.7280.111±0.5880.111 \pm0.588+6.686±5.606+6.686 \pm5.6060.111±0.5880.111 \pm0.588
NQ5+2.095±0.046+2.095 \pm0.0460.333±0.3850.333 \pm0.385+12.483±5.393+12.483 \pm5.3930.333±0.3850.333 \pm0.385
NQFull+2.141±0.000+2.141 \pm0.0000.778±0.2220.778 \pm0.222+17.876±0.000+17.876 \pm0.0000.778±0.2220.778 \pm0.222
DROP3+0.973±2.011+0.973 \pm2.011−0.333±0.667-0.333 \pm0.667+6.514±1.349+6.514 \pm1.349−0.333±0.667-0.333 \pm0.667
DROP5+2.984±2.011+2.984 \pm2.0110.333±0.6670.333 \pm0.667+7.862±1.349+7.862 \pm1.3490.333±0.6670.333 \pm0.667
DROPFull+4.994±0.000+4.994 \pm0.0001.000±0.0001.000 \pm0.000+9.211±0.000+9.211 \pm0.0001.000±0.0001.000 \pm0.000
HotpotQA3+0.511±0.511+0.511 \pm0.511−0.111±0.222-0.111 \pm0.222+3.143±1.658+3.143 \pm1.658−0.111±0.222-0.111 \pm0.222
HotpotQA5+0.511±0.511+0.511 \pm0.511−0.111±0.222-0.111 \pm0.222+3.143±1.658+3.143 \pm1.658−0.111±0.222-0.111 \pm0.222
HotpotQAFull+1.534±0.000+1.534 \pm0.0000.556±0.2220.556 \pm0.222+6.459±0.000+6.459 \pm0.0000.556±0.2220.556 \pm0.222
MATH3+1.610±0.059+1.610 \pm0.0590.400±0.1150.400 \pm0.115+5.415±0.119+5.415 \pm0.1190.400±0.1150.400 \pm0.115
MATH5+1.552±0.101+1.552 \pm0.1010.267±0.1760.267 \pm0.176+4.641±0.840+4.641 \pm0.8400.267±0.1760.267 \pm0.176
MATHFull+1.852±0.150+1.852 \pm0.1500.667±0.0670.667 \pm0.067+9.447±2.075+9.447 \pm2.0750.667±0.0670.667 \pm0.067
Macro3+2.452+2.4520.2890.289+6.744+6.7440.1780.178
Macro5+2.903+2.9030.4150.415+7.806+7.8060.3040.304
MacroFull+3.812+3.8120.7410.741+12.394+12.3940.7780.778

Table 15. Per-workflow perturbation-budget comparison using GG-norm. Each cell reports the mean ±SEsel\pm\mathrm{SE}_{\mathrm{sel}} over three prioritization runs. The full setting uses at most ten formal probes per node.

Cost accounting

All tables in this section report measured execution costs over the six datasets, aggregated from the recorded execution ledgers. Token counts include input and output tokens and are reported in millions (M); fractional request counts can result from averaging measured runs and weighted selections. Each cell shows the absolute cost above and, in parentheses, the percentage relative to IF-MAP in the corresponding column and setting; IF-MAP is therefore 100% by definition.

MethodQwen3-8B requestsQwen tokens (M)DeepSeek-V3.2 requestsDeepSeek tokens (M)
IF-MAP63,088 (100.00%)47.141 (100.00%)662 (100.00%)3.049 (100.00%)
Who&When-AAO35,288 (55.93%)26.672 (56.58%)1,943 (293.50%)18.341 (601.54%)
A2P35,288 (55.93%)26.672 (56.58%)1,938 (292.75%)18.645 (611.51%)
Adapted locator35,288 (55.93%)26.672 (56.58%)3,197 (482.93%)21.138 (693.28%)
AgentRx35,288 (55.93%)26.672 (56.58%)8,506 (1,284.89%)202.576 (6,644.01%)
CHIEF35,288 (55.93%)26.672 (56.58%)10,225 (1,544.56%)142.013 (4,657.69%)
FAMAS72,894 (115.54%)52.709 (111.81%)18,228 (2,753.47%)171.566 (5,626.96%)

Table 16. Cost of one agent-prioritization run over all six datasets.

MethodQwen3-8B requestsQwen tokens (M)DeepSeek-V3.2 (TextGrad) requestsDeepSeek (TextGrad) tokens (M)
IF-MAP203,546.74 (100.00%)352.994 (100.00%)950.00 (100.00%)4.249 (100.00%)
Full-Agent PromptOpt663,341.97 (325.89%)1,366.978 (387.25%)1,662.01 (174.95%)6.559 (154.37%)

Table 17. Prompt-optimization cost over all six datasets. IF-MAP first selects an agent and optimizes only that agent; Full-Agent PromptOpt applies the same custom prompt optimizer to every agent.

TargetMethodQwen3-8B requestsQwen3-8B tokens (M)DeepSeek-V3.2 (selection) requestsDeepSeek-V3.2 (selection) tokens (M)Target model (upgrade) requestsTarget model (upgrade) tokens (M)
Qwen3-32BIF-MAP91,748 (100.00%)151.102 (100.00%)794 (100.00%)4.028 (100.00%)1,557 (100.00%)1.541 (100.00%)
Qwen3-32BFullSwap12,553 (13.68%)15.710 (10.40%)0 (0.00%)0 (0.00%)4,066 (261.14%)4.389 (284.82%)
Qwen3-235B-A22BIF-MAP91,748 (100.00%)151.102 (100.00%)794 (100.00%)4.028 (100.00%)1,534 (100.00%)1.601 (100.00%)
Qwen3-235B-A22BFullSwap12,518 (13.64%)15.730 (10.41%)0 (0.00%)0 (0.00%)4,085 (266.30%)4.481 (279.89%)
Qwen3.7-PlusIF-MAP91,748 (100.00%)151.102 (100.00%)794 (100.00%)4.028 (100.00%)1,524 (100.00%)1.781 (100.00%)
Qwen3.7-PlusFullSwap12,774 (13.92%)16.030 (10.61%)0 (0.00%)0 (0.00%)4,134 (271.26%)4.923 (276.42%)
DeepSeek-V3.2IF-MAP91,748 (100.00%)151.102 (100.00%)794 (100.00%)4.028 (100.00%)1,522 (100.00%)1.939 (100.00%)
DeepSeek-V3.2FullSwap12,871 (14.03%)16.210 (10.73%)0 (0.00%)0 (0.00%)4,601.2 (302.31%)5.331 (274.93%)
GPT-5 nanoIF-MAP91,748 (100.00%)151.102 (100.00%)794 (100.00%)4.028 (100.00%)1,526 (100.00%)3.000 (100.00%)
GPT-5 nanoFullSwap12,646 (13.78%)15.330 (10.15%)0 (0.00%)0 (0.00%)4,825.8 (316.24%)8.330 (277.67%)

Table 18. Model-upgrade cost for one complete run over all six datasets. Each IF-MAP row includes agent selection, one original test-set baseline, and one post-upgrade test-set evaluation. FullSwap upgrades and evaluates every agent and therefore has no DeepSeek-V3.2 selection-stage cost.

Artifact provenance and reproducibility

All reported performance values are produced by the protocol specified in this appendix. The experimental records contain the three prioritization runs, five intervention runs, and the gain matrix used for each table.

The following materials and evaluations support a complete artifact release and broader replication.

  1. Example IDs, generated prompt texts, perturbation omissions, response caches by repeat, and the gain matrix used for each table.

  2. Per-call query, token, latency, and monetary accounting for the prioritization methods and downstream interventions.

  3. Evaluations on independently constructed workflows with different interaction graphs and additional intervention families.

  4. A public artifact at https://github.com/s1412/IF-MAS containing the prompt snapshots, dependencies, evaluation commands, and applicable licenses.

Future topology studies could include code generation with execution feedback, question decomposition with evidence checking, and independent mathematical solution verification. Workflows with distinct interaction graphs would test whether a node-response score remains useful when information routing and correction opportunities change.

References

  1. [1]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021. URL https://arxiv.org/abs/2108.07732.
  2. [2]Shraddha Barke, Arnay Goyal, Alind Khare, Avajot Singh, Suman Nath, and Chetan Bansal. Agen-Rx: Diagnosing AI agent failures from execution trajectories. arXiv preprint arXiv:2602.02475, 2026. URL https://arxiv.org/abs/2602.02475. Version 2 reports acceptance to Findings of EMNLP 2026.
  3. [3]Emanuele Borgonovo and Elmar Plischke. Sensitivity analysis: A review of recent advances. European Journal of Operational Research, 248(3):869–887, 2016. doi: 10.1016/j.ejor.2015.06.032.DOI
  4. [4]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chatzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. URL https://arxiv.org/abs/2107.03374.
  5. [6]Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 2368–2378. Association for Computational Linguistics, 2019. doi: 10.18653/v1/N19-1246. URL https://arxiv.org/abs/1903.00161.
  6. [8]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1, 2021. URL https://arxiv.org/abs/2103.03874.
  7. [9]Arthur E. Hoerl and Robert W. Kennard. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1):55–67, 1970. URL https://www.stat.cmu.edu/technometrics/70–79/VOL-12-01/v1201055.pdf.
  8. [10]M. G. Kendall. The treatment of ties in ranking problems. Biometrika, 33(3):239–251, 1945. doi: 10.1093/biomet/33.3.239. URL https://academic.oup.com/biomet/article-abstract/33/3/239/216180.DOI
  9. [11]Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1885–1894. PMLR, 2017. URL https://arxiv.org/abs/1703.04730.
  10. [12]Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019. doi: 10.1162/tacl_a_00276. URL https://aclanthology.org/Q19-1026/.DOI
  11. [13]Mingyu Lu, Yushan Huang, Chris Lin, and Su-In Lee. Agents that matter: Optimizing multi-agent LLMs via removal-based attribution. arXiv preprint arXiv:2605.27621, 2026. URL https://arxiv.org/abs/2605.27621.
  12. [14]Ming Ma, Jue Zhang, Fangkai Yang, Yu Kang, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. DoVer: Intervention-driven auto debugging for LLM multi-agent systems. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2512.06749.
  13. [15]Jorge Nocedal and Stephen J. Wright. Numerical Optimization. Springer, New York, 2 edition, 2006. doi: 10.1007/978-0-387-40065-5.DOI
  14. [17]Reid Pryzant, Dan Iter, Jerry Li, Yin Lee, Chenguang Zhu, and Michael Zeng. Automatic prompt optimization with “gradient descent” and beam search. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 7957–7968. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.494. URL https://arxiv.org/abs/2305.03495.
  15. [18]Qwen Team. Qwen3-235B-A22B-Instruct-2507 model card. Hugging Face model card, 2025. URL https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507. Accessed 2026-09-13.
  16. [19]Qwen Team. Qwen3.7-Plus: Multimodal agent intelligence, May 2026. URL https://qwen.ai/blog?id=qwen3.7-plus.

Paper details

vlnc:W_8hhbrqwy
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Generative AI assistants · View statement →

Looking for related papers…
Contents