NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MAS$^2$: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systems

Kun Wang, Guibin Zhang, ManKit Ye, Xinyu Deng, Dongxia Wang, Xiaobin Hu, Jinyang Guo, Yang Liu, Yufei Guo

TL;DR

MAS² is a "meta" multi-agent system that autonomously designs, instantiates, and—most importantly—repairs task-specific agent teams on the fly. By moving beyond the rigid "generate-once-and-deploy" model to a recursive, self-rectifying paradigm, it achieves state-of-the-art performance and superior cost-efficiency across complex domains like deep research and code generation.

The Problem: Brittle "Generate-Once" Systems

Large Language Model (LLM) multi-agent systems (MAS) have evolved from hand-crafted setups to automated frameworks capable of orchestrating their own prompts and tools. However, the authors argue that current "automatic" systems are still brittle. They typically follow a "generate-once-and-deploy" approach: the system is designed at the start of a task and executed as-is.

If a tool fails, a model hallucinates, or the environment changes mid-task, these systems often collapse because they lack the "self-awareness" to reconfigure themselves during execution. MAS² aims to solve this by internalizing the design and debugging process, allowing the system to adapt its own architecture in real-time based on environmental feedback.

Methods: The Tri-Agent Meta-Team

The core of MAS² is a tri-agent meta-team that manages the lifecycle of a "target" agent system:

Architecture of MAS² and Collaborative Tree Optimization
  1. The Generator: Acts as the architect. Given a query, it produces a high-level Python-style workflow template, defining roles and communication protocols without worrying about specific models yet.
  2. The Implementer: Acts as the resource manager. It populates the template by assigning specific LLM backbones (e.g., choosing between a cheap GPT-4o-mini or a powerful Qwen-72B) to each role based on the task's difficulty and cost constraints.
  3. The Rectifier: Acts as the runtime debugger. It monitors execution. If it detects a failure (like a code error or an empty search result), it intervenes to modify the workflow—perhaps by increasing a search budget or swapping in a more capable model for a specific step.

To train these meta-agents, the authors introduced Collaborative Tree Optimization (CTO). This is an offline reinforcement learning strategy that explores a "decision tree" of possible MAS configurations. It uses a "path credit propagation" mechanism to attribute the final success or failure of a task back to the specific decisions made by the Generator, Implementer, or Rectifier, allowing for highly specialized training.

Evaluation and Datasets

The system was evaluated across seven diverse benchmarks spanning four major domains:

  • Multi-hop Search: HotpotQA, Bamboogle, and Natural Questions (NQ).
  • Deep Research: BrowseComp+ (a more stable version of OpenAI’s BrowseComp).
  • Code Generation: HumanEval and MBPP.
  • Mathematical Reasoning: MATH.

Key Insights and Ideas

  • Recursive Self-Generation: The most powerful idea here is that a MAS can be the architect of another MAS. By treating the system configuration as a dynamic variable rather than a static setup, the authors achieve a level of resilience rarely seen in agentic workflows.
  • The "Aha" of Rectification: In the case studies, the Rectifier doesn't just retry; it re-architects. For example, if a lightweight model fails to filter noisy HTML, the Rectifier upgrades the backbone to a stronger model and injects a "strict prompt wrapper" to handle the noise.
  • Cross-Backbone Generalization: Surprisingly, MAS² meta-agents (trained on a specific pool of models) can effectively incorporate "unseen" models at inference time to boost performance without any additional fine-tuning.
  • Value-Guided Preference: Instead of simple binary "this worked/this didn't" labels, the CTO training uses the "margin of victory" between different configurations to prioritize learning from the most impactful architectural decisions.

Key Results

MAS² demonstrates significant improvements in both competence and efficiency compared to existing automated MAS frameworks.

Performance vs. Cost Pareto Front on Bamboogle
  • Superior Competence: MAS² outperformed state-of-the-art automated MAS (like MaAS and ScoreFlow) by up to 19.6% in complex scenarios.
  • Pareto Optimality: The system consistently sits on the "Pareto frontier" of cost vs. performance. On the Bamboogle benchmark, it achieved a 12.8% higher pass rate than a GPT-4o self-consistency baseline while being 25x cheaper.
  • Robustness: In deep research tasks (BrowseComp+), where many systems struggle with long-horizon search, MAS² achieved a score of 19.7%, nearly doubling the performance of several baselines.

Limitations and Future Work

While MAS² is highly flexible, it currently relies on a predefined set of "operators" (like Search, Programmer, or Reviewer) that the Generator uses to build workflows. Future work could involve allowing the system to define its own new operators or tools from scratch. Additionally, while the Rectifier is effective, its interventions currently add a layer of latency; optimizing the speed of these "self-correction" loops would be a logical next step for real-time applications.

Summary updated

BibTeX
@inproceedings{wang2026mas,
  author = {Kun Wang and Guibin Zhang and ManKit Ye and Xinyu Deng and Dongxia Wang and Xiaobin Hu and Jinyang Guo and Yang Liu and Yufei Guo},
  title = {{MAS$^2$: Self-Generative, Self-Configuring, Self-Rectifying Multi-Agent Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=qumy27hMDY},
}
Figure