MASPO: Joint Prompt Optimization for LLM-based Multi-Agent Systems
MASPO is a novel framework that automatically optimizes prompts for LLM-based multi-agent systems by employing a joint evaluation mechanism and evolutionary beam search to align local agent objectives with global system goals, thereby outperforming existing methods across diverse collaborative tasks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a team of expert robots working together to solve a very difficult puzzle. Each robot has a specific job: one reads the clues, another does the math, a third checks for errors, and a fourth writes the final answer.
In the past, if the team failed, it was hard to know who to blame. Was the math robot bad at math? Or did the reading robot give it the wrong clues? This is the problem the paper MASPO solves.
Here is how MASPO works, explained through simple analogies:
1. The Problem: The "Blame Game" in a Team
Usually, when we train these robot teams, we only look at the final answer. If the answer is wrong, we don't know which robot messed up.
- The Analogy: Imagine a relay race. If the team loses, you can't just yell at the last runner. Maybe the first runner dropped the baton, or the second runner ran the wrong path. If you only train the last runner to run faster, the team will still lose because the baton hand-off is broken.
- The Paper's Insight: The authors realized that in a multi-agent system, a robot can do its own job perfectly (local success) but still give the next robot information that leads to a total failure (global failure). This is called "Local-Global Misalignment."
2. The Solution: MASPO (The Team Coach)
MASPO is a new framework that acts like a smart coach who doesn't just watch the finish line, but watches every single hand-off in the relay race. It automatically rewrites the "instruction manuals" (prompts) for every robot to make the whole team work better together.
It does this using three main tricks:
A. The "Future-Proof" Scorecard (Joint Evaluation)
Instead of just asking, "Did this robot do its job?" MASPO asks, "Did this robot's work help the next robot succeed?"
- The Analogy: Imagine a chef preparing a meal. A standard judge might just taste the soup and say, "It's salty." But MASPO is like a judge who also asks, "Is this soup salty enough to go well with the bread the next chef is baking?"
- How it works: MASPO gives every robot a score based on three things:
- Did they follow their own rules? (Local Validity)
- Did their output make the next robot's job easier? (Lookahead Potential)
- Did it help the team win the final game? (Global Alignment)
B. Learning from "Almost" Disasters (Misalignment Mining)
Most systems only learn from mistakes where the final answer was wrong. MASPO looks for a specific, sneaky type of mistake: when a robot did its job perfectly, but the team still failed.
- The Analogy: Imagine a driver who follows every traffic law perfectly (local success) but accidentally drives into a dead-end street because the map was confusing (global failure). A normal coach would say, "Good job, driver!" MASPO says, "Wait, you followed the rules, but we still got lost. Let's fix your instructions so you don't drive into dead ends next time."
- How it works: The system saves these "Local Success, Global Failure" cases and forces the robots to study them, ensuring they don't repeat the same coordination errors.
C. The "Re-Alignment" Drill (Beam Refresh)
As the robots learn and change their behavior, the instructions for the next robot might suddenly become outdated.
- The Analogy: Imagine a dance team. If the first dancer speeds up, the second dancer's timing is now wrong. If you keep practicing the old routine, they will keep stepping on each other's toes.
- How it works: MASPO constantly checks the team. If the first robot has changed its style, MASPO immediately updates the "score" for the second robot's instructions so they are practicing against the current reality, not an old version of the team.
3. The Results: A Better Team
The authors tested this on 6 different types of hard tasks, including complex math, logic puzzles, and writing computer code.
- The Outcome: The MASPO-trained teams consistently outperformed other methods. They improved their accuracy by an average of 2.9% compared to the best existing methods.
- Why it matters: This proves that by teaching robots to care about how their work affects their teammates (not just their own task), the whole system becomes much smarter.
Summary
Think of MASPO as a team coach that rewrites the playbook in real-time. Instead of just telling the players to "do their best," it analyzes how Player A's pass affects Player B's catch, and it rewrites the instructions for both of them to ensure the whole team wins, not just the individual players. It solves the problem of "I did my job, but we still lost" by making sure everyone's job is designed to help the team win.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.