IF-MAP:多智能体系统中受影响函数启发的智能体优先级排序
研究论文 · 2026/10/24
在基于LLM的多智能体系统中,改进每个智能体成本过高,因此需要识别应优先改进的智能体以最大化系统级收益。失败归因虽可提供参考,但智能体对失败的责任并不直接反映改进它所能带来的系统级增益。为此,我们提出IF-MAP,一种受影响函数启发的方法,用于识别具有高系统级改进潜力的智能体。IF-MAP通过受控语义提示扰动测量每个智能体的端到端损失变化,在低维提示嵌入子空间中拟合正则化局部响应模型,并以估计的响应范数作为优先级分数。该黑盒过程无需模型参数或梯度,产生的智能体优先级可指导后续改进工作。我们在涵盖代码生成、问答和数学推理的六个多智能体工作流中评估IF-MAP,使用相同的优先级进行提示优化和模型升级。优化所选智能体的提示实现了3.81个百分点的宏平均增益,而均匀选择智能体仅为1.85。在五个目标模型上,升级所选智能体带来7.62-16.42个百分点的宏平均增益,而均匀选择为3.81-8.62。尽管有探测开销,IF-MAP相对于优化每个智能体,将Qwen3-8B和DeepSeek-V3.2的token使用量分别减少74.2%和35.2%,相对于升级每个智能体,将目标模型token减少63.6-64.9%。这些结果支持使用IF-MAP识别有潜力的智能体,并将改进努力导向更大的端到端性能增益。
该研究提出了一种高效识别多智能体系统中关键智能体的方法,能在有限资源下最大化系统性能提升,实验证明其在不同任务和模型上均显著优于均匀选择,并大幅减少计算开销,对多智能体系统的优化具有重要实用价值。
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.