Pull Requests as a Training Signal for Repo-Level Code Editing
Not on the map. Why?
Abstract (arXiv)
Repository-level code editing requires models to understand complex dependencies and execute precise multi-file modifications across a large codebase. While recent gains on SWE-bench rely heavily on complex agent scaffolding, it remains unclear how much of this capability can be internalised via high-quality training signals. To address this, we propose Clean Pull Request (Clean-PR), a mid-training paradigm that leverages real-world GitHub pull requests as a training signal for repository-level editing. We introduce a scalable pipeline that converts noisy pull request diffs into Search/Replace edit blocks through reconstruction and validation, resulting in the largest publicly available corpus of 2 million pull requests spanning 12 programming languages. Using this training signal, we perform a mid-training stage followed by an agentless-aligned supervised fine-tuning process with error-driven data augmentation. On SWE-bench, our model significantly outperforms the instruction-tuned baseline, achieving absolute improvements of 13.6% on SWE-bench Lite and 12.3% on SWE-bench Verified. These results demonstrate that repository-level code understanding and editing capabilities can be effectively internalised into model weights under a simplified, agentless protocol, without relying on heavy inference-time scaffolding.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 7 Feb 2026.
Builds on
25 of 38 references.
References · 25
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 127
13 more
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agentscited by 80
- 2025SWE-bench Goes Live!cited by 74
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2022What Makes a Good Commit Message?cited by 19
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
- 2024CommitBench: A Benchmark for Commit Message Generationcited by 8
- 2025Towards A Generalist Code Embedding Model Based On Massive Data Synthesiscited by 8
Built on by
Citing papers per year: 2026: 1.
1 paper.