Skip to main navigation Skip to search Skip to main content

Enhancing Code Language Models for Program Repair by Curricular Fine-tuning Framework

  • Faculty of Computing, Harbin Institute of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Automated program repair (APR) is a key technique for enhancing software maintenance productivity by fixing buggy code automatically. Recently, large code language models (CLMs) have exhibited impressive capabilities in code generation. However, for complex programming tasks, especially program repair, the success rate of CLMs is still low. One of the reasons is that CLMs are typically developed for general purpose and their potential for APR applications has yet to be fully explored. In this paper, we propose APRFiT, a general curricular fine-tuning framework that improves the success rate of CLMs for APR. Firstly, APRFiT generates syntactically diverse but semantically equivalent bug-fixing programs via code augmentation operators to enrich the diversity of bug-fixing dataset automatically. Secondly, APRFiT designs a curriculum learning-based mechanism to help CLMs develop deep understanding of program semantics from these augmented bug-fixing code variants and improve the effectiveness of fine-tuning for APR tasks. We implement APRFiT on different CLMs and evaluate them on Bugs2Fix small and medium datasets. The extensive experiments demonstrate that, the existing CLMs implemented with APRFiT substantially outperform original models and generate 2.5 to 14.5 percent more correct patches than baselines both effectively and efficiently.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages136-146
Number of pages11
ISBN (Electronic)9798350327830
DOIs
StatePublished - 2023
Externally publishedYes
Event39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023 - Bogota, Colombia
Duration: 1 Oct 20236 Oct 2023

Publication series

NameProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023

Conference

Conference39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
Country/TerritoryColombia
CityBogota
Period1/10/236/10/23

Keywords

  • Curriculum Learning
  • Large Language Models of Code
  • Program Repair

Fingerprint

Dive into the research topics of 'Enhancing Code Language Models for Program Repair by Curricular Fine-tuning Framework'. Together they form a unique fingerprint.

Cite this