用于故障定位的主上下文感知扩散引导数据增强
Principal Context-aware Diffusion Guided Data Augmentation for Fault Localization
AI总结:
提出 PCD-DAug 方法,结合程序切片与主成分分析构建主上下文,并利用条件扩散模型生成合成的失败测试用例以解决类别不平衡问题,从而显著提升六种故障定位方法的有效性。
摘要:
测试用例对于进行有效的故障定位(FL)是不可或缺的。然而,实际中的测试用例存在严重的类别不平衡问题,即失败测试用例(即少数类)的数量远少于通过测试用例(即多数类)。失败和通过测试用例之间严重的类别不平衡阻碍了 FL 的有效性。为了解决这个问题,我们提出了 PCD-DAug:一种 Principal Context-aware Diffusion guided Data Augmentation 方法,通过生成合成的失败测试用例来改进 FL。PCD-DAug 首先将程序切片与主成分分析相结合,构建一个主上下文,该上下文通过统计程序依赖展示一组语句如何影响错误输出。然后,PCD-DAug 设计了一个条件扩散模型,从主上下文中学习,以生成合成的失败测试用例,并为 FL 获取类别平衡的数据集。我们在六种最先进的 FL 方法上进行了大规模实验,并将 PCD-DAug 与六种数据增强基线进行了比较。结果表明,PCD-DAug 显著提高了 FL 的有效性,例如,在 Top-1、Top-3 和 Top-5 指标下,六种 FL 方法分别实现了 383.83%、227.08% 和 224.19% 的平均改进。
英文摘要:
Test cases are indispensable for conducting effective fault localization (FL). However, test cases in practice are severely class imbalanced, i.e. the number of failing test cases (i.e. minority class) is much less than that of passing ones (i.e. majority class). The severe class imbalance between failing and passing test cases have hindered the FL effectiveness. To address this issue, we propose PCD-DAug: a Principal Context-aware Diffusion guided Data Augmentation approach that generate synthesized failing test cases for improving FL. PCD-DAug first combines program slicing with principal component analysis to construct a principal context that shows how a set of statements influences the faulty output via statistical program dependencies. Then, PCD-DAug devises a conditional diffusion model to learn from principle contexts for generating synthesized failing test cases and acquiring a class balanced dataset for FL. We conducted large-scale experiments on six state-of-the-art FL approaches and compare PCD-DAug with six data augmentation baselines. The results show that PCD-DAug significantly improves FL effectiveness, e.g. achieving average improvements of 383.83%, 227.08%, and 224.19% in six FL approaches under the metrics Top-1, Top-3, and Top-5, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。