Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Models
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Motivated by the success of general-purpose large language models (LLMs) in software patching, recent works started to train specialized patching models. Most works trained one model to handle the end-to-end patching pipeline (including issue localization, patch generation, and patch validation). However, it is hard for a small model to handle all tasks, as different sub-tasks have different workflows and require different expertise. As such, by using a 70 billion model, SOTA methods can only reach up to 41% resolved rate on SWE-bench-Verified. Motivated by the collaborative nature, we propose Co-PatcheR, the first collaborative patching system with small and specialized reasoning models for individual components. Our key technique novelties are the specific task designs and training recipes. First, we train a model for localization and patch generation. Our localization pinpoints the suspicious lines through a two-step procedure, and our generation combines patch generation and critique. We then propose a hybrid patch validation that includes two models for crafting issue-reproducing test cases with and without assertions and judging patch correctness, followed by a majority vote-based patch selection. Through extensive evaluation, we show that Co-PatcheR achieves 46% resolved rate on SWE-bench-Verified with only 3 x 14B models. This makes Co-PatcheR the best patcher with specialized models, requiring the least training resources and the smallest models. We conduct a comprehensive ablation study to validate our recipes, as well as our choice of training data number, model size, and testing-phase scaling strategy.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 36 of its 61 references that are in the map. First posted on arXiv 25 May 2025.
Builds on
36 of 61 references.
Closest ancestors · 6
Same direction, newest first
- 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMs15 Apr
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuning27 Feb
- 2025S*: Test Time Scaling for Code Generation20 Feb
- 2024Qwen2.5-Coder Technical Report18 Sep
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement22 Feb
Other references · 30
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2025s1: Simple test-time scalingcited by 1,341
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
18 more
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 132
- 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 91
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 90
- 2024SpecRover: Code Intent Extraction via LLMscited by 72
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 71
- 2024Instruction Tuning for Secure Code Generationcited by 68
- 2025Critique Fine-Tuning: Learning to Critique is More Effective than Learning to Imitatecited by 63
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 61
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2024Constrained Decoding for Secure Code Generationcited by 37
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 25
- 2024Policy Filtration for RLHF to Mitigate Noise in Reward Modelscited by 22
- 2025PatchPilot: A Cost-Efficient Software Engineering Agent with Early Attempts on Formal Verificationcited by 22
- 2025Learning to Generate Unit Tests for Automated Debuggingcited by 17
- 2024HexaCoder: Secure Code Generation via Oracle-Guided Synthetic Training Datacited by 16
- 2025SEAlign: Alignment Training for Software Engineering Agentcited by 11
- 2024InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instructcited by 8
- 2024Enhancing Large Language Models for Text-to-Testcase Generationcited by 7
Built on by
Citing papers per year: 2025: 5; 2026: 7.
12 papers.
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 22
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 11
- 2026MemGovern: Enhancing Code Agents through Learning from Governed Human Experiencescited by 10
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026OpenSage: Self-programming Agent Generation Enginecited by 4
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repaircited by 3
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learningcited by 0
- 2026Evaluating LLMs Code Reasoning Under Real-World Contextcited by 0
- 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agentscited by 0
- 2026SelfOp: An Optimization Algorithm for Self-Improving Security Agents19 Sep 2026
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair26 May 2026
- 2026Evaluating LLMs Code Reasoning Under Real-World Context14 Apr 2026
- 2026OpenSage: Self-programming Agent Generation Engine18 Feb 2026
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning29 Jan 2026
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle27 Jan 2026
- 2026MemGovern: Enhancing Code Agents through Learning from Governed Human Experiences11 Jan 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec 2025
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks2 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement
- 2025RePaCA: Leveraging Reasoning Large Language Models for Static Automated Patch Correctness Assessment
- 2025Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles
- 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
- 2026LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models
- 2025OrcaLoca: An LLM Agent Framework for Software Issue Localization
- 2026Refine After Generation: Toward Correct and Concise Patches in LLM-based Program Repair