arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06432cs.MA
收藏

HiveMind: 基于贡献的LLM多智能体系统的在线提示优化

HiveMind: Contribution-Guided Online Prompt Optimization of LLM Multi-Agent Systems

Shenzhen University(深圳大学);Beijing University of Posts and Telecommunications(北京邮电大学);The Chinese University of Hong Kong(香港中文大学)

Yihan Xia, Taotao Wang, Shengli Zhang, Zhangyuhua Weng, Bin Cao, Soung Chang Liew

AI总结:

HiveMind通过基于贡献的在线提示优化,提升LLM多智能体协作效率,利用DAG-Shapley算法显著降低LLM调用成本,同时保持归因准确性。

摘要:

近年来,基于大语言模型(LLM)的多智能体系统在复杂决策场景如金融交易和软件工程中展示了显著的能力。然而,评估每个智能体的有效性以及在线优化表现不佳的智能体仍然是开放性挑战。为了解决这些问题,我们提出了HiveMind,一种自适应框架,旨在通过贡献分析优化LLM多智能体协作。其核心是引入基于贡献的在线提示优化(CG-OPO),该方法能够根据智能体的量化贡献自主优化提示。我们首先提出Shapley值作为接地度量来量化每个智能体的贡献,从而以系统化的方式识别表现不佳的智能体,用于自动提示优化。为克服经典Shapley值的计算复杂性,我们提出了DAG-Shapley,一种新颖且高效的归因算法,利用智能体工作流中固有的有向无环图结构,通过公理化方式修剪非可行的联盟。通过在DAG中层次重用智能体的中间输出,我们的方法进一步减少了冗余计算,并实现了显著的成本节约,而不会牺牲Shapley值的理论保证。在多智能体股票交易场景中评估,HiveMind相比静态基线表现更优。值得注意的是,DAG-Shapley将LLM调用减少了超过80%,同时保持归因准确性与完整Shapley值相当,建立了高效归因的新标准,实现了多智能体协作的可扩展、现实世界优化。

英文摘要:

Recent advances in LLM-based multi-agent systems have demonstrated remarkable capabilities in complex decision-making scenarios such as financial trading and software engineering. However, evaluating each individual agent's effectiveness and online optimization of underperforming agents remain open challenges. To address these issues, we present HiveMind, a self-adaptive framework designed to optimize LLM multi-agent collaboration through contribution analysis. At its core, HiveMind introduces Contribution-Guided Online Prompt Optimization (CG-OPO), which autonomously refines agent prompts based on their quantified contributions. We first propose the Shapley value as a grounded metric to quantify each agent's contribution, thereby identifying underperforming agents in a principled manner for automated prompt refinement. To overcome the computational complexity of the classical Shapley value, we present DAG-Shapley, a novel and efficient attribution algorithm that leverages the inherent Directed Acyclic Graph structure of the agent workflow to axiomatically prune non-viable coalitions. By hierarchically reusing intermediate outputs of agents in the DAG, our method further reduces redundant computations, and achieving substantial cost savings without compromising the theoretical guarantees of Shapley values. Evaluated in a multi-agent stock-trading scenario, HiveMind achieves superior performance compared to static baselines. Notably, DAG-Shapley reduces LLM calls by over 80\% while maintaining attribution accuracy comparable to full Shapley values, establishing a new standard for efficient credit assignment and enabling scalable, real-world optimization of multi-agent collaboration.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑