Prompt optimization works well for single LLMs. Does it also help multi-agent systems? Researchers from Johns Hopkins University built the first benchmark to answer this question. The result: prompt optimization helps some multi-agent topologies but actively hurts others.

Juyang Bai published MAS-PromptBench on June 22, 2026. The benchmark covers 5 workflow topologies and 9 datasets. It tests two state-of-the-art prompt optimizers: GEPA and MIPRO. The code is open source at github.com/juyangbai/MAS-PromptBench.

The Problem

Multi-agent systems use multiple LLM-based agents coordinated by a workflow. Each agent has a system prompt that defines its role. Practitioners inherit a fixed configuration and want to improve it without redesigning the architecture.

Single-agent prompt optimization is well studied. Tools like APE, OPRO, and DSPy show strong gains when tuning prompts for one model. The multi-agent setting introduces a new challenge. The search space grows exponentially with the number of agents. Inter-agent prompt dependencies and coordination dynamics create a combinatorial problem.

No one had systematically tested whether single-agent optimization methods transfer to multi-agent setups.

What They Built

MAS-PromptBench provides 5 multi-agent topologies. These include debate, code generation, reasoning, and tool-calling configurations. Each topology runs on 9 benchmark datasets spanning reasoning, coding, and tool-calling tasks.

Two prompt optimizers are included. GEPA applies reflective prompt evolution over the real topology runners. It mutates prompts, evaluates them on the actual multi-agent system, and keeps the best versions. MIPRO uses a different approach based on instruction proposal and multi-stage refinement.

Every topology and dataset pair is runnable. The benchmark provides reference implementations, default prompts, and evaluation scripts. The whole system is reproducible.

Key Findings

The findings challenge assumptions about prompt optimization.

GEPA consistently improves single-agent performance across all five diverse tasks. The same optimizer applied to multi-agent settings produces highly variable results. Some topologies see substantial gains. Others see severe performance drops.

This means prompt optimization is not a free lunch for multi-agent systems. Applying an optimizer designed for single agents to a multi-agent topology can make things worse. The interaction between agent prompts and coordination dynamics matters more than the quality of any individual prompt.

The benchmark reveals which topology types benefit from optimization and which are sensitive to prompt changes. This gives practitioners a map of where optimization is worth the cost and where it risks degradation.

Why It Matters

Multi-agent systems are moving from research to production. Frameworks like AutoGen, CrewAI, CAMEL, MetaGPT, and ChatDev all use manually crafted system prompts. Teams deploying these systems want to know if automated prompt tuning will help.

MAS-PromptBench gives the first reliable answer. It depends on the topology. The benchmark provides the tools to test your specific configuration before committing to optimization.

What You Should Do

Clone the repository at github.com/juyangbai/MAS-PromptBench. Run the benchmark on your multi-agent topology. Check whether GEPA or MIPRO improves results or degrades them before applying either optimizer to production prompts.

Read the paper at arXiv:2606.23664. The project page at juyangbai.github.io/MAS-PromptBench has interactive visualizations of the results across topologies and datasets.

References

  • Paper: MAS-PromptBench: When Does Prompt Optimization Improve Multi-Agent LLM Systems?, arXiv:2606.23664, published June 22, 2026
  • Author: Juyang Bai, Johns Hopkins University
  • Code: github.com/juyangbai/MAS-PromptBench
  • Project page: juyangbai.github.io/MAS-PromptBench
  • License: MIT