SWE-RM: Execution-free Feedback for Software Engineering Agents

KaShun Shum, Binyuan Hui, Jiawei Chen, Lei Zhang, X. W., Jiaxi Yang, Yuzhen Huang, Junyang Lin, Junxian He

Executive Summary

Researchers have developed SWE-RM, a 30-billion parameter reward model that provides fine-grained, execution-free feedback to software engineering (SWE) agents. By moving beyond simple "pass/fail" unit tests and focusing on model calibration and discriminative accuracy, SWE-RM achieves state-of-the-art performance on SWE-Bench Verified, boosting the resolve rate of top-tier coding models by up to 10.4%.

Introduction & Motivation

Developing AI agents capable of resolving real-world software bugs traditionally relies on execution-based feedback. To train an agent or select its best solution, developers run unit tests. If the tests pass, the agent succeeds; if they fail, it does not.

However, this paradigm suffers from three major flaws:

  1. Sparsity: A binary "pass/fail" signal fails to inform the agent how close it was to a solution or which specific part of a complex trajectory was correct.
  2. Unreliability: In real-world repositories, unit tests are often missing, overly specific, or unrelated to the actual bug being fixed.
  3. The RL Gap: The authors discovered a hidden discrepancy: two reward models might perform equally well at selecting the best solution from a generated list (Test-Time Scaling, or TTS), but one might cause the agent to fail entirely during Reinforcement Learning (RL) because its internal "confidence" scores are poorly calibrated.

Methodology

To address these limitations, the researchers introduce SWE-RM, an execution-free reward model utilizing a Mixture-of-Experts (MoE) architecture. While it houses 30B total parameters, only 3B are active during inference, ensuring computational efficiency.

Key technical choices include:

  • Generative Classification: Instead of a standard regression head, the model is prompted to output a "YES" or "NO" token. The final reward score is derived from the relative log-probabilities of these tokens.
  • Massive Context Window: SWE tasks involve extensive codebases. SWE-RM supports up to 256k tokens, allowing it to process entire multi-turn interactions and complex file structures that previous models (often limited to 32k tokens) would be forced to truncate.
  • Optimized Training Recipe: Through extensive ablation studies, the authors determined that a 2:1 ratio of positive to negative samples and a mixture of on-policy data (from the model being trained) and off-policy data (from models like Claude-4) yielded the most robust results.

Datasets & Evaluation

The study leverages several key benchmarks and data sources to ensure robust generalization:

  • Evaluation: Primarily SWE-Bench Verified, a human-curated subset of 500 tasks designed to reliably assess software engineering capabilities.
  • Training Data: Approximately 100,000 trajectories collected from diverse sources, including SWE-Gym, SWE-rebench, SWE-smith, and R2E-Gym.
  • Generalization: The model was additionally tested on SWE-Bench Live, Multilingual, and Terminal Bench to verify it was not overfitting to a single benchmark.

Key Insights

  • TTS is Not Enough: The most striking finding is that Test-Time Scaling (the ability to pick the best of $N$ samples) is a poor proxy for RL success. A model can excel at ranking but fail to provide the stable, calibrated gradient signals required for reinforcement learning.
ROC Curve comparing Verifiers with similar TTS but different AUC
  • The Trinity of Metrics: To build a versatile reward model, one must optimize for three metrics simultaneously: TTS (top-1 accuracy), AUC (the ability to distinguish any good trajectory from any bad one), and Calibration (ensuring a score of 0.8 genuinely reflects an 80% chance of success).
  • Calibration Prevents Collapse: Poorly calibrated reward models inject massive variance into RL training. If a model is "overconfident" about a failing trajectory, it provides a dominant, incorrect signal that can cause the agent's policy to collapse.

Results

SWE-RM sets a new state-of-the-art standard for open-source software engineering agents:

Performance on SWE-Bench Verified
  • Test-Time Scaling (TTS): SWE-RM boosted Qwen3-Coder-Flash from 51.6% to 62.0% (+10.4%) and Qwen3-Coder-Max from 67.0% to 74.6% (+7.6%) on SWE-Bench Verified.
  • Reinforcement Learning: When utilized as a reward signal in RL, SWE-RM improved the resolve rate by 3 absolute points over traditional execution-based baselines.
  • Efficiency: Despite its 30B parameter size, the MoE architecture's 3B active parameters make it highly computationally efficient for large-scale deployment.

Limitations & Future Work

  • Memory Overhead: While inference is fast, the 256k context window significantly increases GPU memory usage compared to standard 32k models.
  • Architecture vs. Calibration: The authors employed an MoE backbone for compatibility with existing pipelines but noted that further exploration is needed to determine whether specific architectures (e.g., Dense vs. MoE) inherently provide better calibration.
  • Label Noise: Even with rigorous data cleaning, the "ground truth" labels still rely on unit tests, which are inherently imperfect. Future work could explore using sophisticated "meta-verifiers" to further sanitize training data.

Summary updated

BibTeX
@inproceedings{shum2026swe,
  author = {KaShun SHUM and Binyuan Hui and Jiawei Chen and Lei Zhang and X. W. and Jiaxi Yang and Yuzhen Huang and Junyang Lin and Junxian He},
  title = {{SWE-RM: Execution-free Feedback for Software Engineering Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=H9wMe1G76j},
}
Figure