基于上下文感知的生成对抗网络在故障定位中的应用
Mitigating the Effect of Class Imbalance in Fault Localization Using Context-aware Generative Adversarial Network
摘要:
故障定位(FL)分析测试套件的执行信息,以查明故障的根本原因。测试套件的类不平衡,即,通过测试用例之间的不平衡类比例(即,多数类)和失败类(即,少数民族),不利地影响FL的有效性。为了减轻FL中类不平衡的影响,我们提出了CGAN 4FL:一种使用上下文感知生成对抗网络进行故障定位的数据增强方法。具体来说,CGAN 4FL使用程序依赖性来构建一个失败诱导上下文,显示失败是如何引起的。然后,CGAN 4FL利用生成对抗网络来分析故障诱导上下文并合成测试用例的少数类(即,失败的测试用例)。最后,CGAN 4FL将合成的数据添加到原始测试用例中,以获得FL的类平衡数据集。我们的实验表明,CGAN 4FL显著提高了FL的有效性,例如,在Top-1、Top-5和Top-10下,MLP-FL分别提升200.00%、25.49%和17.81%。
英文摘要:
Fault localization (FL) analyzes the execution information of a test suite to pinpoint the root cause of a failure. The class imbalance of a test suite, i.e., the imbalanced class proportion between passing test cases (i.e., majority class) and failing ones (i.e., minority class), adversely affects FL effectiveness. To mitigate the effect of class imbalance in FL, we propose CGAN4FL: a data augmentation approach using Context-aware Generative Adversarial Network for Fault Localization. Specifically, CGAN4FL uses program dependencies to construct a failure-inducing context showing how a failure is caused. Then, CGAN4FL leverages a generative adversarial network to analyze the failure-inducing context and synthesize the minority class of test cases (i.e., failing test cases). Finally, CGAN4FL augments the synthesized data into original test cases to acquire a class-balanced dataset for FL. Our experiments show that CGAN4FL significantly improves FL effectiveness, e.g., promoting MLP-FL by 200.00%, 25.49%, and 17.81% under the Top-1, Top-5, and Top-10 respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。