Abstract
Multi-agent systems (MAS) powered by Large Language Models (LLMs) often suffer from extreme communication redundancy, leading to high economic costs and potential performance degradation due to noise. We present AgentPrune, a framework that models MAS communication as a spatial-temporal graph and applies one-shot pruning to eliminate redundant interactions. Our results demonstrate that AgentPrune can reduce token consumption by up to 72.8% while maintaining or even improving task performance and adversarial robustness across various reasoning benchmarks.
Introduction
Large Language Model (LLM) agents are increasingly deployed in collaborative teams to solve complex reasoning and coding tasks. While multi-agent systems (MAS) generally outperform single agents, they are characterized by high communication redundancy. Current topologies, such as complete graphs or continuous debate cycles, result in an astronomical "token tax." Furthermore, excessive communication can introduce "noise"—irrelevant or malicious information that degrades system performance and increases vulnerability to adversarial attacks.
Methodology: The AgentPrune Framework
AgentPrune formalizes multi-agent communication as a spatial-temporal graph. Spatial edges represent messages passed between agents within a single dialogue round, while temporal edges represent information preserved across successive rounds.
The pipeline consists of three main stages:
- System Discovery: The MAS is treated as an optimizable graph of agent nodes.
- Trainable Graph Masks: Differentiable masks are introduced for edges and optimized using a policy gradient approach based on task success. A low-rank principle encourages the discovery of essential communication pathways.
- One-Shot Pruning: Following a brief optimization phase, the system performs magnitude pruning to remove weak edges, fixing a sparse and efficient topology for future inference.
Experimental Evaluation
The framework was evaluated on six benchmarks, including MMLU (general reasoning), GSM8K (math), and HumanEval (code generation), using platforms like AutoGen and GPTSwarm.
Key Findings
- Efficiency and Cost: AgentPrune achieved massive cost reductions. On the MMLU benchmark, it delivered performance comparable to state-of-the-art dense topologies while reducing costs from $43.70 to $5.60. Overall token consumption was slashed by 28.1% to 72.8%.
- Performance Gains from Sparsity: Counter-intuitively, pruning 10%–30% of communication edges often improved accuracy by up to 2.83%. This suggests that redundant communication acts as a distractor.
- Adversarial Robustness: By enforcing sparsity, AgentPrune naturally learns to ignore "noisy" or malicious agents, providing a 3.5% to 10.8% performance boost under adversarial conditions.
Conclusion
AgentPrune demonstrates that "more talk" does not necessarily lead to better results in LLM-based multi-agent systems. By treating communication as a prunable graph, the framework significantly reduces economic costs and improves robustness. While currently requiring an initial optimization phase, future iterations may explore dynamic pruning to adapt to query difficulty in real-time.
Summary updated