[논문 리뷰] Impact of Code Language Models on Automated Program Repair
본 논문은 네 가지 APR 벤치마크에서 열 개의 코드 언어 모델(CLMs)을 평가하여 CLMs가 최첨단 DL 기반 APR 방법을 능가할 수 있으며, APR 데이터로 CLMs을 미세조정하면 상당한 향상을 얻을 수 있음을 보인다.
Automated program repair (APR) aims to help developers improve software reliability by generating patches for buggy programs. Although many code language models (CLM) are developed and effective in many software tasks such as code completion, there has been little comprehensive, in-depth work to evaluate CLMs' fixing capabilities and to fine-tune CLMs for the APR task. Firstly, this work is the first to evaluate ten CLMs on four APR benchmarks, which shows that surprisingly, the best CLM, as is, fixes 72% more bugs than the state-of-the-art deep-learning (DL)-based APR techniques. Secondly, one of the four APR benchmarks was created by us in this paper to avoid data leaking for a fair evaluation. Thirdly, it is the first work to fine-tune CLMs with APR training data, which shows that fine-tuning brings 31%-1,267% improvement to CLMs and enables them to fix 46%-164% more bugs than existing DL-based APR techniques. Fourthly, this work studies the impact of buggy lines, showing that CLMs, as is, cannot make good use of the buggy lines to fix bugs, yet fine-tuned CLMs could potentially over-rely on buggy lines. Lastly, this work analyzes the size, time, and memory efficiency of different CLMs. This work shows promising directions for the APR domain, such as fine-tuning CLMs with APR-specific designs, and also raises awareness of fair and comprehensive evaluations of CLMs and calls for more transparent reporting of open-source repositories used in the pre-training data to address the data leaking problem.
연구 동기 및 목표
- 실세계 및 공정한 APR 벤치마크에서 열 개의 코드 언어 모델의 수정 능력을 평가한다.
- APR 학습 데이터로 CLMs을 미세조정하는 것이 수리 성능을 향상시키는지 평가한다.
- 버그가 있는 줄이 CLM 기반 수정에 어떤 영향을 미치는지 분석하고 이를 DL 기반 APR 기술과 비교한다.
- 다양한 규모의 CLMs에서 크기, 시간, 메모리 효율성을 연구한다.
제안 방법
- 네 가지 APR 벤치마크(Defects4J v1.2, Defects4J v2.0, QuixBugs, HumanEval-Java)에서 열 개의 CLMs(PLBART, CodeT5, CodeGen, InCoder)를 평가한다.
- HumanEval을 Java로 변환하고 버그를 주입하여 공정하고 누수 없는 벤치마크(HumanEval-Java)를 생성한다.
- CLMs를 네 가지 최첨단 DL 기반 APR 기법(CURE, RewardRepair, Recoder, KNOD)과 비교한다.
- 버그가 있는 줄을 포함하거나 포함하지 않는 두 가지 프롬프트로 CLMs를 테스트하여 버그 맥락에 대한 의존성을 측정한다.
- 큰 APR 학습 세트(143,666 개체; 129,300 학습, 14,366 검증)에서 열 개의 CLMs를 미세조정하고 재평가한다.
- APR 작업 중 CLMs의 모델 크기, 시간, 메모리 효율성을 분석한다.
실험 결과
연구 질문
- RQ1RQ1: 사전 학습된 CLMs가 실제 Java 버그 벤치마크에서 DL 기반 APR 기술과 비교하여 어떤 성능을 보이는가?
- RQ2RQ2: APR 학습 데이터로 CLMs을 미세조정하는 것이 버그 수정 성능과 데이터 크기 민감도에 어떤 영향을 미치는가?
- RQ3RQ3: 서로 다른 크기의 CLMs가 패치 생성 시간, 메모리 사용 및 컴파일 가능성 면에서 어떻게 비교되는가?
- RQ4RQ4: 프롬프트에 버그가 있는 줄을 제공하는 것이 CLM 성능에 어떤 영향을 미치는가?
- RQ5RQ5: CLM 기반 APR 연구에서 공정한 평가 및 데이터 누수에 대한 시사점은 무엇인가?
주요 결과
- CLMs는 미세조정 없이도 네 가지 벤치마크에서 최첨단 DL 기반 APR 기술보다 더 많은 버그를 수정한다.
- 가장 우수한 비미세조정 CLM인 InCoder-6B는 KNOD(최고의 DL 기반 APR 방법)보다 72% 더 많은 105개의 버그를 수정한다.
- 프롬프트에 버그가 있는 줄을 제공하면 일반적으로 CLM의 정답 수정 수가 감소하지만, 일부 고유한 수정이 가능하게 된다.
- APR 데이터로 CLMs을 미세조정하면 31%–1,267%의 개선이 나타나며, 미세조정된 CLMs가 DL 기반 APR 기술보다 평균적으로 46%–164% 더 우수하다.
- CodeT5와 CodeGen은 10,000개의 APR 학습 인스턴스 이후 최상위 수정 능력을 달성하고, InCoder는 50,000개의 학습 인스턴스에서 가장 큰 혜택을 받는다; 이 지점을 넘는 데이터 증가가 일부 모델의 수정 수를 감소시키기도 한다.
- 크기 효율성 측면에서 CodeT5와 InCoder가 유리하며, CodeT5, PLBART, InCoder가 CodeGen보다 더 나은 시간/메모리 특성을 보인다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.