Skip to main content
QUICK REVIEW

[論文レビュー] Impact of Code Language Models on Automated Program Repair

Nan Jiang, Kevin Liu|arXiv (Cornell University)|Feb 10, 2023
Software Testing and Debugging TechniquesComputer Science被引用数 14
ひとこと要約

ten code language models (CLMs) を四つの APR ベンチマークで評価し、CLMs が最先端の DL ベースの APR 手法を上回る可能性があること、そして APR データで CLMs をファインチューニングすると substantial improvements をもたらすことを示している。

ABSTRACT

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 ベンチマークにおける ten のコード言語モデルの修正能力を評価する。
  • APR トレーニングデータで CLMs をファインチューニングすることが修復性能を改善するかを評価する。
  • バグ行が CLM ベースの修正に与える影響を分析し、DL ベースの APR 手法と比較する。
  • 異なるスケールの CLMs のサイズ、時間、メモリ効率を調査する。

提案手法

  • PLBART、CodeT5、CodeGen、InCoder の ten CLMs を four APR ベンチマーク(Defects4J v1.2、Defects4J v2.0、QuixBugs、HumanEval-Java)で評価する。
  • HumanEval を Java に変換してバグを注入することで、公正でリークのないベンチマーク(HumanEval-Java)を作成する。
  • CLMs を four つの最先端 DL ベース APR 手法(CURE、RewardRepair、Recoder、KNOD)と比較する。
  • buggy lines の有無を含む二つのプロンプトで CLMs をテストし、 buggy コンテキストへの依存を測定する。
  • 大規模な APR トレーニングセット(143,666 件;129,300 訓練、14,366 検証)で ten CLMs をファインチューニングし、再評価する。
  • APR タスク中の CLMs のモデルサイズ、時間、メモリ効率を分析する。

実験結果

リサーチクエスチョン

  • RQ1RQ1: プリトレーニング済みの CLMs は、DL ベース APR 手法と比較して実世界の Java バグベンチマークでどのようにパフォーマンスを発揮するか?
  • RQ2RQ2: APR トレーニングデータで CLMs をファインチューニングすると、バグ修復性能とデータサイズ感度にどのような影響があるか?
  • RQ3RQ3: 異なるサイズの CLMs は、パッチ生成時間、メモリ使用量、コンパイル可能性の点でどのように比較されるか?
  • RQ4RQ4: プロンプトの一部として buggy lines を提供することは CLM のパフォーマンスにどのような影響を与えるか?
  • RQ5RQ5: CLM ベースの APR 研究における公正な評価とデータ漏洩の意味は何か?

主な発見

  • ファインチューニングなしの CLMs は、4つのベンチマーク上で最先端の DL ベース APR 手法よりも総じて多くのバグを修正する。
  • 最良の未調整 CLM である InCoder-6B は 105 バグを修正し、トップ DL ベース APR 手法 KNOD より 72% 多い。
  • プロンプトに buggy lines を含めると、一般に CLMs の正しい修正数が減少するが、いくつかの独自の修正が有効になる。
  • APR データで CLMs をファインチューニングすると 31%–1,267% の改善をもたらし、ファインチューニングされた CLMs は DL ベース APR 手法を平均で 46%–164% 上回る。
  • CodeT5 と CodeGen は 10,000 の APR 訓練例の後で最高の修正能力を発揮し、InCoder は 50,000 の訓練例で最も恩恵を受ける; これら点を超えてデータを増やすと一部のモデルの修正数が減少することがある。
  • サイズ効率性は CodeT5 と InCoder を支持し、CodeT5、PLBART、InCoder は CodeGen より時間・メモリプロファイルが優れている。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。