2024

Aligning the Objective of LLM-based Program Repair

Xu, Junjielong, Fu, Ying, Tan, Shin Hwei et al.

Understand

Large language models (LLMs) have achieved decent results on automated program repair (APR).

  • However, the next token prediction training objective of decoder-only LLMs (e.g., GPT-4) is misaligned with the masked span prediction objective of current infilling-style methods, which impedes LLMs from fully leveraging pre-trained knowledge for program repair.
  • In addition, while some LLMs can locate and repair bugs in certain functions using the related artifacts (e.g., test cases), existing methods still depend on statement-level fault localization methods to provide a list of buggy hunks for repair.
  • This restriction hinders LLMs from exploring potential patches beyond the given locations.

Reading the bibliography…