TL;DR
OptiMAS is a task-agnostic framework that automates the evolution of Multi-Agent Systems (MAS) by treating agent trajectories and feedback as textual loss signals. Moving away from unstable, discrete search methods, it utilizes a continuous optimization paradigm and a novel dual-track memory mechanism to systematically refine prompts, skills, and agent topologies. Across diverse benchmarks, OptiMAS consistently outperforms existing evolutionary methods and matches or exceeds specialized, hand-crafted multi-agent architectures.
What Problem Does This Paper Address?
Designing effective Multi-Agent Systems (MAS) powered by Large Language Models (LLMs) is currently a highly manual, labor-intensive process. Developers must painstakingly calibrate prompts, design specialized agent roles, and engineer complex orchestration workflows through trial and error.
While automated agent evolution has emerged to alleviate this burden, existing frameworks rely heavily on search-based paradigms (e.g., stochastic tree-branching). This introduces a fundamental bottleneck:
- Instability: Broadening the optimization scope (e.g., changing both prompts and agent topologies simultaneously) causes severe evolutionary instability.
- Isolated Insights: Discrete "branch-and-discard" search strategies isolate valuable insights within specific ancestral lineages, preventing them from transferring across different branches of the search tree.
Methods
OptiMAS reformulates MAS evolution as a continuous, data-driven optimization process over partitioned data (train/validation/test).
1. Unified ReAct Infrastructure
Both the evolving MAS and the optimizer share a symmetrical foundational substrate based on ReAct (Reasoning + Acting) primitives. Instead of rigid, hardcoded workflows, task delegation is modeled as a proactive assign-deliver protocol: parent agents dynamically invoke sub-agents as tools, allowing the topology to scale fluidly based on the complexity of the incoming query.
2. Textual Gradients
During the forward pass, the evolving MAS executes tasks on a training batch. Its complete action trajectories (code, web logs, notes) and performance metrics are framed as a text-based "loss signal." OptiMAS acts as an agentic backward-pass optimizer, deeply inspecting this workspace to perform root-cause failure analysis and derive textual gradients to update the MAS configuration end-to-end.
3. Dual-Track Memory Mechanism
To sustain coherent optimization over long horizons, OptiMAS introduces two memory tracks:
- Plan-oriented short-term memory: Mitigates intra-step forgetting and hallucination by managing an un-erasable instructional plan with strict status tracking (waiting, executing, completed, dropped).
- Hypothesis-driven long-term memory: Tracks cross-step continuity via a closed-loop lifecycle (PROPOSE $\rightarrow$ ENACT $\rightarrow$ VALIDATE/REFUTE). Modifications to the MAS must be tied to a falsifiable hypothesis verified by trajectory-level evidence, preventing the system from overreacting to stochastic noise.
Datasets
To ensure rigorous evaluation, the authors utilize four highly heterogeneous agentic benchmarks, applying strict train/val/test splits to guard against overfitting:
- WorkBench: Tests multi-step planning, tool manipulation, and hierarchical execution across realistic workplace tasks.
- GAIA-text: Evaluates complex reasoning questions requiring mathematical calculation, file parsing, and cross-tool orchestration.
- BrowseComp: Focuses on long-horizon web navigation and programmatic multi-page information synthesis.
- SWE-Bench-Verified: Tasks agents with resolving production-grade GitHub issues through multi-file code comprehension and repository modification.
Key Insights and Ideas
- Continuous Optimization Trumps Discrete Search: Treating MAS evolution as a continuous text-gradient problem yields highly stable, sample-efficient, and overfit-resistant synthesis compared to stochastic tree-branching.
- Autonomous Role Specialization: Rather than just tweaking prompts, OptiMAS can radically alter system topology. For example, in SWE-Bench, it automatically mutates a simple single-agent setup into a sophisticated, hierarchical coalition featuring specialized Refiner, Reproducer, and Verifier sub-agents.
- Compensating for Weaker Backbones: Evolutionary gains are inversely correlated with the backbone LLM's capacity. OptiMAS provides massive accuracy boosts (+45.4% on WorkBench) when optimizing weaker models like GPT-5-Nano, proving that optimized orchestration can effectively compensate for raw reasoning limitations.
Key Results
OptiMAS was evaluated using three distinct LLM backbones: GPT-5-Nano, Qwen-3.6-35B, and Gemini-3-Flash.
- Substantial Evolution Gains: OptiMAS consistently improved performance over the initial single-agent baseline ($E_0$) across all conditions. Notably, a single task-agnostic configuration achieved these gains across all four benchmarks without any task-specific adaptation.
- Outperforming Evolutionary Baselines: Evolved systems produced by OptiMAS outperformed existing state-of-the-art evolutionary frameworks (like ADAS) by up to 58.9% absolute accuracy on SWE-Bench/Gemini3.
- Beating Hand-Crafted Systems: Despite being general-purpose, OptiMAS matched or exceeded domain-specialized, hand-crafted architectures. On GAIA and BrowseComp, it surpassed Tongyi-DR, and on SWE-Bench, it outperformed SWE-Agent across all three backbones.
- Monotonic Convergence: Trajectory analysis shows smooth, near-monotonic accuracy improvements over 10 epochs, with the test set closely tracking training gains.
Limitations and Future Work
- High Backbone Requirements: The framework's reliance on autonomous tool invocation, hierarchical delegation, and proactive context management places heavy demands on the underlying LLM. Substantially weaker models struggle to operate effectively within this framework. Extending compatibility to lighter-weight or edge-friendly models via progressive capability scaffolding is a key future direction.
- Exploration Breadth: The authors note that this framework represents only an initial exploration of a massive design space. Future work will investigate training curricula, dataset curation policies, multi-agent diversity/composition, and treating prompt templates and tool creation as first-class optimization targets.
Summary updated