MetaAgent: Automatically Constructing Multi-Agent Systems Based on Finite State Machines

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Yaolun, Liu, Xiaogeng, Xiao, Chaowei
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912511066898432
author Zhang, Yaolun
Liu, Xiaogeng
Xiao, Chaowei
author_facet Zhang, Yaolun
Liu, Xiaogeng
Xiao, Chaowei
contents Large Language Models (LLMs) have demonstrated the ability to solve a wide range of practical tasks within multi-agent systems. However, existing human-designed multi-agent frameworks are typically limited to a small set of pre-defined scenarios, while current automated design methods suffer from several limitations, such as the lack of tool integration, dependence on external training data, and rigid communication structures. In this paper, we propose MetaAgent, a finite state machine based framework that can automatically generate a multi-agent system. Given a task description, MetaAgent will design a multi-agent system and polish it through an optimization algorithm. When the multi-agent system is deployed, the finite state machine will control the agent's actions and the state transitions. To evaluate our framework, we conduct experiments on both text-based tasks and practical tasks. The results indicate that the generated multi-agent system surpasses other auto-designed methods and can achieve a comparable performance with the human-designed multi-agent system, which is optimized for those specific tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2507_22606
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MetaAgent: Automatically Constructing Multi-Agent Systems Based on Finite State Machines
Zhang, Yaolun
Liu, Xiaogeng
Xiao, Chaowei
Artificial Intelligence
Large Language Models (LLMs) have demonstrated the ability to solve a wide range of practical tasks within multi-agent systems. However, existing human-designed multi-agent frameworks are typically limited to a small set of pre-defined scenarios, while current automated design methods suffer from several limitations, such as the lack of tool integration, dependence on external training data, and rigid communication structures. In this paper, we propose MetaAgent, a finite state machine based framework that can automatically generate a multi-agent system. Given a task description, MetaAgent will design a multi-agent system and polish it through an optimization algorithm. When the multi-agent system is deployed, the finite state machine will control the agent's actions and the state transitions. To evaluate our framework, we conduct experiments on both text-based tasks and practical tasks. The results indicate that the generated multi-agent system surpasses other auto-designed methods and can achieve a comparable performance with the human-designed multi-agent system, which is optimized for those specific tasks.
title MetaAgent: Automatically Constructing Multi-Agent Systems Based on Finite State Machines
topic Artificial Intelligence
url https://arxiv.org/abs/2507.22606