SWE-Manager: Selecting and Synthesizing Golden Proposals Before Coding

Boyin Tan, Haoning Deng, Junyuan Zhang, Junjielong Xu, Pinjia He, Youcheng SunarXiv 2026

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.

Manager task overview

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:

  1. 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).
  2. 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.
  3. 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.
  4. 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.
P2A Framework Workflow

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.
Performance breakdown and training ablation
  • 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

Abstract

Large language model (LLM) research in software engineering has largely focused on tasks such as code generation and bug repair. In practice, teams often draft multiple candidate proposals for fixing an issue and then deliberate on one golden proposal for implementation. This selection requires not only assessing the issue's scope, impact, and urgency, but also a clear understanding of each proposal's strengths and weaknesses. A good selection could make issue resolution more reliable while reducing regression and operational risk, whereas a poor choice can increase risk and even cause unpredictable failures. We first conduct a manual study of real-world issues to characterize the rationales maintainers use when selecting among competing proposals. Motivated by these findings, we introduce SWE-Manager, a joint selection and synthesis approach that selects the best proposal and synthesizes a golden proposal. SWE-Manager is an 8B model trained via reinforcement learning (RL) to compare proposals, justify its choice, and synthesize a golden proposal for implementation. We view proposal selection as a reasoning task, mirroring how technical managers review competing proposals by weighing issue context and each proposal's solution without executing code or running tests. On the SWE-Lancer Manager benchmark, SWE-Manager achieves 53.21 selection accuracy and 57.75 earn rate, earning 152,750 dollars and outperforming strong baselines including GPT-5. To further evaluate the effectiveness of SWE-Manager in real-world issue resolution, we design the P2A framework, which simulates a real-world workflow where multiple proposals are drafted, reviewed, and a golden proposal is selected for implementation ...
BibTeX
@misc{tan2026swe,
  author = {Boyin Tan and Haoning Deng and Junyuan Zhang and Junjielong Xu and Pinjia He and Youcheng Sun},
  title = {{SWE-Manager: Selecting and Synthesizing Golden Proposals Before Coding}},
  year = {2026},
  eprint = {2601.22956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.22956},
}
Figure