SWE-MILE: Asynchronous Potential-Induced Milestone Credit Assignment for Long-Horizon Software Engineering Agents
Organizations: MAIS, Institute of Automation, Chinese Academy of Sciences · School of Artificial Intelligence, University of Chinese Academy of Sciences · Tencent Inc., China
Abstract
Long-horizon software engineering (SWE) agents trained with reinforcement learning with verifiable rewards (RLVR) typically receive only terminal outcome supervision, making it difficult to distinguish productive actions from redundant exploration or functional regressions. We propose SWE-MILE, an asynchronous potential-induced milestone credit assignment framework that derives fine-grained process supervision from workflow runtime, without auxiliary reward models or external evaluators. SWE-MILE quantifies task-relevant file exposure and test-state alignment as navigation and verification potentials, respectively. Differences in these potentials attribute milestone progress and regressions to individual actions, while discounted backward credit propagates supervision to preceding steps. To efficiently acquire intermediate verification states, SWE-MILE further introduces asynchronous shadow probing, which replays repository-changing actions in an isolated sandbox and runs verification in parallel with the agent's primary interaction, largely hiding verification latency. The resulting process credit augments terminal outcome advantages and provides informative learning signals. Experiments on two representative long-horizon SWE tasks demonstrate substantial improvements in agent performance, highlighting workflow runtime signals as a practical source of process supervision for long-horizon SWE agents.
Figures & tables
| Proprietary Models | ||
| Models | SWE-bench Verified | SWE-bench Pro |
| GPT-5.4 / 5.5 / 5.6 Sol | – / – / – | 57.7 / 58.6 / 64.6 |
| Claude Opus 4.6 / 4.8 / 5 | 80.8 / 88.6 / 96.0 | 53.4 / 69.2 / 79.2 |
| Qwen-3.6-Max / 3.7-Max / 3.8-Max | – / 80.4 / – | 57.3 / 60.6 / 67.7 |
| DeepSeek V4-Flash / V4-Pro | 79.0 / 80.6 | 52.6 / 55.4 |
| GLM 4.6 / 5 / 5.2 | 68.0 / 77.8 / – | – / 55.1 / 62.1 |
| Proprietary Models | ||
| Models | Doc2Repo | NL2Repo-Bench |
| GPT-5.4 / 5.5 / 5.6 Sol | 61.64 / – / – | 41.3 / 50.7 / 56.8 |
| Claude Opus 4.6 / 4.8 / 5 | 60.39 / – / – | 49.8 / 69.7 / 75.3 |
| Qwen-3.6-Max / 3.7-Max / 3.8-Max | – / – / – | 42.9 / 47.2 / 55.9 |
| DeepSeek V4-Flash / V4-Pro | – / 57.20 | 39.4 / 38.5 |
| GLM-4.6 / 5 / 5.2 | – / 56.76 / – | 17.5 / 35.9 / 48.9 |
| Methods | SWE-bench Verified | SWE-bench Pro | ||||
| Avg@4 | Resp. Length | Turns | Avg@4 | Resp. Length | Turns | |
| Base Model | 53.6 | 47426 | 79.6 | 30.8 | 32649 | 85.8 |
| SWE-MILE | 63.8 | 25825 | 81.8 | 39.3 | 25094 | 78.4 |
| w/o milestone | 59.4 | 29359 | 115.5 | 34.7 | 29156 | 115.6 |
| w/o navigation | 62.0 | 26319 | 87.3 | 38.0 | 26731 | 87.8 |
| w/o verification | 60.7 | 28489 | 96.4 | 35.8 | 27580 | 95.7 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Appendix Sections | Contents |
| Appendix A | Related Work |
| Appendix B | Experimental Settings Details |
| Appendix C | Training Dynamics |
| Appendix D | Further Discussions |
| Appendix E | Prompts and Instructions |
| Hyperparameter | Issue Resolution | Whole-Repository Generation |
| Policy Optimization | ||
| Initial policy model | Qwen3.5-9B | Qwen3.5-35B-A3B |
| Optimizer | Adam | Adam |
| Learning rate | 1e-6 | 1e-6 |
| Learning rate schedule | Constant | Constant |
| Training Dataset | SWE-rebench V2 | DeNovoSWE |
| Parameter | Issue Resolution | Whole-Repository Generation |
| Sampling temperature | 0.6 | 0.6 |
| Top- | 0.95 | 0.95 |
| Top- | 20 | 20 |
| Maximum turns | 200 | 500 |
| Maximum context length (tokens) | 256k | 256k |
| Maximum output tokens per turn | 8192 | 16384 |
| Tool | Mode | Description |
| search | text | Find case-sensitive literal text with surrounding context. |
| symbol | Match symbols at identifier boundaries with surrounding context. | |
| file | Find file paths by filename substring. | |
| directory | Find directory paths by directory name substring. | |
| read_file | file | Read a line range with line numbers. |
| diff | Show the diff against Git HEAD, optionally scoped to a path. |
| Runtime Component | Mean | Unit | Samples |
| Agent generation - turn | 6.30 s | turn | 314,547 |
| Agent generation - traj | 704.84 s | rollout | 2,814 |
| Action execution | 5.30 s | turn | 314,547 |
| Primary agent interaction | 1,761.83 s | rollout | 2,814 |
| Shadow verifier probe | 308.77 s | probe | 74,673 |
| Primary final verifier | 298.90 s | rollout | 2,814 |
Software Engineering Agents
Software Engineering Agents are AI systems that use code, tools, and feedback to perform software development tasks.
See all 347 papers