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 and 1 others

The Chinese University of Hong Kong, Shenzhen · Harbin Institute of Technology · Harvard University

Published October 17, 2026 · on the feed October 23, 2026 · ▲ 10 · arXiv 2610.24383

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

The Brief

2:55

A short podcast summary of the paper. Written and voiced by AI.

Transcript

IF-MAP. Influence-Function-Inspired Agent Prioritization in Multi-Agent Systems. By Jie Mao and eight others, from the Chinese University of Hong Kong, Shenzhen, the Harbin Institute of Technology, and one other institution. Published on the seventeenth of October. Its code repository is public and real: about twenty-five source files.

In a multi-agent system built from language models, improving every agent can be prohibitively expensive. With limited resources, the practical question becomes which agent to prioritise to get the biggest gain for the system as a whole. Failure attribution looks like it should answer that, but it answers a different question. Knowing which agent is responsible for failures does not directly tell you how much the system would gain by improving that agent. Blame and potential are not the same quantity.

IF-MAP is a method inspired by influence functions, built to identify the agents with high potential for system-level improvement. Rather than asking who caused a failure, it asks how sensitive the end-to-end result is to each agent, and uses that sensitivity to rank them.

For each agent, IF-MAP applies controlled semantic perturbations to its prompt and measures how the end-to-end loss changes. It fits a regularised local response model to those changes, in a low-dimensional subspace of prompt embeddings, and takes the norm of the estimated response as that agent's priority score. The procedure is black-box. It needs no access to model parameters or gradients, and the priorities it produces can guide whatever improvement effort comes next.

The evaluation covers six multi-agent workflows spanning code generation, question answering and mathematical reasoning, and the same priorities are used for two kinds of improvement: prompt optimization and model upgrades. Optimizing the prompts of the selected agents gives a macro-average gain of three point eight one percentage points, against one point eight five when agents are chosen uniformly.

Upgrading models is where the gap widens. Across five target models, upgrading the selected agents yields macro-average gains ranging from seven point six two up to sixteen point four two percentage points. Uniform selection gives a range from three point eight one up to eight point six two.

Probing has a cost of its own, yet IF-MAP still saves tokens overall. Relative to optimizing every agent, it cuts token use by seventy-four point two percent with Qwen3-8B, and by thirty-five point two percent with DeepSeek-V3.2. Relative to upgrading every agent, it reduces target-model tokens by roughly sixty-four percent, with a reported range from sixty-three point six to sixty-four point nine.

The distinction the paper rests on is between responsibility and leverage. An agent can be implicated in failures without being the one whose improvement would move the system most. Measuring how the whole pipeline responds when each agent is nudged is what lets IF-MAP spend a limited budget where it buys the most end-to-end performance.

The deep dive

6:47

A longer episode, written from the whole paper. Written and voiced by AI.

Transcript

IF-MAP. Influence-Function-Inspired Agent Prioritization in Multi-Agent Systems. By Jie Mao and eight others, from the Chinese University of Hong Kong, Shenzhen, the Harbin Institute of Technology, and one other institution. Published on the seventeenth of October. This is the long version: the whole paper rather than the abstract.

A multi-agent system built from language models splits a task across roles. One agent writes code, another tests it, another merges candidate answers. When the system falls short and there is budget to improve only one agent, which one should it be? Upgrading every agent to a stronger model raises the price of every single run. The natural move is to ask which agent caused the failures. The argument here is that this answers a different question. An agent can contribute to errors often and still offer little room for improvement, while another admits a change that lifts everything downstream. The target, then, is not responsibility. It is the end-to-end gain you would actually get from improving that agent.

The setting is narrow and precise. The workflow is fixed: its roles, connections and assigned models stay put. Each task example gets a system score between zero and one, and the loss is one minus that score. What a prioritizer wants is the expected drop in loss from applying some improvement procedure to one agent alone, with every other agent held fixed. Measuring that directly means running the full improvement on every agent, which is exactly the cost being avoided. The inspiration is influence functions, a classical tool for estimating how perturbing training data changes a learned model's predictions. Only the perturb-and-measure perspective is borrowed: no parameters, gradients or Hessians are touched. Run the workflow, read the loss.

Probing comes first. For each agent, starting from its original prompt, the method builds at most ten perturbed prompts: clarify what the downstream agent needs, resolve an ambiguous instruction, add a verification step, clarify edge cases, and so on, plus adaptive slots that revise earlier candidates using their measured effects. Every variant keeps the agent's role and output interface, and structural checks reject broken or duplicate prompts. Each probe changes only that one agent's prompt, and then the whole workflow runs on the probing set, so the measured loss includes whatever the change sets off downstream.

Scoring comes next. A fixed embedding model, Qwen3-Embedding-8B, maps each prompt to a normalized vector. Each probe then yields two things: the direction in which the prompt moved, as a unit vector, and the change in loss divided by how far it moved, so a loss change per unit of embedding distance. A linear model is fitted to predict that normalized response from the direction. With at most ten probes in a large embedding space, an unrestricted fit would be unreliable, so two restraints apply. The fit is confined to a small basis built from a singular value decomposition of the probe directions themselves, and ridge regularization shrinks large, unstable coefficients. The fitted vector acts as a local slope, and its length is the agent's priority score, called G-norm. That length has a clean reading: for a common step size within the fitted subspace, it is proportional to the largest first-order loss reduction the model predicts. Rank the agents by it, and improve the top one.

There are six workflows, all derived from AFlow: HumanEval and MBPP for code, NQ, HotpotQA and DROP for question answering, and MATH. Qwen3-8B runs the workflows, and DeepSeek-V3.2 rewrites prompts. The same priorities then feed two quite different interventions. Under prompt optimization, improving the agent IF-MAP picks gives a macro-average gain of three point eight one percentage points, against one point eight five for an agent chosen uniformly at random, and above all six failure-attribution baselines. Then, with no re-probing, the selected agent is handed a stronger model instead. Averaged over the three Qwen targets, the gain is twelve point five two points, against six point five seven for a uniform choice. Across all five targets, the gain is between one point eight six and two point zero five times the uniform one.

The comparison that tests the thesis most directly is the scoring ablation. Same probes, same test outcomes, only the rule that turns probes into a score changes. G-norm beats both magnitude-only scores on selected gain, by about three points on model upgrades. The geometry of the prompt changes is doing real work. Probe count matters too: cut the pool to three probes and the model-upgrade gain roughly halves.

There is no limitations section. The conclusion carries one sentence of caveats: realized gains depend on the embedding model, on local linearity, on probe coverage, and on whether the available interventions line up with the fitted loss-reducing direction. The rest sits in the appendix. Uncertainty is the standard error across three prioritization runs, and the authors say it describes variability rather than serving as a significance test. Every workflow is AFlow-derived, and five are simple chains; independently built workflows with different interaction graphs are left as future work. Probing costs more base-model executions than the attribution baselines, though far fewer calls to the diagnostic model. And the probe-budget effect is not monotonic per workflow: on HumanEval, three probes did better than the full pool for prompt optimization.

Blame and leverage are different quantities. Rather than asking a judge model to read failed traces and name a culprit, IF-MAP nudges each agent with a handful of meaningful prompt edits, watches the end-to-end loss, and fits a slope. A steep slope marks an agent where change pays off. The decision also transfers: priorities found by editing prompts picked the right agent to hand a bigger model, and upgrading that one agent instead of all of them cut target-model tokens by sixty-three point six to sixty-four point nine percent. The score says where the loss responds, not yet what edit to make.

Paper Quest · 7 chapters · about 41 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Every quest starts with a wall. Here it is a budget that covers one agent, and a team of many.

You run a system where several language-model agents split a task: one writes answers, one gathers evidence, one combines candidates, one checks the result.

The road ahead

  1. 1 · The problem ~7 min With budget to improve only one agent in a team of language models, knowing who gets blamed most does not tell you where improvement pays off.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Rank each agent by how strongly the system's final loss responds when that agent's prompt is changed, using only black-box runs.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Probe each agent's prompt, measure end-to-end loss, fit a ridge response model in a small subspace, score by its norm, then improve the top agent.
  6. 6 · The experiment ~6 min You’ll guess: Probing every agent costs extra runs. Compared with optimizing every agent's prompt, did IF-MAP end up using more or fewer Qwen3-8B tokens?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.