TL;DR
While AI code assistants excel at generating patches, they lack the managerial skill to decide how a bug should be fixed before coding begins. This paper introduces SWE-Manager, an 8B parameter model trained via reinforcement learning that acts as a technical manager by evaluating competing code proposals, selecting the best one, and synthesizing a optimized "golden proposal." Remarkably, SWE-Manager-8B outperforms GPT-5 on proposal selection benchmarks and significantly boosts downstream bug-fixing success.
What Problem Does This Paper Address?
Most large language model (LLM) research in software engineering focuses on the final step of the lifecycle: writing code or fixing bugs. However, in real-world development teams, the process starts much earlier. When an issue arises, developers often propose multiple competing solutions. A technical manager or maintainer must then review these proposals, weighing trade-offs like regression risk, maintainability, and fix depth before greenlighting an implementation.
Evaluating these proposals is highly context-dependent and challenging. Until now, it was unclear whether this "managerial" selection process followed reusable reasoning patterns that an LLM could learn, or if it was purely driven by arbitrary, instance-specific maintainer preferences.
Methods
The authors tackled this problem through a multi-step approach:
- Manual Study: They analyzed 339 real-world GitHub issue discussions to categorize why maintainers prefer one proposal over another. They found that choices are heavily guided by recurring high-level engineering rationales (e.g., minimizing risk vs. maximizing fix depth).
- SWE-Manager Model: Based on these insights, they built SWE-Manager, an 8B model fine-tuned from Qwen3-8B. The model doesn't just pick a proposal ID; it generates a structured response containing a comparative reasoning trace, a justification, and a synthesized "golden proposal" that merges the best elements of the candidates.
- Two-Stage Training: The model was first trained using Supervised Fine-Tuning (SFT) to learn the output structure, followed by Reinforcement Learning (RL) via DAPO (Decoupled Clip and Dynamic sAmpling Policy Optimization) to align its selection policy with ground-truth maintainer decisions.
- P2A Framework: To test if the synthesized proposals actually help write better code, they introduced the Proposal-to-Agent (P2A) workflow. Here, a Proposal Agent generates candidates, the Technical Manager (SWE-Manager) synthesizes the golden proposal, and an Implementation Agent uses that proposal to write the final code patch.
Datasets
- Proposal-Selection Corpus: A newly curated dataset of 2,852 issues and 7,500 candidate proposals extracted from bounty-backed GitHub repositories.
- SWE-Lancer Manager Benchmark: Used to evaluate proposal selection accuracy and financial "earned rate" based on real-world bounties.
- SWE-Lancer IC Benchmark: Used within the P2A framework to evaluate end-to-end issue resolution (pass rate) via test-based verification.
Key Insights and Ideas
- Synthesis as a Reasoning Booster: Forcing the model to synthesize a unified "golden proposal" rather than just picking an index acts as a powerful regularizer. It forces the LLM to deeply contrast proposal differences and reconcile inconsistencies, which inherently improves its selection accuracy.
- Joint Comparison Over Isolated Scoring: Standard rubric-based scoring (evaluating each proposal in isolation) fails because engineering priorities shift based on context. SWE-Manager succeeds because it evaluates the issue and all candidate proposals jointly, allowing relative strengths and risks to emerge naturally.
- Small Models Can Manage Frontier Models: An aligned 8B model can effectively judge and synthesize proposals generated by a diverse mix of larger models (like Gemini 3 Flash and DeepSeek V3.2), proving that specialized reasoning trumps raw parameter scale for this task.
Key Results
- Selection Superiority: On the SWE-Lancer Manager benchmark, SWE-Manager-8B achieved 53.21% accuracy and a 57.75% earned rate ($152,750), substantially outperforming GPT-5 (44.15% accuracy, 37.75% earned rate), even when GPT-5 was given codebase access.
- Downstream Impact: In end-to-end bug fixing (SWE-Lancer IC), the P2A workflow using SWE-Manager-8B achieved a 55.6% issue-resolution pass rate, matching GPT-5 and beating the direct code-generation baseline (mini-SWE-agent) by 7.1%.
- The Value of the Golden Proposal: Control experiments showed that feeding the synthesized golden proposal to the coding agent resolved 18 more issues than simply passing the originally selected proposal, proving that cross-proposal synthesis adds massive practical value.
Limitations and Future Work
- No Codebase Access: Currently, SWE-Manager operates purely on text descriptions of the issue and proposals without inspecting the underlying repository code. Adding tool-augmentation could help it resolve highly repository-specific edge cases.
- Scalability with Large Proposal Pools: As the number of candidate proposals grows to 5 or more, SWE-Manager-8B’s performance degrades due to long-context processing difficulties and a lack of large-pool examples in the training data. Future work will focus on long-context comparison strategies and curriculum learning to handle crowded proposal spaces.
Summary updated