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

DeltaNN:评估计算环境参数对图像识别模型性能的影响

DeltaNN: Assessing the Impact of Computational Environment Parameters on the Performance of Image Recognition Models

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

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

AI总结:

本文提出差分测试框架DeltaNN,通过生成不同深度学习框架、编译器优化和硬件设备下的模型实现,评估计算环境参数对图像识别模型部署后性能的影响,实验发现最高100%标签差异和81%推理时间性能下降。

摘要:

图像识别任务通常使用深度学习,需要巨大的处理能力,因此依赖GPU和TPU等硬件加速器进行快速、及时的处理。在模型部署期间,由于硬件加速器上的次优映射,实时图像识别任务可能会发生失败,这可能导致时间不确定性和错误行为。硬件加速器上的映射是使用多个软件组件完成的,如深度学习框架、编译器和设备库,我们将其称为计算环境。由于图像识别任务在自动驾驶和医学成像等安全关键应用中的使用增加,评估它们对计算环境变化的鲁棒性势在必行,因为深度学习框架、编译器优化和硬件设备等参数对模型性能和正确性的影响尚不清楚。在本文中,我们提出了一个差分测试框架DeltaNN,它允许我们评估不同计算环境参数对图像识别模型在训练后部署期间性能的影响。DeltaNN针对环境参数的变化,即深度学习框架、编译器优化和硬件设备,生成给定图像识别模型的不同实现,并分析由此产生的模型性能差异。使用DeltaNN,我们利用ImageNet数据集对三种流行图像识别模型的鲁棒性分析进行了实证研究。我们报告了不同设置下错误分类和推理时间差异方面的影响。总的来说,我们观察到在不同的深度学习框架之间,输出标签差异高达100%,而在应用编译器优化时,推理时间方面出现了高达81%的意外性能下降。

英文摘要:

Image recognition tasks typically use deep learning and require enormous processing power, thus relying on hardware accelerators like GPUs and TPUs for fast, timely processing. Failure in real-time image recognition tasks can occur due to sub-optimal mapping on hardware accelerators during model deployment, which may lead to timing uncertainty and erroneous behavior. Mapping on hardware accelerators is done using multiple software components like deep learning frameworks, compilers, and device libraries, that we refer to as the computational environment. Owing to the increased use of image recognition tasks in safety-critical applications like autonomous driving and medical imaging, it is imperative to assess their robustness to changes in the computational environment, as the impact of parameters like deep learning frameworks, compiler optimizations, and hardware devices on model performance and correctness is not yet well understood. In this paper we present a differential testing framework, DeltaNN, that allows us to assess the impact of different computational environment parameters on the performance of image recognition models during deployment, post training. DeltaNN generates different implementations of a given image recognition model for variations in environment parameters, namely, deep learning frameworks, compiler optimizations and hardware devices and analyzes differences in model performance as a result. Using DeltaNN, we conduct an empirical study of robustness analysis of three popular image recognition models using the ImageNet dataset. We report the impact in terms of misclassifications and inference time differences across different settings. In total, we observed up to 100% output label differences across deep learning frameworks, and up to 81% unexpected performance degradation in terms of inference time, when applying compiler optimizations.

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

↑