Skip to main content
QUICK REVIEW

[论文解读] MASPOB: Bandit-Based Prompt Optimization for Multi-Agent Systems with Graph Neural Networks

Zhi Hong, Qian Zhang|arXiv (Cornell University)|Mar 3, 2026
Advanced Graph Neural NetworksComputer Science被引用 0
一句话总结

MASPOB 通过将拓扑感知的 GNN 代理与基于带宽的搜索以及坐标提升相结合,在预算约束下实现多智能体大模型工作流的最优提示,达到最先进的结果。

ABSTRACT

Large Language Models (LLMs) have achieved great success in many real-world applications, especially the one serving as the cognitive backbone of Multi-Agent Systems (MAS) to orchestrate complex workflows in practice. Since many deployment scenarios preclude MAS workflow modifications and its performance is highly sensitive to the input prompts, prompt optimization emerges as a more natural approach to improve its performance. However, real-world prompt optimization for MAS is impeded by three key challenges: (1) the need of sample efficiency due to prohibitive evaluation costs, (2) topology-induced coupling among prompts, and (3) the combinatorial explosion of the search space. To address these challenges, we introduce MASPOB (Multi-Agent System Prompt Optimization via Bandits), a novel sample-efficient framework based on bandits. By leveraging Upper Confidence Bound (UCB) to quantify uncertainty, the bandit framework balances exploration and exploitation, maximizing gains within a strictly limited budget. To handle topology-induced coupling, MASPOB integrates Graph Neural Networks (GNNs) to capture structural priors, learning topology-aware representations of prompt semantics. Furthermore, it employs coordinate ascent to decompose the optimization into univariate sub-problems, reducing search complexity from exponential to linear. Extensive experiments across diverse benchmarks demonstrate that MASPOB achieves state-of-the-art performance, consistently outperforming existing baselines.

研究动机与目标

  • 在工作流拓扑固定且经专家验证的前提下,将提示优化作为提升 MAS 性能的主要杠杆。
  • 开发一个样本高效的优化器,兼顾拓扑耦合与有限评估预算。
  • 提出一个框架,将拓扑感知预测、基于不确定性的探索以及可扩展的提示配置搜索相结合。
  • 在覆盖问答、代码生成、数学等多样基准上证明该方法的有效性。

提出的方法

  • 将每个智能体提示编码为 d 维嵌入,并使用 DAG 的邻接矩阵将 MAS 工作流建模为图。
  • 使用图注意力网络(GAT)代理,通过对MAS图进行拓扑感知的信息传递来预测性能。
  • 将搜索形式化为上下文带宽问题,并应用 LinUCB 在预测高效提示的利用与对不确定提示的探索之间取得平衡。
  • 将提示组合表示为拼接的嵌入,并维护信息矩阵以计算不确定性并构建 UCB 采集函数。
  • 将联合提示优化分解为单变量的坐标提升更新,以降低复杂度从指数级到线性,适用于智能体数量。
  • 迭代地在验证集上评估所选提示组合,更新 GNN 与信息矩阵,并跟踪最佳配置。

实验结果

研究问题

  • RQ1如何在端到端评估代价高昂的情况下实现 MAS 的提示优化的样本效率?
  • RQ2面向拓扑的 MAS 工作流建模是否能提升对协同提示配置的推动?
  • RQ3在固定预算下,带有带宽引导的坐标提升搜索是否能有效导航组合提示空间?
  • RQ4拓扑感知代理与不确定性引导的探索是否可在不同任务与不同 LLM 主干上泛化?

主要发现

  • MASPOB 在六个基准测试中取得最佳结果,平均分为 80.58%。
  • 在相同的 50 次评估验证预算下,MASPOB 相较基线(IO、AFlow、MIPRO)分别提升 12.02%、2.06%、1.71%。
  • 消融实验显示移除 GNN 会使平均性能下降 2.31%,表明拓扑建模带来有意义的增益。
  • MASPOB 能在不同的 LLM 主干(如 Qwen-3-32B)上泛化并带来稳定的改进。
  • 使用 MASPOB 获取函数的坐标提升在接近全局搜索的性能同时显著节省运行时间(在 HotpotQA 上最高快 99.8%)。
  • 在更复杂的 MAS 结构中,MASPOB 仍然是与之对比方法中的最佳者。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。