Reproduce “SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux, Lingming Zhang, Daniel Fried, Gabriel Synnaeve, Rishabh Singh and 1 more

SWE-RL trains a code model from GitHub issues paired with relevant code and merged pull-request patches. It rewards edits by sequence similarity to reference patches and penalizes malformed output. On SWE-bench Verified, Llama3-SWE-RL-70B reaches 41.0% pass@1, versus 36.2% for a matched SFT baseline using Agentless Mini. This resolve rate reflects the reported evaluation setup, not evidence of lower inference cost.

Key insights

  • Reinforcement learning with a simple patch similarity reward effectively enhances LLM reasoning for complex software engineering tasks, demonstrating superior core repair capabilities compared to supervised fine-tuning.
  • RL training on a specific, complex domain like issue-solving can induce generalized reasoning skills, leading to improved performance across diverse, out-of-domain tasks such as mathematics and general language understanding.
  • Qualitative analysis of LLM outputs revealed emergent reasoning patterns, including self-reflection and multi-approach exploration, suggesting deeper cognitive development through RL.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.