mlsanityData to 7 Oct 2026

Boosting Open-Source LLMs for Program Repair via Reasoning Transfer and LLM-Guided Reinforcement Learning

arXiv 2506.03921 ↗First posted 4 Jun 2025cs.SEcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Several closed-source LLMs have consistently outperformed open-source alternatives in program repair tasks, primarily due to their superior reasoning capabilities and extensive pre-training. This paper introduces Repairity, a novel three-stage methodology that significantly narrows this performance gap through reasoning extraction and reinforcement learning. Our approach: (1) systematically filters high-quality reasoning traces from closed-source models using correctness verification, (2) transfers this reasoning knowledge to open-source models via supervised fine-tuning, and (3) develops reinforcement learning with LLM-based feedback to further optimize performance. Empirical evaluation across multiple program repair benchmarks demonstrates that Repairity improves the performance of Qwen2.5-Coder-32B-Instruct, a base open source LLM, by 8.68% on average, reducing the capability gap with Claude-Sonnet3.7, a state-of-the-art closed-source model, from 10.05% to 1.35%. Ablation studies confirm that both reasoning extraction and LLM-guided reinforcement learning contribute significantly to these improvements. Our methodology generalizes effectively to additional code-related tasks, enabling organizations to leverage high-quality program repair capabilities while maintaining the customizability, transparency, and deployment flexibility inherent to open-source models.

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 26 of its 35 references that are in the map. First posted on arXiv 4 Jun 2025.

Builds on

26 of 35 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Qwen2.5-Coder Technical Report18 Sep
  2. 2023Teaching Large Language Models to Self-Debug11 Apr

Other references · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  8. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  9. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  10. 2017Deep reinforcement learning from human preferencescited by 3,846
  11. 2021Program Synthesis with Large Language Modelscited by 3,509
  12. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
12 more
  1. 2020Learning to summarize from human feedbackcited by 2,562
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  4. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  5. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  6. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  7. 2023The False Promise of Imitating Proprietary LLMscited by 254
  8. 2023Planning with Large Language Models for Code Generationcited by 179
  9. 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
  10. 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
  11. 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checkscited by 22
  12. 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-tuning
  2. 2026BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Models
  3. 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement
  4. 2025A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applications
  5. 2025Optimizing Token Consumption in LLMs: A Nano Surge Approach for Code Reasoning Efficiency
  6. 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learning
  7. 2024RePair: Automated Program Repair with Process-based Feedback
  8. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution