Adaptive Graph Pruning for Multi-Agent Communication

Li Boyi, Zhonghan Zhao, Der-Horng Lee, Gaoang WangarXiv 2025 · DOI

Abstract

Multi-agent systems leveraging Large Language Models (LLMs) often rely on static communication topologies and fixed team sizes, leading to suboptimal performance and excessive token costs. We present Adaptive Graph Pruning (AGP), a framework that dynamically constructs task-specific agent teams by jointly optimizing agent selection (hard-pruning) and communication link weights (soft-pruning). AGP utilizes a two-stage training process to learn these pruning policies. Experimental results demonstrate that AGP achieves state-of-the-art accuracy (91.04% average) across diverse benchmarks while reducing token consumption by over 90% compared to existing multi-agent methods.

Introduction

The collaborative potential of multi-agent LLM systems—where specialized personas like "Analyst," "Solver," and "Decider" interact—is often hindered by rigid structural designs. Traditional systems typically employ human-designed static topologies (e.g., chains or stars) and fixed agent counts regardless of task complexity. This lack of adaptability results in "noisy" communication for simple tasks and insufficient reasoning depth for complex ones.

Comparison of multi-agent communication topologies: (a) human-made static, (b) edge weight optimization, and (c) the proposed Adaptive Graph Pruning.

Adaptive Graph Pruning (AGP) addresses these flaws by treating the multi-agent system as a graph where nodes represent agents and edges represent communication channels. By pruning this graph dynamically, AGP identifies the "Goldilocks" team for any given query—lean enough to be efficient, yet robust enough to solve the problem.

Methods

The AGP framework operates through a two-stage learning process designed to transform a "maximum complete graph" (where all possible agents are interconnected) into a task-optimized subgraph.

Stage I: Ground Truth Graph Collection

The system first explores the vast space of possible agent combinations. By sampling thousands of configurations from a pool of 15 specialized agents and evaluating them on diverse tasks, the framework identifies top-performing topologies. These high-performing graphs serve as the "ground truth" supervision data for the subsequent training stage.

Stage II: Dual-Pruning Network Training

Using the data from Stage I, a Graph Neural Network (GNN) is trained to perform two simultaneous operations:

  1. Soft-Pruning: The network learns continuous edge weights to modulate the intensity of information flow between agents.
  2. Hard-Pruning: The network generates a binary mask to determine whether an agent should be included in the final team.
The two-stage AGP framework: Stage I optimizes a graph pool for diverse tasks, and Stage II jointly trains soft-pruning and hard-pruning networks.

The architecture employs a Sentence-BERT encoder to process task descriptions and agent profiles, followed by a GCN backbone that outputs the final pruned topology. This dual-pruning approach ensures that unnecessary agents are removed entirely, preventing them from introducing irrelevant noise into the reasoning process.

Experimental Evaluation

AGP was evaluated across several rigorous benchmarks, including MMLU (general knowledge), GSM8K and MultiArith (mathematics), and HumanEval (code generation). The training corpus consisted of 460 labeled pairs across these domains.

Key Results

  • Performance: AGP achieved an average accuracy of 91.04%, outperforming both single-agent baselines and advanced static-graph competitors. Notably, it solved 99.44% of problems in the MultiArith benchmark.
  • Efficiency: On the MMLU benchmark, AGP utilized 90% fewer tokens than GPTSwarm. This efficiency stems from the model's ability to bypass redundant communication and exclude irrelevant agents.
  • Sample Efficiency: The pruning policy is highly efficient to train, reaching peak performance in approximately 10 training steps.

Discussion and Insights

A critical finding of this work is that joint pruning of nodes and edges is significantly more effective than edge-weight optimization alone. Hard-pruning acts as a filter for "spurious reasoning," ensuring that only the most relevant expertise is applied to a task. Interestingly, AGP often discovered non-intuitive agent pairings—such as including a "Doctor" persona for sociology tasks—that outperformed human-designed teams by providing complementary perspectives.

Conclusion

Adaptive Graph Pruning represents a significant step toward autonomous, efficient multi-agent intelligence. By moving away from static human intuition and toward learned, task-adaptive structures, AGP maximizes the reasoning capabilities of LLMs while minimizing computational overhead. Future work will explore the application of AGP to multimodal environments and further optimize the inference speed of the underlying GNN.

Summary updated

BibTeX
@misc{boyi2025adaptive,
  author = {Li Boyi and Zhonghan Zhao and Der-Horng Lee and Gaoang Wang},
  title = {{Adaptive Graph Pruning for Multi-Agent Communication}},
  year = {2025},
  eprint = {2506.02951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02951},
}
Figure