arXiv:2610.24383cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24383

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

Jie Mao, Pingchen Lu, Zikun Qu, Jiahang Sun, Xiangyi Wang, Zhiwei Shang, Zhiyong Wang, Guojun Xiong, Zhongxiang Dai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 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.

Figure

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.

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 (Ma et al., 2026; 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 (Koh & Liang, 2017). 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

Figure

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.

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.

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.

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.