Lune

FSE2024顶会

Towards Better Graph Neural Network-Based Fault Localization through Enhanced Code Representation

Md Nakhla Rafi, Dong Jae Kim, An Ran Chen, Tse-Hsun (Peter) Chen, Shaowei Wang

摘要

Automatic software fault localization plays an important role in software quality assurance by pinpointing faulty locations for easier debugging. Coverage-based fault localization is a commonly used technique, which applies statistics on coverage spectra to rank faulty code based on suspiciousness scores. However, statisticsbased approaches based on formulae are often rigid, which calls for learning-based techniques. Amongst all, Grace , a graph-neural network (GNN) based technique has achieved state-of-the-art due to its capacity to preserve coverage spectra, i.e., test-to-source coverage relationships, as precise abstract syntax-enhanced graph representation, mitigating the limitation of other learning-based technique which compresses the feature representation. However, such representation is not scalable due to the increasing complexity of software, correlating with increasing coverage spectra and AST graph, making it challenging to extend, let alone train the graph neural network in practice. In this work, we proposed a new graph representation, DepGraph , that reduces the complexity of the graph representation by <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn70</mml:mn> mml:mo%</mml:mo> </mml:math> in nodes and edges by integrating the interprocedural call graph in the graph representation of the code. Moreover, we integrate additional features—code change information—into the graph as attributes so the model can leverage rich historical project data. We evaluate DepGraph using Defects4j 2.0.0, and it outperforms Grace by locating <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn20</mml:mn> mml:mo%</mml:mo> </mml:math> more faults in Top-1 and improving the Mean First Rank (MFR) and the Mean Average Rank (MAR) by over <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn50</mml:mn> mml:mo%</mml:mo> </mml:math> while decreasing GPU memory usage by <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn44</mml:mn> mml:mo%</mml:mo> </mml:math> and training/inference time by <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn85</mml:mn> mml:mo%</mml:mo> </mml:math> . Additionally, in cross-project settings, DepGraph surpasses the state-of-the-art baseline with a <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn42</mml:mn> mml:mo%</mml:mo> </mml:math> higher Top-1 accuracy, and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn68</mml:mn> mml:mo%</mml:mo> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mn65</mml:mn> mml:mo%</mml:mo> </mml:math> improvement in MFR and MAR, respectively. Our study demonstrates DepGraph ’s robustness, achieving state-of-the-art accuracy and scalability for future extension and adoption.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • PAFL: Enhancing Fault Localizers by Leveraging Project-Specific Fault Patterns 引用了 Fault Localization with Code Coverage Representation Learning
  • PAFL: Enhancing Fault Localizers by Leveraging Project-Specific Fault Patterns 引用了 Boosting coverage-based fault localization via graph-based representation learning
  • PAFL: Enhancing Fault Localizers by Leveraging Project-Specific Fault Patterns 引用了 Can automated program repair refine fault localization? a unified debugging approach
  • Order Matters! An Empirical Study on Large Language Models' Input Order Bias in Software Fault Localization 引用了 Boosting coverage-based fault localization via graph-based representation learning
  • Boosting coverage-based fault localization via graph-based representation learning 引用了 Can automated program repair refine fault localization? a unified debugging approach
  • Boosting coverage-based fault localization via graph-based representation learning 引用了 On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems
  • Branch-Level Fault Localization in ADS Planning via Temporal Coverage Analysis 引用了 Fault Localization with Code Coverage Representation Learning
  • Branch-Level Fault Localization in ADS Planning via Temporal Coverage Analysis 引用了 PAFL: Enhancing Fault Localizers by Leveraging Project-Specific Fault Patterns
  • On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair Systems 引用了 Can automated program repair refine fault localization? a unified debugging approach
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. PAFL: Enhancing Fault Localizers by Leveraging Project-Specific Fault PatternsDonguk Kim, Minseok Jeon, Doha Hwang, Hakjoo OhOOPSLA 2025 · 1 次引用
  2. Order Matters! An Empirical Study on Large Language Models' Input Order Bias in Software Fault LocalizationMd Nakhla Rafi, Dong Jae Kim, Tse-Hsun (Peter) Chen, Shaowei WangICSE 2026
  3. Branch-Level Fault Localization in ADS Planning via Temporal Coverage AnalysisSangmin Woo, Dohyun Kim, Donghwan Shin, Yongdae KimISSTA 2026

它引用的 Paper7

  1. Boosting coverage-based fault localization via graph-based representation learningYiling Lou, Qihao Zhu, Jinhao Dong, Xia Li 等FSE 2021 · 157 次引用
  2. Fault Localization with Code Coverage Representation LearningYi Li, Shaohua Wang, Tien N. NguyenICSE 2021 · 120 次引用
  3. Can automated program repair refine fault localization? a unified debugging approachYiling Lou, Ali Ghanbari, Xia Li, Lingming Zhang 等ISSTA 2020 · 99 次引用
  4. DeepLV: Suggesting Log Levels Using Ordinal Based Neural NetworksZhenhao Li, Heng Li, Tse-Hsun Peter Chen, Weiyi ShangICSE 2021 · 44 次引用
  5. On the Effectiveness of Unified Debugging: An Extensive Study on 16 Program Repair SystemsSamuel Benton, Xia Li, Yiling Lou, Lingming ZhangASE 2020 · 35 次引用

相关 Paper

  1. How Useful is Code Change Information for Fault Localization in Continuous Integration?An Ran Chen, Tse-Hsun (Peter) Chen, Junjie ChenASE 2022 · 9 次引用
  2. DEAR: A Novel Deep Learning-based Approach for Automated Program RepairYi Li, Shaohua Wang, Tien N. NguyenICSE 2022 · 91 次引用
  3. Improving Spectrum-Based Localization of Multiple Faults by Iterative Test Suite ReductionDylan Callaghan, Bernd FischerISSTA 2023 · 16 次引用
  4. Learning to Construct Better Mutation FaultsZhao Tian, Junjie Chen, Qihao Zhu, Junjie Yang 等ASE 2022 · 35 次引用
  5. The best of both worlds: integrating semantic features with expert features for defect prediction and localizationChao Ni, Wei Wang, Kaiwen Yang, Xin Xia 等FSE 2022 · 76 次引用
黄昏的海面,两侧是细线勾勒的悬崖