Papers / LLMs
SWE-RL (2025)
SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution
Trained an open model to fix GitHub issues with reinforcement learning on public pull requests, rewarding patches by how closely they match the real fix.
Why it matters
Earlier open coding models were mostly trained to imitate GPT-4o or Claude. SWE-RL showed that the history of open-source software is itself a reward signal, and that reinforcement learning on real engineering work teaches reasoning that transfers, which is how frontier coding agents are now trained.
The idea
Collect 273,000 GitHub pull requests that fix a reported bug. Show the model the issue and the full files involved, let it think and then write search-and-replace edits, and reward it by how similar its patch is to the one the developers merged (−1 for a malformed answer). Optimize with GRPO, the reinforcement-learning method used for DeepSeek-R1. No execution and no outputs from stronger proprietary models are needed.
The result
Llama3-SWE-RL-70B resolved 41.0% of SWE-bench Verified with a simplified Agentless pipeline, the best for any model under 100B parameters, against 36.2% for the same model fine-tuned on synthetic data. Trained only on bug fixing, it also improved on math (MATH 63.2 to 73.7), HumanEval+ and MMLU, while the fine-tuned model got worse on average.
The data
SWE-bench
20232,294 GitHub issues from 12 Python projects; a fix counts only if the project's tests pass. (2 years earlier)
django__django-16002 "NaN" can be stored in DecimalField but cannot be retrieved Description (last modified by Xabier Bello) Same a…
HumanEval
2021164 hand-written Python problems graded by unit tests. (4 years earlier)
def how_many_times(string: str, substring: str) -> int:MATH
202112,500 competition problems (AMC, AIME and others) in 7 subjects and 5 difficulty levels. (4 years earlier)
What is the minimum value of the expression x^2+y^2+2x-4y+8 for real x and y?
MMLU
202015,908 four-option exam questions, from high-school math to law and medicine. (5 years earlier)
An increase in neuroticism later in life is a strong predictor of
Builds on
- Agentless (2024): A fixed three-step pipeline, with no agent deciding what to do next, that fixed more GitHub issues than open-source agents at a fraction of the cost.
- DeepSeek-R1 (2025): Reasoning learned through reinforcement learning on checkable answers, released with open weights.
