AgentSlimming: Towards Efficient and Cost-Aware Multi-Agent Systems

Chen, Yulang, Peng, Haoxuan, Liu, Jinyan, Wen, Zichen, Liu, Dongrui, Zhang, Linfeng

–arXiv.org Artificial Intelligence 

Large Language Model-based Multi-Agent Systems (MAS) have demonstrated remarkable capabilities in complex tasks. However, manually designing optimal communication topologies is labor-intensive, while automated expansion methods often result in bloated structures with redundant agents, leading to excessive token consumption. To address this problem, we introduce AgentSlimming, a plug-and-play compression framework for graph-structured multiagent workflows. Motivated by pruning and quantization in neural networks, AgentSlimming compresses workflows by first estimating the importance score of each agent with a hybrid mechanism, and then removes redundant agents or replaces them with low-cost ones, where each operation is validated using a baseline-anchored acceptance rule to prevent performance collapse. Experiments show that Figure 1: Overview of the pruning and quantizaAgentSlimming reduces average token cost bytion concepts in AgentSlimming. The process begins up to 78.9% with negligible performance degra-with a workflow that is initially high-performance but dation, and sometimes even improves accuracy, achieving a strong Pareto-optimal tradecomputationally expensive.