MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-tuning
Not on the map. Why?
Abstract (arXiv)
Within the realm of software engineering, specialized tasks on code, such as program repair, present unique challenges, necessitating fine-tuning Large language models~(LLMs) to unlock state-of-the-art performance. Fine-tuning approaches proposed in the literature for LLMs on program repair tasks generally overlook the need to reason about the logic behind code changes, beyond syntactic patterns in the data. High-performing fine-tuning experiments also usually come at very high computational costs. With MORepair, we propose a novel perspective on the learning focus of LLM fine-tuning for program repair: we not only adapt the LLM parameters to the syntactic nuances of the task of code transformation (objective 1), but we also specifically fine-tune the LLM with respect to the logical reason behind the code change in the training data (objective 2). Such a multi-objective fine-tuning will instruct LLMs to generate high-quality patches. We apply MORepair to fine-tune four open-source LLMs with different sizes and architectures. Experimental results on function-level and repository-level repair benchmarks show that the implemented fine-tuning effectively boosts LLM repair performance by 11.4% to 56.0%. We further show that our fine-tuning strategy yields superior performance compared to the state-of-the-art approaches, including standard fine-tuning, Fine-tune-CoT, and RepairLLaMA.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Apr 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 6; 2026: 5.
13 papers.
Sort:
By area:
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 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
- 2025A Taxonomy of Prompt Defects in LLM Systemscited by 8
- 2025"My productivity is boosted, but ..." Demystifying Users' Perception on AI Coding Assistantscited by 4
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repaircited by 2
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agentscited by 1
- 2026BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Modelscited by 1
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generationcited by 1
- 2025When the Code Autopilot Breaks: Why LLMs Falter in Embedded Machine Learningcited by 0
1 more
- 2026Knowledge-Enhanced Agentic Vulnerability Repaircited by 0
- 2026Knowledge-Enhanced Agentic Vulnerability Repair1 Jul 2026
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generation28 May 2026
- 2026BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Models9 May 2026
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents20 Apr 2026
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repair18 Mar 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism15 Oct 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025A Taxonomy of Prompt Defects in LLM Systems17 Sep 2025
- 2025When the Code Autopilot Breaks: Why LLMs Falter in Embedded Machine Learning13 Sep 2025
- 2025"My productivity is boosted, but ..." Demystifying Users' Perception on AI Coding Assistants17 Aug 2025
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
1 more
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 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
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agentscited by 1
- 2026Knowledge-Enhanced Agentic Vulnerability Repaircited by 0
- 2026Knowledge-Enhanced Agentic Vulnerability Repair1 Jul 2026
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents20 Apr 2026
- 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
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2025A Taxonomy of Prompt Defects in LLM Systemscited by 8
- 2025"My productivity is boosted, but ..." Demystifying Users' Perception on AI Coding Assistantscited by 4
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repaircited by 2
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generationcited by 1
- 2025When the Code Autopilot Breaks: Why LLMs Falter in Embedded Machine Learningcited by 0
- 2026PassNet: Scaling Large Language Models for Graph Compiler Pass Generation28 May 2026
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repair18 Mar 2026
- 2025A Taxonomy of Prompt Defects in LLM Systems17 Sep 2025
- 2025When the Code Autopilot Breaks: Why LLMs Falter in Embedded Machine Learning13 Sep 2025
- 2025"My productivity is boosted, but ..." Demystifying Users' Perception on AI Coding Assistants17 Aug 2025
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
Similar, not cited
Close in wording, no citation either way
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinement
- 2025A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applications
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models
- 2025FeedbackEval: A Benchmark for Evaluating Large Language Models in Feedback-Driven Code Repair Tasks
- 2024Aligning the Objective of LLM-based Program Repair
- 2026Refine After Generation: Toward Correct and Concise Patches in LLM-based Program Repair
- 2025Towards Effectively Leveraging Execution Traces for Program Repair with Code LLMs
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Models