Abstract
Multi-Agent Systems (MAS) have emerged as a powerful paradigm for solving complex tasks with Large Language Models (LLMs). However, existing MAS designs are often either manually crafted—making them brittle and hard to scale—or require extensive labeled validation sets for automatic tuning. We present MAS-ZERO, a novel framework that automatically designs and optimizes MAS at inference time without any supervision. By employing a "meta-agent" to iteratively design, critique, and refine agent configurations for specific problem instances, MAS-ZERO achieves state-of-the-art performance across reasoning, coding, and agentic tasks. Notably, MAS-ZERO consistently resides on the Pareto frontier of accuracy versus cost, demonstrating superior efficiency.
Introduction
The performance of Large Language Models (LLMs) can be significantly enhanced by decomposing complex problems into sub-tasks handled by specialized agents. Despite this potential, the design of these Multi-Agent Systems (MAS) remains a bottleneck. Manual designs often fail to align with the specific strengths of the underlying LLM and struggle to adapt to new domains. Existing automatic design frameworks typically rely on a "training" phase with labeled validation sets, resulting in static architectures that cannot generalize to novel, unlabeled problem instances.
MAS-ZERO addresses this "missing link" by introducing a system that dynamically composes an optimal agent team on the fly. It operates entirely at test time, requiring zero prior supervision or labeled data.
Methodology: The Self-Evolving Pipeline
MAS-ZERO utilizes a three-step process to evolve a solution for each individual problem:
1. MAS-Init (Building Blocks)
The process begins by executing established, simple strategies such as Chain-of-Thought (CoT), Self-Consistency (CoT-SC), and Multi-Agent Debate. These initial runs provide "seed" outputs and establish a baseline performance level.
2. MAS-Evolve (The Meta-Loop)
At the heart of MAS-ZERO is the Meta-Agent. Rather than solving the problem directly, the meta-agent acts as a system architect. It iteratively performs the following:
- Meta-Design: Decomposes the primary question into manageable sub-tasks and assigns specific sub-MAS configurations to solve them.
- Meta-Feedback: Critiques the generated results based on two internal metrics: Solvability (assessing if the sub-task is inherently solvable) and Completeness (ensuring the sub-task addresses all necessary information).
- Refinement: Uses an "experience library" of previous iterations to improve the design in subsequent cycles.
3. MAS-Verify (Dynamic Reduction)
In the final stage, the meta-agent evaluates the entire pool of candidate answers generated by both the simple building blocks and the complex evolved designs. It selects the most reliable solution. A key feature of MAS-ZERO is Dynamic Reduction: if a simple CoT approach yields a more consistent or reliable result than a complex multi-agent chain, the system can revert to the simpler answer, preventing the introduction of noise from over-engineering.
Experimental Evaluation
The authors evaluated MAS-ZERO using both closed-source (GPT-4o) and open-source (Llama-3.3-70B, Qwen-2.5-32B) models across three challenging domains:
- Reasoning: Hard mathematics (AIME24) and graduate-level science (GPQA-diamond).
- Coding: Real-world GitHub issue resolution (SWE-Bench-Lite-Oracle).
- Agentic Search: Multi-step web search and reasoning (BrowseComp and Frames).
Key Results and Insights
MAS-ZERO consistently outperformed both manual MAS baselines and state-of-the-art automatic frameworks like AFlow and ADAS.
- Performance Gains: The framework achieved accuracy improvements of up to 16.69% in reasoning tasks and a massive 16.66% improvement on the SWE-Bench coding benchmark.
- Cost Efficiency: MAS-ZERO consistently defines the Pareto frontier. It delivers higher accuracy at a lower cost than comparable automatic methods by effectively trading test-time compute for significantly better outcomes.
- Robustness through Simplicity: The "Dynamic Reduction" capability ensures that the system does not over-complicate simple problems, a common failure mode for other multi-agent frameworks.
Discussion and Future Work
While MAS-ZERO represents a significant leap in autonomous agent design, it faces certain limitations. The iterative evolution process increases inference latency and token consumption compared to single-turn calls. Furthermore, the framework's effectiveness is highly dependent on the "intelligence" of the meta-agent; experiments showed that smaller models (under 70B parameters) often struggle to follow the complex design instructions required for meta-evolution.
Future research will focus on integrating external verifiers—such as code compilers or formal math provers—into the verification step to further reduce reliance on LLM self-judgment and improve the reliability of the final output.
Summary updated