HiveMind: Contribution-Guided Online Prompt Optimization of LLM Multi-Agent Systems
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 9 of its 24 references that are in the map. First posted on arXiv 6 Dec 2025.
Builds on
9 of 24 references.
Closest ancestors · 2
Same direction, newest first
- 2025Multi-Agent Collaboration Mechanisms: A Survey of LLMs10 Jan
- 2023A Survey on Large Language Model based Autonomous Agents22 Aug
Other references · 7
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2018QMIX: Monotonic Value Function Factorisation for Deep Multi-Agent Reinforcement Learningcited by 697
- 2017Value-Decomposition Networks For Cooperative Multi-Agent Learningcited by 490
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2025A Survey of Automatic Prompt Engineering: An Optimization Perspectivecited by 41
- 2025Shapley-Coop: Credit Assignment for Emergent Cooperation in Self-Interested LLM Agentscited by 11
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026EvolveRouter: Co-Evolving Routing and Prompt for Multi-Agent Question Answeringcited by 13
- 2026Agentic Trading: When LLM Agents Meet Financial Marketscited by 7
- 2026MAS-PromptBench: When Does Prompt Optimization Improve Multi-Agent LLM Systems?cited by 4
- 2025DAO-Agent: Zero Knowledge-Verified Incentives for Decentralized Multi-Agent Coordinationcited by 3
- 2026CANTANTE: Optimizing Agentic Systems via Contrastive Credit Attributioncited by 1
- 2026Code Broker: A Multi-Agent System for Automated Code Quality Assessmentcited by 0
- 2026Agents that Matter: Optimizing Multi-Agent LLMs via Removal-Based Attributioncited by 0
- 2026MAS-PromptBench: When Does Prompt Optimization Improve Multi-Agent LLM Systems?22 Jun 2026
- 2026Agents that Matter: Optimizing Multi-Agent LLMs via Removal-Based Attribution26 May 2026
- 2026Agentic Trading: When LLM Agents Meet Financial Markets19 May 2026
- 2026CANTANTE: Optimizing Agentic Systems via Contrastive Credit Attribution13 May 2026
- 2026Code Broker: A Multi-Agent System for Automated Code Quality Assessment25 Apr 2026
- 2026EvolveRouter: Co-Evolving Routing and Prompt for Multi-Agent Question Answering6 Apr 2026
- 2025DAO-Agent: Zero Knowledge-Verified Incentives for Decentralized Multi-Agent Coordination24 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026Unifying Temporal and Structural Credit Assignment in LLM-Based Multi-Agent Prompt Optimization
- 2025Optimizing LLM-Based Multi-Agent System with Textual Feedback: A Case Study on Software Development
- 2026Let's Have a Conversation: Designing and Evaluating LLM Agents for Interactive Optimization
- 2026An Empirical Study of Multi-Agent Collaboration for Automated Research
- 2026AgentHPOBench: A Benchmark For Evaluating LLM Agents as Sequential Hyperparameter Optimizers
- 2026Prompt Optimization Enables Stable Algorithmic Collusion in LLM Agents
- 2026CascadeDebate: Multi-Agent Deliberation for Cost-Aware LLM Cascades
- 2026Environment-Grounded Automated Prompt Optimization for LLM Game Agents