SWE-Manager: Selecting and Synthesizing Golden Proposals Before Coding
This paper introduces SWE-Manager, an 8B reinforcement learning model that mimics technical managers by selecting the best candidate proposal and synthesizing a "golden" solution for software issues without executing code, achieving state-of-the-art performance on the SWE-Lancer Manager benchmark.
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 are the captain of a ship (a software project) and a storm has hit (a bug or a new feature request). Before you can steer the ship, you need to decide which path to take.
In the real world, your crew doesn't just guess. They might have three different sailors shouting out three different routes:
- Sailor A says, "Take the shortcut through the reef! It's fast, but risky."
- Sailor B says, "Go around the island. It's safe, but it takes three days."
- Sailor C says, "Let's fix the engine first, then go. It's the most thorough, but it's expensive."
Usually, a human manager has to listen to all three, weigh the risks, check the weather (the specific context of the problem), and pick the best plan. This paper, SWE-Manager, asks: Can an AI learn to be that manager?
Here is the story of how they built it, explained simply:
1. The Problem: AI is Good at Writing, Bad at Choosing
Currently, AI models (like the ones that write code) are great at generating one solution. But in real software teams, people often write multiple solutions and then argue about which one is best.
- The Gap: AI hasn't really been taught how to sit in the "manager's chair," listen to all the options, compare them, and say, "Okay, we are going with Sailor B, but let's tweak it to be faster."
- The Question: Is this "picking the winner" skill just a random human preference, or is there a logical pattern that an AI can learn?
2. The Detective Work: What Do Real Managers Do?
The researchers acted like detectives. They looked at thousands of real discussions on GitHub (a place where programmers share code) where people argued over how to fix bugs. They found three big secrets about how human managers choose:
- Secret #1: It's not random. Managers don't just pick their favorite. They always use a few "high-level rules," like: "Is this safe?" "Will it break other things?" "Is it easy to fix later?"
- Secret #2: It's a comparison, not a test. You can't judge a proposal in isolation. You have to compare them against each other in the specific context of the problem. (e.g., "Sailor A is fast, but since we are in a storm, safety is more important than speed.")
- Secret #3: The best plan is a mix. Often, the final plan isn't just one sailor's idea. It's a "Golden Proposal" that takes the best parts of Sailor A, the safety of Sailor B, and the thoroughness of Sailor C, and combines them into one perfect plan.
3. The Solution: SWE-Manager (The AI Manager)
Based on these secrets, the team built SWE-Manager. Think of it as a new kind of AI that doesn't just write code; it manages the conversation.
Instead of just saying "Here is the code," SWE-Manager does three things:
- Reads the Issue: It understands the problem.
- Reviews the Candidates: It looks at all the different proposals (like the sailors' routes).
- The "Golden" Synthesis: It picks the best direction, explains why it picked it, and then writes a new, "Golden Proposal" that combines the best ideas from all the candidates into one clear instruction.
They trained a specific version called SWE-Manager-8B (an 8-billion-parameter model) using a special two-step process:
- Step 1 (School): They taught it the format of how to compare and explain things (Supervised Fine-Tuning).
- Step 2 (Practice): They let it practice making choices and rewarded it when it picked the right one, teaching it to "think" like a manager (Reinforcement Learning).
4. The Results: Does the AI Manager Work?
They put the AI to the test in two ways:
Test A: The "Who's the Boss?" Test (Selection)
They gave the AI a problem and three different solutions, asking it to pick the one a human manager would have picked.
- The Result: SWE-Manager-8B got it right 53% of the time.
- The Comparison: A very powerful, famous AI (GPT-5) only got it right 44% of the time. Even though SWE-Manager is a smaller, cheaper model, it was better at choosing the right path.
Test B: The "Does it Help Build?" Test (Implementation)
They set up a workflow (called P2A) where:
- One AI writes the proposals.
- SWE-Manager picks the best one and writes the "Golden Proposal."
- A third AI tries to build the fix based on that Golden Proposal.
- The Result: When SWE-Manager was the manager, the team successfully fixed 55.6% of the problems.
- The Comparison: This was better than having no manager at all (which fixed 48.5%) and matched the performance of using the giant GPT-5 as the manager.
The Big Takeaway
The paper proves that choosing the right plan is a skill that AI can learn.
It's not just about being smart enough to write code; it's about being smart enough to compare options, understand the risks, and combine the best ideas into a single, clear instruction. By teaching an AI to act like a "Technical Manager," we can make software development more reliable and efficient, even with smaller, cheaper AI models.
In short: The paper shows that if you teach an AI to be a good judge and a good editor, it becomes much better at helping humans build software.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.