arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02718cs.SE
收藏

利用傅里叶分析与变异体聚类加速DNN变异测试

Using Fourier Analysis and Mutant Clustering to Accelerate DNN Mutation Testing

Auburn University(奥本大学);Google Research(谷歌研究)

Ali Ghanbari, Sasan Tavakkol

AI总结:

针对DNN变异测试成本高的问题,提出DM#技术,通过傅里叶分析量化变异体行为并聚类,选取组代表测试复用结果,在低变异得分误差下实现显著加速,效果优于多种基线方法。

摘要:

深度神经网络(DNN)变异分析是一种评估测试集充分性的颇具前景的方法。由于生成的变异体数量庞大,且必须在大型数据集上进行测试,变异分析的成本很高。本文提出了一种名为DM#的技术,利用傅里叶分析来加速DNN变异测试。其核心思路是:DNN的输出是适合傅里叶分析的实值函数,可借助仅少量数据点量化变异体的行为。DM#利用量化后的变异体行为对变异体进行聚类,使行为相似的变异体归入同一组。随后从每组中选取一个代表进行测试,并将该测试结果(例如变异体是被杀死还是存活)复用到所选代表所代表的所有其他变异体上,从而无需对其他变异体进行测试。我们使用了14个参数规模从数千到数百万不等、在不同数据集上训练的DNN模型来评估DM#,并将其与几种基线技术进行对比。实验结果提供了实证依据:DM#可将变异测试平均加速28.38%,而平均代价仅为变异得分0.72%的误差。此外,与随机变异体选择、边界样本选择和随机样本选择技术相比,DM#的变异得分误差平均分别低11.78倍、15.16倍和114.36倍,同时整体上能提供相当的加速效果。

英文摘要:

Deep neural network (DNN) mutation analysis is a promising approach to evaluating test set adequacy. Due to the large number of generated mutants that must be tested on large datasets, mutation analysis is costly. In this paper, we present a technique, named DM#, for accelerating DNN mutation testing using Fourier analysis. The key insight is that DNN outputs are real-valued functions suitable for Fourier analysis that can be leveraged to quantify mutant behavior using only a few data points. DM# uses the quantified mutant behavior to cluster the mutants so that the ones with similar behavior fall into the same group. A representative from each group is then selected for testing, and the result of the test, e.g., whether the mutant is killed or survived, is reused for all other mutants represented by the selected mutant, obviating the need for testing other mutants. 14 DNN models of sizes ranging from thousands to millions of parameters, trained on different datasets, are used to evaluate DM# and compare it to several baseline techniques. Our results provide empirical evidence on the effectiveness of DM# in accelerating mutation testing by 28.38%, on average, at the average cost of only 0.72% error in mutation score. Moreover, on average, DM# incurs 11.78, 15.16, and 114.36 times less mutation score error compared to random mutant selection, boundary sample selection, and random sample selection techniques, respectively, while generally offering comparable speed-up.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑