arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.01697cs.LGcs.SEcs.SYeess.SY
收藏

探索图像识别模型在硬件加速器上的鲁棒性

Exploring Robustness of Image Recognition Models on Hardware Accelerators

University of Edinburgh(爱丁堡大学);University of Glasgow(格拉斯哥大学)

Nikolaos Louloudakis, Perry Gibson, José Cano, Ajitha Rajan

AI总结:

提出MutateNN工具,结合差分与变异测试,在4种硬件加速器上对7个DNN模型注入21个变异,发现条件运算符变异导致跨设备差异达90.3%,层修改等变异严重损害性能或致崩溃。

摘要:

随着人工智能(AI)在资源密集型和安全性关键任务中的应用日益增多,各种机器学习(ML)编译器已被开发出来,使深度神经网络(DNN)能够与各种硬件加速设备兼容。然而,鉴于DNN被广泛用于具有挑战性和高要求的任务,这些编译器的行为必须得到验证。为此,我们提出了MutateNN,一种利用差分测试和变异测试元素来检查图像识别模型在部署于不同能力的硬件加速器上时,其目标设备代码中存在故障(由开发者引入或编译过程中的问题所致)时的鲁棒性的工具。我们专注于图像识别领域,对7个成熟的DNN模型应用变异测试,引入了6个不同类别的21个变异。我们将变异体部署在4个能力各异的硬件加速设备上,观察到DNN模型在与条件运算符相关的变异上,跨设备的差异高达90.3%。我们还观察到,与层修改、算术类型和输入相关的变异严重影响了整体模型性能(高达99.8%)或导致模型崩溃,且这种影响在各设备上表现一致。

英文摘要:

As the usage of Artificial Intelligence (AI) on resource-intensive and safety-critical tasks increases, a variety of Machine Learning (ML) compilers have been developed, enabling compatibility of Deep Neural Networks (DNNs) with a variety of hardware acceleration devices. However, given that DNNs are widely utilized for challenging and demanding tasks, the behavior of these compilers must be verified. To this direction, we propose MutateNN, a tool that utilizes elements of both differential and mutation testing in order to examine the robustness of image recognition models when deployed on hardware accelerators with different capabilities, in the presence of faults in their target device code - introduced either by developers, or problems in their compilation process. We focus on the image recognition domain by applying mutation testing to 7 well-established DNN models, introducing 21 mutations of 6 different categories. We deployed our mutants on 4 different hardware acceleration devices of varying capabilities and observed that DNN models presented discrepancies of up to 90.3% in mutants related to conditional operators across devices. We also observed that mutations related to layer modification, arithmetic types and input affected severely the overall model performance (up to 99.8%) or led to model crashes, in a consistent manner across devices.

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

↑