次回の更新記事:【論文著者監修・コメント】AIエージェントへの人間…(公開予定日:2026年07月27日)
AIDB Daily Papers

LLMによるユニットテスト生成のための知識誘導型合成バグフィードバック

原題: Knowledge-Guided Synthetic Bug Feedback for LLM-Based Unit Test Generation
著者: Ziheng Wang, Maike Li, Chen Zhi
公開日: 2026-07-13 | 分野: LLM ソフトウェアエンジニアリング cs.SE テスト生成 バグ検出

※ 日本語タイトル・ポイントはAIによる自動生成です。正確な内容は原論文をご確認ください。

ポイント

  • 過去のバグ事例から抽出したメカニズムを、LLMがテストを生成する際のフィードバック対象として活用する手法を提案した。
  • 実際のバグの構造的・意味的特徴を再利用可能かつ実行可能な形式に変換することで、テスト生成の質を向上させた点が新しい。
  • Defects4Jを用いた評価において、既存のテスト生成手法と比較して実際のバグ検出能力が大幅に向上することが確認された。

Abstract

Large language models (LLMs) have opened new opportunities for unit test generation, but executable tests do not necessarily reveal real defects. This paper studies how historical real-bug mechanisms can be transformed into executable feedback targets for LLM-based unit test generation. The proposed framework constructs structural and semantic representations of real-bug records, retrieves mechanisms applicable to a focal method, and instantiates them as synthetic bugs that guide iterative test enhancement. We evaluate the approach on method-level real-bug detection tasks from Defects4J and show that mechanism-guided synthetic-bug feedback improves real-bug detection over execution-, coverage-, mutation-, knowledge-, and search-based baselines. The results suggest that organizing real-bug mechanisms as retrievable and executable feedback targets is an effective way to guide generated tests toward bug-triggering inputs and behavioral oracles.

Paper AI Chat

この論文のPDF全文を対象にAIに質問できます。

質問の例:

AIチャット機能を利用するには、ログインまたは会員登録(無料)が必要です。

会員登録 / ログイン

関連するAIDB記事