Research
IF-MAP: Influence-Function-Inspired Agent Prioritization in Multi-Agent Systems
Overview Research area: LLM-based multi-agent systems, specifically the problem of allocating limited improvement effort (prompt revision, model upgrades, fine-tuning) across the agents of a fixed wor

- arXiv
- 2610.24383
- Published
- 2026-10-17
- Authors
- Jie Mao, Pingchen Lu, Zikun Qu, Jiahang Sun, Xiangyi Wang, Zhiwei Shang, Zhiyong Wang, Guojun Xiong, Zhongxiang Dai
AI summary
Overview
Research area: LLM-based multi-agent systems, specifically the problem of allocating limited improvement effort (prompt revision, model upgrades, fine-tuning) across the agents of a fixed workflow.
Technical level: Intermediate. The paper combines a black-box probing procedure with concepts from classical influence functions, prompt embeddings, and ridge regression inside a low-dimensional subspace. Readers comfortable with multi-agent LLM pipelines and basic regression will follow it; the influence-function framing is used only as inspiration, not implemented literally.
Scope: The paper introduces IF-MAP, a black-box method that ranks the agents of a multi-agent system by how strongly the end-to-end task loss responds to controlled semantic perturbations of their prompts, and shows across six workflows that improving the top-ranked agent yields larger gains than choosing an agent uniformly at random.
What This Paper Is About
Improving every agent in an LLM-based multi-agent system is expensive, so developers need to know which single agent to improve first to get the largest system-level payoff. Existing failure-attribution tools can say which agent was responsible for an error, but responsibility does not tell you how much gain is available from improving that agent. The paper proposes IF-MAP, which probes each agent with small, controlled prompt rewrites, measures how the whole system's loss responds, and converts those responses into a priority score used to pick the improvement target.
Key Contributions
- Agent prioritization as an explicit objective. The paper formulates the problem of selecting, under a limited budget, the agent whose improvement maximizes expected end-to-end gain, and defines an evaluation protocol using "selected gain" (the test gain of the chosen agent) plus Kendall's τ_b agreement between the priority ranking and the ranking of realized gains.
- Influence-function-inspired response estimation. IF-MAP perturbs one agent's prompt at a time (at most ten formal perturbations spanning static, adaptive, and structure-preserving changes), measures end-to-end loss changes on a probing set, represents prompt changes as normalized displacements in an embedding space, and fits a ridge-regularized linear response model in a low-dimensional subspace. The norm of the estimated response vector becomes the priority score. The procedure needs no model parameters, gradients, or Hessians.
- A geometric interpretation of the score. For a common local intervention radius r, ranking agents by the response norm is shown (via Cauchy–Schwarz) to be equivalent to ranking by the maximum first-order loss reduction predicted inside the fitted perturbation subspace, with the optimum attained at a specific displacement direction.
- Empirical validation of the same priorities under two different intervention families. The identical rankings are evaluated through prompt optimization and through five model upgrades across six AFlow-derived workflows covering code generation, question answering, and mathematical reasoning, and compared against six adapted failure-attribution or weak-agent localization baselines.
Main Findings
- Prompt optimization gains: With prompt optimization applied only to the selected agent, IF-MAP reaches a macro-average selected gain of 3.81 percentage points (pp), versus 1.85 pp for uniform agent selection — 1.96 pp above that reference and 0.51 pp above FAMAS, the strongest external selector on this measure. IF-MAP's selected gain exceeds the uniform reference on all six workflows, with the largest margins on MBPP (5.06 pp) and DROP (3.01 pp).
- Model-upgrade gains: Across five target models the selected gains range from 7.62 to 16.42 pp, versus 3.81–8.62 pp for uniform selection. Panel macro-averages are 12.52 pp (mean over Qwen3-32B, Qwen3-235B-A22B, Qwen3.7-Plus), 12.48 pp (DeepSeek-V3.2), and 11.91 pp (GPT-5 nano), against uniform references of 6.57, 6.58, and 5.81 pp.
- Relative advantage on upgrades: Selecting with IF-MAP yields 1.86–2.05 times the gain of upgrading a uniformly chosen agent across the five individual targets, and beats the strongest external selector by 1.45, 0.91, and 2.59 pp in the three reported panels.
- Ranking agreement: Mean Kendall τ_b is 0.741 for prompt optimization and 0.708–0.804 across the five model upgrades. Panel means are 0.775 (Qwen upgrades), 0.708 (DeepSeek-V3.2), and 0.733 (GPT-5 nano), each the highest macro-average in its panel.
- Cost of prioritization: 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. Overall it reduces Qwen3-8B and DeepSeek-V3.2 token use by 74.2% and 35.2% relative to optimizing every agent, and reduces target-model tokens by 63.6–64.9% relative to upgrading every agent.
- Cost versus attribution baselines: Semantic probing requires more Qwen3-8B executions than most attribution baselines but uses only 3.6–34.1% of their DeepSeek-V3.2 requests and 1.5–16.6% of their DeepSeek tokens.
- FullSwap comparison: Upgrading every agent (FullSwap) avoids selection overhead but invokes the target model for every agent, using 2.61–3.16 times as many target-model requests and 2.75–2.85 times as many target-model tokens as IF-MAP.
- Scoring-rule ablation: The geometry-aware score (G-norm) reaches 3.812 pp (prompt optimization) and 12.394 pp (model upgrades), exceeding I-abs by 0.536 and 2.998 pp and MeanAbs by 0.236 and 3.304 pp. MeanAbs has slightly higher prompt-ranking agreement (0.774 vs 0.741) despite lower selected gain, showing ranking agreement over all agents does not guarantee the best top pick.
- Probe-budget ablation: Moving from three to five probes raises selected gain from 2.452 to 2.903 pp (prompt) and from 6.744 to 7.806 pp (upgrades), with Kendall τ_b rising by 0.126 in both cases; the full pool of up to ten probes raises gains to 3.812 and 12.394 pp and clearly improves ranking agreement. Per-workflow effects are not monotonic.
Methodology in Plain English
- Fix the system and split the data. Take a fixed multi-agent workflow with n agents. Development data is split into disjoint probing, optimization, and validation subsets, and the test set is held back for final evaluation only.
- Perturb one agent at a time. For each agent, write up to ten alternative versions of its prompt that preserve its role and output interface: some static rewrites, some adaptive, some structure-preserving. A structural check discards unusable or duplicate prompts, so ten is an upper bound rather than a guarantee.
- Measure the whole system, not just the agent. Run the complete workflow on the probing set with the original prompt and with each perturbed prompt, holding all other prompts, models, and the workflow structure fixed. The measured quantity is the change in end-to-end loss, so downstream effects propagate into the measurement.
- Turn text changes into geometry. Embed the original and perturbed prompts with a fixed embedding model (Qwen3-Embedding-8B), take the L2-normalized difference as the change direction, and divide the loss change by the embedding distance so that large and small rewrites are compared on a per-unit basis.
- Fit a small, stable response model. With far fewer probes than embedding dimensions, a full regression would be unreliable. The method builds an orthonormal basis from the probe directions (subspace size max(1, M_i − 1), bounded by available SVD dimensions), projects the directions into that subspace, and applies ridge regression to estimate a response vector in the original embedding space.
- Score by response magnitude. The norm of the estimated response vector is the priority score. Because of the Cauchy–Schwarz argument, a larger norm means a steeper local response and a larger predicted loss-reducing direction at a fixed intervention radius.
- Act only on the top agent. The highest-scoring agent receives the improvement — a revision from a shared textual-feedback prompt optimizer, or a stronger model with its original prompt kept — and the resulting configuration is frozen before test-set evaluation. The same priorities from the probing stage are reused across all five upgrade targets without target-specific re-ranking.
Why This Matters
Impact on research. The paper separates responsibility for failure from potential for improvement, a distinction it cites from intervention-oriented work (DoVer, CICA). It offers a cheap, architecture-agnostic signal that can sit in front of any existing improvement method, and it contributes an evaluation protocol — selected gain plus ranking agreement against realized per-agent gains measured offline — that other prioritization methods can be scored against.
Real-world applications:
- Production agent pipelines where per-execution inference cost limits how many agents can be upgraded; the paper reports target-model token savings of 63.6–64.9% versus upgrading every agent.
- Code-generation assistants built from generate/ensemble/test/fix roles, one of the workflow families evaluated (HumanEval, MBPP).
- Retrieval-augmented question answering over single-hop, multi-hop, and passage-reasoning tasks (NQ, HotpotQA, DROP), where refining a combiner agent can help little or even hurt.
- Mathematical reasoning pipelines (MATH), where a five-node workflow is studied under a reduced 80-example probing budget.
Industry relevance. Teams with fixed evaluation budgets and long agent graphs need a defensible answer to "where do we spend the next engineering sprint?" IF-MAP is a black-box procedure that requires no access to weights or gradients, making it applicable to closed commercial models, and its selection cost is paid on a cheaper base model rather than on expensive target models.
Future Directions
- From continuous direction to discrete edits. The score identifies a loss-reducing direction in embedding space, but the paper notes that realized gains depend on the alignment between available interventions and that fitted direction. It proposes direction-conditioned generation to translate the direction into actual prompt edits.
- Iterative edit-and-measure loops. Rather than a one-shot ranking, repeatedly re-probe and re-rank as agents are improved, turning prioritization into an ongoing development loop.
- Adaptive probing and uncertainty-aware selection. The probe-budget ablation shows a large jump from five to ten probes (2.903 → 3.812 pp for prompt optimization; 7.806 → 12.394 pp for upgrades), suggesting that where probes are spent matters and that uncertainty in the fitted response could inform selection.
- Robustness of the response estimate. The authors flag dependence on the embedding model, local linearity, and probe coverage as open limitations, leaving room for alternative embeddings, nonlinear surrogates, or guarantees under weaker assumptions.
Target Audience
Researchers and engineers working on LLM-based multi-agent systems, agent-workflow optimization, and prompt or model allocation under budget constraints. It is also relevant to practitioners of failure attribution and debugging who want to connect diagnostic signals to measured downstream gains, and to methodologists interested in black-box, perturbation-based sensitivity estimation as an alternative to gradient-based influence functions. Readers seeking a fully theory-backed guarantee should note that the score is a first-order local surrogate whose link to realized gains is established empirically across six workflows and five target models, not proven.
Authors’ 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.