错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Fine-Tuning CodeLlama to Fix Bugs

  • Balázs Szalontai,
  • András Vadász,
  • Tamás Márton,
  • Balázs Pintér,
  • Tibor Gregorics

摘要

Fixing bugs in the wild is a challenging task. Automating it would help software development immensely. Recently, Deep Learning-based approaches, including Large Language Models, have made great progress in this direction. Unfortunately, not many of these models have been open sourced, and proprietary models often outperform open-sourced ones. In this paper we investigate whether the recently open-sourced model, CodeLlama, can be improved through fine-tuning to be competitive on the bugfixing task. We investigate two kinds of tasks: singular bugfixing and whole program bugfixing. For fine-tuning, we use code from GitHub for the former and Project CodeNet published by IBM Research for the latter. The base and fine-tuned models are evaluated on the QuixBugs dataset for singular bugfixing and a collection of incorrect assignment submissions coded by students for whole program bugfixing. We find that our fine-tuned models outperform ChatGPT (GPT-3.5) on singular bugfixing. On whole program bugixing, they come close in the number of incorrect programs fixed while corrupting only half as many.