arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.16741cs.SE
收藏

深度学习中突变体真实性的实证研究

An Empirical Study of the Realism of Mutants in Deep Learning

Institute of Computer Science, University of Goettingen(哥廷根大学计算机科学研究所)

Zaheed Ahmed, Philip Makedonski, Jens Grabowski

AI总结:

本研究通过实证分析比较深度学习中预训练与后训练突变方法的真实性,发现预训练突变体在耦合强度和行为相似性上更优,但其高计算成本促使需开发更高效的后训练操作符。

摘要:

突变分析是一种在传统软件开发范式中评估测试质量的已建立技术,通过向程序中注入人工故障来实现。其在深度学习(DL)中的应用已超越经典测试,支持故障定位、修复、数据生成和模型鲁棒性评估等任务。核心假设是突变体的行为与真实故障相似,这一假设在传统软件系统中已被充分验证,但在深度学习中却鲜有验证。本研究首次对深度学习中预训练和后训练突变方法进行了实证比较,以评估其真实性。我们引入了统计框架,利用公开可用的bug数据集:CleanML、DeepFD、DeepLocalize和defect4ML,量化它们的耦合强度和与真实故障的行为相似性。突变体使用最先进的工具生成,代表两种方法。结果表明,预训练突变体在耦合强度和与真实故障的行为相似性上均优于后训练突变体,表明更高的真实性。然而,预训练突变的计算成本显著,需要更有效的后训练操作符,以匹配或超越预训练突变体所展示的真实程度。

英文摘要:

The core assumption behind using mutants as substitutes for real faults is that they represent them faithfully. In traditional software testing, this representativeness has been empirically studied by examining the behavioral relationship between mutant detection and real fault detection. In deep learning (DL), mutants are generated by applying mutation operators to either pre-training or post-training artifacts. However, the realism of mutants in DL remains largely unverified. To the best of our knowledge, this study presents the first empirical comparison of pre-training and post-training mutation approaches in DL with respect to realism. We introduce a statistical framework that quantifies realism using two complementary metrics: coupling strength and behavioral similarity to real faults. We evaluate the framework on four publicly available bug datasets: CleanML, DeepFD, DeepLocalize, and defect4ML. Mutants are generated using state-of-the-art tools representing both mutation approaches. Results show that pre-training mutants exhibit significantly stronger coupling and higher behavioral similarity to real faults than post-training mutants, indicating greater realism. Operator-level analysis shows that this advantage is systematic across individual mutation operators and ranks the operators by realism within each approach. However, the substantial computational cost of pre-training mutation underscores the need for more effective post-training operators that match or exceed the realism of pre-training mutants.

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

↑