MetaGen: Self-Evolving Roles and Topologies for Multi-Agent LLM Reasoning
Yimeng Wang, Jiaxing Zhao, Hongbin Xie, Hexing Ma, Yuzhen Lei, Shuangxue Liu, Xuan Song, Zichen Zhang, Haoran Zhang
TL;DR
MetaGen tackles the rigidity of fixed role libraries and execution-frozen topologies in multi-agent LLM reasoning by introducing a training-free, inference-time framework that jointly evolves roles and collaboration structure around a minimal backbone. It features an Architect that generates query-conditioned roles, constraint and diversity filters, and a self-evolving DAG orchestration loop with intra-task edits and inter-task memory to reuse verified roles. Empirically, MetaGen delivers higher accuracy with significantly lower token costs across five benchmarks and shows strong robustness to distribution shifts and noise, underscoring practical benefits for scalable, adaptive MAS without backbone weight updates. The work demonstrates that intelligent, auditable, and cost-conscious inference-time orchestration of text-level roles and graphs can outperform both single-agent prompting and fixed-topology baselines in real-world reasoning and code-generation tasks.
Abstract
Large language models are increasingly deployed as multi-agent systems, where specialized roles communicate and collaborate through structured interactions to solve complex tasks that often exceed the capacity of a single agent. However, most existing systems still rely on a fixed role library and an execution-frozen interaction topology, a rigid design choice that frequently leads to task mismatch, prevents timely adaptation when new evidence emerges during reasoning, and further inflates inference cost. We introduce MetaGen, a training-free framework that adapts both the role space and the collaboration topology at inference time, without updating base model weights. MetaGen generates and rewrites query-conditioned role specifications to maintain a controllable dynamic role pool, then instantiates a constrained execution graph around a minimal backbone. During execution, it iteratively updates role prompts and adjusts structural decisions using lightweight feedback signals. Experiments on code generation and multi-step reasoning benchmarks show that MetaGen improves the accuracy and cost tradeoff over strong multi-agent baselines.
