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

DeepPerform:一种有效的资源受限神经网络性能测试方法

DeepPerform: An Efficient Approach for Performance Testing of Resource-Constrained Neural Networks

UT Dallas(德克萨斯大学达拉斯分校);UC Riverside(加州大学河滨分校)

Simin Chen, Mirazul Haque, Cong Liu, Wei Yang

摘要:

如今,越来越多的自适应深度神经网络(AdNN)被用于资源受限的嵌入式设备。我们观察到,类似于传统的软件,冗余计算存在于AdNN,导致相当大的性能下降。性能下降取决于输入,被称为输入相关性能瓶颈(IDPB)。为了确保AdNN满足资源受限应用的性能要求,必须进行性能测试以检测AdNN中的IDPB。现有的神经网络测试方法主要关注正确性测试,而不涉及性能测试。为了填补这一空白,我们提出了DeepPerform,这是一种可扩展的方法来生成测试样本,以检测AdNN中的IDPB。我们首先演示了如何生成性能测试样本检测IDPB的问题可以制定为一个优化问题。接下来,我们将展示DeepPerform如何通过学习和估计AdNN的计算消耗分布来有效地处理优化问题。我们在三个广泛使用的数据集上对五个流行的AdNN模型进行了DeepPerform评估。结果表明,DeepPerform生成的测试样本会导致更严重的性能下降(FLOPs:增加到552%)。此外,DeepPerform在生成测试输入方面比基线方法更有效(运行时开销:仅6-10毫秒)。

英文摘要:

Today, an increasing number of Adaptive Deep Neural Networks (AdNNs) are being used on resource-constrained embedded devices. We observe that, similar to traditional software, redundant computation exists in AdNNs, resulting in considerable performance degradation. The performance degradation is dependent on the input and is referred to as input-dependent performance bottlenecks (IDPBs). To ensure an AdNN satisfies the performance requirements of resource-constrained applications, it is essential to conduct performance testing to detect IDPBs in the AdNN. Existing neural network testing methods are primarily concerned with correctness testing, which does not involve performance testing. To fill this gap, we propose DeepPerform, a scalable approach to generate test samples to detect the IDPBs in AdNNs. We first demonstrate how the problem of generating performance test samples detecting IDPBs can be formulated as an optimization problem. Following that, we demonstrate how DeepPerform efficiently handles the optimization problem by learning and estimating the distribution of AdNNs' computational consumption. We evaluate DeepPerform on three widely used datasets against five popular AdNN models. The results show that DeepPerform generates test samples that cause more severe performance degradation (FLOPs: increase up to 552\%). Furthermore, DeepPerform is substantially more efficient than the baseline methods in generating test inputs(runtime overhead: only 6-10 milliseconds).

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

↑