Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,6 @@ pinned: false
|
|
8 |
---
|
9 |
Model/Data associated with Paper:
|
10 |
|
11 |
-
|
12 |
<h1 align="center"> Training Software Engineering Agents and Verifiers with SWE-Gym </h1>
|
13 |
|
14 |
<p align="center">
|
@@ -26,9 +25,83 @@ Model/Data associated with Paper:
|
|
26 |
<sub><sup>*</sup>Equal contribution, <sup>^</sup>Equal supervision</sub>
|
27 |
</p>
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
|
31 |
|
|
|
32 |
|
33 |
-
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
Model/Data associated with Paper:
|
10 |
|
|
|
11 |
<h1 align="center"> Training Software Engineering Agents and Verifiers with SWE-Gym </h1>
|
12 |
|
13 |
<p align="center">
|
|
|
25 |
<sub><sup>*</sup>Equal contribution, <sup>^</sup>Equal supervision</sub>
|
26 |
</p>
|
27 |
|
28 |
+
<p align="center">
|
29 |
+
<a href="assets/paper.pdf">📃 Paper</a>
|
30 |
+
•
|
31 |
+
<a href="https://huggingface.co/SWE-Gym" >🤗 Data & Models</a>
|
32 |
+
</p>
|
33 |
+
|
34 |
+
We present **SWE-Gym**, the first environment for training real-world software engineering agents.
|
35 |
+
We use it to train strong LM agents that achieve state-of-the-art open results on SWE-Bench, with early, promising scaling characteristics as we increase training and inference-time compute.
|
36 |
+
|
37 |
+
<p align="center">
|
38 |
+
<img src="https://github.com/SWE-Gym/SWE-Gym/raw/main/assets/images/teaser.jpg" width="100%" alt="teaser">
|
39 |
+
</p>
|
40 |
+
|
41 |
+
|
42 |
+
---
|
43 |
+
|
44 |
+
Progress in agents for software engineering has been limited by the lack of training environments that both include rigorous verification for reinforcement learning and cover the expansive tasks encountered in real-world repository-level engineering.
|
45 |
+
|
46 |
+
We introduce SWE-Gym: An Open Environment for Training Software Engineering Agents & Verifiers.
|
47 |
+
Our baselines achieve new open SOTA - 32%/26% on SWE-Bench Verified/Lite, with promising scaling trends.
|
48 |
+
|
49 |
+

|
50 |
+
*SWE-Gym enables scalable improvements for software engineering agents at both training and inference time. Our current results is primarity bottlenecked by training and inference compute, rather than the size of our environment.*
|
51 |
+
|
52 |
+
## SWE-Gym Environment
|
53 |
+
|
54 |
+
We create SWE-Gym, the first environment for training SWE agents, with **2.4K real tasks from 11 Python repos** & a Lite split of 234 instances. SWE-Gym combines real-world Python tasks, repository context, executable environments, and test verification to train agents for solving software engineering problems.
|
55 |
+
|
56 |
+

|
57 |
+
|
58 |
+
|
59 |
+
## SWE-Gym trains LMs as agents
|
60 |
+
|
61 |
+
When fine-tuned on less than 500 agent-environment interaction trajectories sampled from it from GPT-4o and Claude 3.5 Sonnet, we achieve **+14%** absolute gains on SWE-Bench Verified with an 32B LM-powered OpenHands agent.
|
62 |
+
|
63 |
+

|
64 |
+
|
65 |
+
|
66 |
+
## SWE-Gym enables self-improvement
|
67 |
+
|
68 |
+
SWE-Gym is also effective across agent scaffolds. With rejection sampling fine-tuning and MeatlessTools scaffold, our 32B and 7B models achieve 20% and 10% respectively on SWE-Bench Lite through self-improvement.
|
69 |
+
|
70 |
+
<p align="center">
|
71 |
+
<img src="https://github.com/SWE-Gym/SWE-Gym/raw/main/assets/images/ml-agent.jpg" width="80%" alt="Moatless self-improvement">
|
72 |
+
</p>
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
## SWE-Gym enables inference-time scaling
|
77 |
+
|
78 |
+
SWE-Gym enables inference-time scaling through verifiers trained on agent trajectories.
|
79 |
+
These verifiers identify most promising solutions via best-of-n selection, together with our learned agents, they achieve 32%/26% on SWE-Bench Verified/Lite, a new open SoTA.
|
80 |
+
|
81 |
+
|
82 |
+

|
83 |
+
*Inference Time Scaling for Moatless Agent*
|
84 |
+
|
85 |
+

|
86 |
+
*Inference Time Scaling for OpenHands Agent*
|
87 |
+
|
88 |
+
|
89 |
+
## Our baselines on SWE-Gym shows strong scaling trends
|
90 |
+
|
91 |
+
Lastly, our ablations reveal strong scaling trends - performance is now bottlenecked by train and inference compute, rather than the size of our dataset. Pushing and improving these scaling trends further is an exciting direction for future work.
|
92 |
+
|
93 |
+

|
94 |
|
95 |
+
## Reproducing Results
|
96 |
|
97 |
+
See [docs/OpenHands.md](docs/OpenHands.md) and [docs/MoatlessTools.md](docs/MoatlessTools.md) for instructions on reproducing results with our training and inference-time results for OpenHands and MoatlessTools agents.
|
98 |
|
99 |
+
## 📚 Citation
|
100 |
|
101 |
+
```bibtex
|
102 |
+
@misc{pan2024swegym,
|
103 |
+
title={Training Software Engineering Agents and Verifiers with {SWE-Gym}},
|
104 |
+
author={Pan, Jiayi and Wang, Xingyao and Neubig, Graham and Jaitly, Navdeep and Ji, Heng and Suhr, Alane and Zhang, Yizhe},
|
105 |
+
year={2024},
|
106 |
+
}
|
107 |
+
```
|