The Research Report
MASPO: The Quiet Revolution in Multi-Agent Prompt Optimization
Multi-Agent Systems are only as good as their prompts. That's the starting point for MASPO, a new framework from researchers at ICML 2026 that tackles one of the most stubborn problems in LLM-based multi-agent systems: how do you optimize prompts when every agent's performance depends on everyone else?
The paper, "Joint Prompt Optimization for LLM-based Multi-Agent Systems" (arXiv:2605.06623), introduces a framework called MASPO that addresses the credit assignment problem in multi-agent environments. It was accepted at ICML 2026.
The Problem Nobody Wants to Talk About
Multi-agent systems have become a standard architecture for complex reasoning tasks. Several LLM agents communicate in a chain, each handling a specific role—reasoner, reflector, synthesizer—and the final output emerges from their collaboration.
The quality of each agent's system prompt determines how well it performs its role. But here's the catch: existing prompt optimization methods work for single agents. They fail for multi-agent systems because optimizing one agent's prompt changes the input that downstream agents receive. Those changes alter their behavior. Those behavior changes then retroactively affect whether the upstream optimization was even good.
This is called the Local-Global Misalignment problem. An intermediate agent can do everything its prompt asks for, locally, while generating outputs that mislead or confuse the agents downstream. The final system fails, but there's no way to trace the failure back to the right agent.
Standard approaches like TPE (Tree-structured Parzen Estimators) only select from a fixed pool of discrete candidates. They can't do fine-grained, open-ended prompt tuning. They also can't handle the non-stationarity that emerges when peer agents are simultaneously changing their behavior.
MASPO's Approach: Three Innovations
MASPO solves these problems with three core components.
1. Multi-Granularity Joint Evaluation
Rather than evaluating a prompt only by whether the local agent produced good output, MASPO evaluates it across three dimensions:
- Local Validity – Does the agent satisfy its role-specific constraints?
- Lookahead Potential – Does the agent's output improve the immediate downstream agents' outputs?
- Global Alignment – Does the agent's output ultimately improve the final system response?
The key insight is that local goodness isn't sufficient. A prompt that makes an intermediate agent look brilliant while destroying downstream performance is a net negative. MASPO measures all three.
2. Misalignment-Aware Sampling
The framework explicitly mines what it calls Misalignment Cases—situations where an agent satisfies its local objective but fails to support downstream peers or the final system output. These cases get injected back into the prompt generation process as hard negatives.
In other words, the optimizer learns what a prompt that looks locally correct but globally destructive looks like, and generates new candidates designed to fix those specific breakdowns.
3. Evolutionary Beam Search with Adaptive Dynamics
MASPO uses a coordinate ascent-style strategy that respects the causal topology of the agent graph. Instead of fully converging one agent before moving to the next, it uses an interleaved protocol—optimize each agent for a limited number of steps, then move to the next, cycling through multiple rounds.
They call this Beam Refresh. When revisiting an agent after peers have updated, it re-scores existing beam candidates against the updated system state, mitigating the non-stationarity that would otherwise cause the search to collapse.
The GNN Connection
The paper formalizes multi-agent systems as directed communication graphs. Each node is an agent. Each edge represents the flow of output from one agent into the context of another.
This graph-theoretic perspective isn't just decoration. It grounds the entire framework. Lookahead Potential is topology-aware—it's computed only over the immediate successors in the graph. Global Alignment captures long-range dependencies across the full chain.
The search space is N agents times the discrete space of natural language strings, making it combinatorial and non-differentiable. Standard gradient-based methods don't apply. MASPO uses a trace-guided beam search driven by execution traces from actual system runs.
Results
The team evaluated MASPO across six benchmarks: MATH-500, AGIEval-MATH, AQuA, GPQA, MBPP, and HumanEval-ET. They tested both sequential and hierarchical multi-agent topologies.
The average accuracy improvement was 2.9 points over state-of-the-art baselines. The gains were consistent across all six tasks and both topology types.
In the hierarchical MAS case, MASPO achieved 71.05% average accuracy versus 68.32% for the vanilla hierarchical approach and 69.01% for the next-best optimization method (SPO).
What This Means for Multi-Agent Systems
The practical implication is straightforward: joint optimization outperforms independent tuning because the agents are functionally coupled. Your optimizer can't ignore how changes propagate through the system.
MASPO formalizes what experienced practitioners already knew—tuning prompts in isolation breaks downstream behavior—but gives it a principled framework with explicit mechanisms for detecting and repairing misalignment.
The code is available on GitHub at wangzx1219/MASPO.
The Bigger Picture
Multi-agent systems are being deployed in increasingly complex workflows. The shift from single prompts to orchestrated pipelines creates an optimization problem that doesn't have Goodhart's Law apply to it—but does have credit assignment problems that cripple naive approaches.
MASPO's joint evaluation mechanism, misalignment mining, and adaptive beam search are a complete answer to that problem. It's a sign that the field is maturing beyond the "spray prompts everywhere and hope" era into something more rigorous.
Whether this framework becomes standard tooling or a research baseline depends on how well it generalizes beyond the six benchmarks it was tested on. But the core insight—evaluate prompts by their causal impact on the full system, not just local output quality—is one that anyone building multi-agent systems should internalize now.
Paper: arXiv:2605.06623 — Accepted at ICML 2026