SafeSieve: From Heuristics to Experience in Progressive Pruning for LLM-based Multi-Agent Communication

Ruijia Zhang, Xinyan Zhao, Ruixiang Wang, Sigen Chen, Guibin Zhang +3 more
8/15/2025
cs.MAcs.AI

Official code: csgen/SafeSieve (5 stars, last commit 2025-07-25).

Abstract

LLM-based multi-agent systems exhibit strong collaborative capabilities but often suffer from redundant communication and excessive token overhead. Existing methods typically enhance efficiency through pretrained GNNs or greedy algorithms, but often isolate pre- and post-task optimization, lacking a unified strategy. To this end, we present SafeSieve, a progressive and adaptive multi-agent pruning algorithm that dynamically refines the inter-agent communication through a novel dual-mechanism. SafeSieve integrates initial LLM-based semantic evaluation with accumulated performance feedback, enabling a smooth transition from heuristic initialization to experience-driven refinement. Unlike existing greedy Top-k pruning methods, SafeSieve employs 0-extension clustering to preserve structurally coherent agent groups while eliminating ineffective links. Experiments across benchmarks (SVAMP, HumanEval, etc.) showcase that SafeSieve achieves 94.01% average accuracy while reducing token usage by 12.4%-27.8%. Results further demonstrate robustness under prompt injection attacks (1.23% average accuracy drop). In heterogeneous settings, SafeSieve reduces deployment costs by 13.3% while maintaining performance. These results establish SafeSieve as an efficient, GPU-free, and scalable framework for practical multi-agent systems. Our code can be found here: https://github.com/csgen/SafeSieve

View on arXivView PDF

Code Implementations(1)

csgen/SafeSieveOfficial100%
51PythonJul 25, 20251 years ago

Cite this paper

@article{zhang2025safesieve,
  title  = {SafeSieve: From Heuristics to Experience in Progressive Pruning for LLM-based Multi-Agent Communication},
  author = {Ruijia Zhang and Xinyan Zhao and Ruixiang Wang and Sigen Chen and Guibin Zhang and An Zhang and Kun Wang and Qingsong Wen},
  year   = {2025},
  eprint = {2508.11733},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.11733v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.11733.svg)](https://codeofpaper.com/paper/2508.11733)

Discussion