DiffGAN:一种用于图像分析深度神经网络差分测试的测试生成方法
DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysis
AI总结:
提出DiffGAN,一种基于GAN和非支配排序遗传算法II的黑盒测试图像生成方法,通过定制适应度函数指导输入空间探索,生成多样且有效的触发输入以揭示DNN模型间的行为差异,显著优于SOTA基线并提升模型选择机制的准确性。
摘要:
深度神经网络(DNN)在各类应用中的部署日益增多。然而,确保其可靠性仍是一项挑战,且在许多情况下,存在具有相似功能和准确性的替代模型。传统的基于准确性的评估通常无法捕捉模型之间的行为差异,尤其是在测试数据集有限的情况下,这使得有效地选择或组合模型变得困难。差分测试通过生成暴露DNN模型行为差异的测试输入来解决这一问题。然而,现有方法面临重大局限:许多方法依赖于模型内部信息或受限于可用的种子输入。为了应对这些挑战,我们提出了DiffGAN,一种用于DNN模型差分测试的黑盒测试图像生成方法。DiffGAN利用生成对抗网络(GAN)和非支配排序遗传算法II来生成多样且有效的触发输入,以揭示模型间的行为差异。DiffGAN采用两个定制的适应度函数,分别侧重于多样性和差异性,以指导GAN输入空间的探索并识别模型输出之间的差异。通过策略性地搜索该空间,DiffGAN生成具有特定特征的输入,以触发模型行为的差异。DiffGAN是黑盒的,使其适用于更多场景。我们在基于广泛使用的图像数据集训练的八对DNN模型上评估了DiffGAN。结果表明,DiffGAN显著优于SOTA基线,在相同预算内生成了四倍多的触发输入,且具有更高的多样性和有效性。此外,生成的输入提高了基于机器学习的模型选择机制的准确性,该机制根据输入特征选择最佳性能的模型,并可在使用替代模型时作为智能输出投票机制。
英文摘要:
Deep Neural Networks (DNNs) are increasingly deployed across applications. However, ensuring their reliability remains a challenge, and in many situations, alternative models with similar functionality and accuracy are available. Traditional accuracy-based evaluations often fail to capture behavioral differences between models, especially with limited test datasets, making it difficult to select or combine models effectively. Differential testing addresses this by generating test inputs that expose discrepancies in DNN model behavior. However, existing approaches face significant limitations: many rely on model internals or are constrained by available seed inputs. To address these challenges, we propose DiffGAN, a black-box test image generation approach for differential testing of DNN models. DiffGAN leverages a Generative Adversarial Network (GAN) and the Non-dominated Sorting Genetic Algorithm II to generate diverse and valid triggering inputs that reveal behavioral discrepancies between models. DiffGAN employs two custom fitness functions, focusing on diversity and divergence, to guide the exploration of the GAN input space and identify discrepancies between models' outputs. By strategically searching this space, DiffGAN generates inputs with specific features that trigger differences in model behavior. DiffGAN is black-box, making it applicable in more situations. We evaluate DiffGAN on eight DNN model pairs trained on widely used image datasets. Our results show DiffGAN significantly outperforms a SOTA baseline, generating four times more triggering inputs, with greater diversity and validity, within the same budget. Additionally, the generated inputs improve the accuracy of a machine learning-based model selection mechanism, which selects the best-performing model based on input characteristics and can serve as a smart output voting mechanism when using alternative models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。