From Historical Patches to Repair Plans: Outcome-Conditioned Reasoning for Repository-Level Program Repair
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Repository-level automated program repair (APR) requires long-horizon reasoning over interdependent decisions. However, most LLM-based approaches reconstruct repair reasoning independently for each issue, failing to reuse successful patterns from prior repairs, even though real-world repositories contain many related issues with shared structure or constraints. Existing methods typically rely on forward exploration, which operates under outcome uncertainty, incurs substantial inference-time overhead, and can drift from the final correct patch. We propose Conditional Reasoning Distillation (ConRAD), which leverages in-repository resolved issues by reconstructing repair reasoning backward from verified patches and distilling outcome-consistent, stage-wise repair reasoning plans. Injected at inference time, these plans guide fault localization and patch generation, replacing open-ended exploration with constrained inference without fine-tuning or search. On SWE-Bench Lite, ConRAD improves Pass@1 by 10.4% (GPT-4o), 8.6% (DeepSeek-V3), and 10.3% (GPT-5), demonstrating a scalable inference-time alternative to forward exploration for long-horizon APR.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 27 of its 58 references that are in the map. First posted on arXiv 30 Jan 2026.
Builds on
27 of 58 references.
Closest ancestors · 4
Same direction, newest first
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
- 2025MCTS-Refined CoT: High-Quality Fine-Tuning Data for LLM-Based Repository Issue Resolution15 Jun
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuning27 Feb
Other references · 23
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2024DeepSeek-V3 Technical Reportcited by 724
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2023In-context Example Selection with Influencescited by 60
11 more
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 57
- 2024MASAI: Modular Architecture for Software-engineering AI Agentscited by 49
- 2025EXPEREPAIR: Dual-Memory Enhanced LLM-based Repository-Level Program Repaircited by 34
- 2025Reverse-Engineered Reasoning for Open-Ended Generationcited by 32
- 2025SWE-Mirror: Scaling Issue-Resolving Datasets by Mirroring Issues Across Repositoriescited by 30
- 2025Enhancing repository-level software repair via repository-aware knowledge graphscited by 26
- 2023Meta Prompting for AI Systemscited by 16
- 2025Lingxi: Repository-Level Issue Resolution Framework Enhanced by Procedural Knowledge Guided Scalingcited by 11
- 2025Repair Ingredients Are All You Need: Improving Large Language Model-Based Program Repair via Repair Ingredients Searchcited by 8
- 2025PSearch: Search-based Patch Generation in the Era of LLM-based Automated Program Repaircited by 4
- 2025RelRepair: Enhancing Automated Program Repair by Retrieving Relevant Codecited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Reasoning Distillation for Lightweight Automated Program Repair
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair
- 2025HAFixAgent: History-Aware Program Repair Agent
- 2025T3: Multi-level Tree-based Automatic Program Repair with Large Language Models
- 2026EvidenT: An Evidence-Preserving Framework for Iterative System-Level Package Repair ↗
- 2026RGFL: Reasoning Guided Fault Localization for Automated Program Repair Using Large Language Models
- 2025Automated Repair of C Programs Using Large Language Models
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement