首页> 外文会议>IEEE International Conference On Artificial Intelligence Testing >Accuracy Measurement of Deep Neural Network Accelerator via Metamorphic Testing
【24h】

Accuracy Measurement of Deep Neural Network Accelerator via Metamorphic Testing

机译:通过变形测试测量深度神经网络加速器的精度

获取原文

摘要

Deep neural networks (DNNs) have been proved to be popular and successful in our daily life. For mobile devices with the services from DNN, it is needed to equip a DNN accelerator to employ fast and accurate DNN models. Different DNN accelerators may have different accuracy performance, which directly affects the user experience. To measure the accuracy of the DNN accelerators, there only exists indirect approach by comparing to the third-party platform with 32-bit float format. In this paper, metamorphic testing is employed to measure the accuracy of the DNN accelerator for the first time. Specifically, our scheme utilizes the mathematical properties of the operators in deep neural networks to measure the accuracy of the DNN accelerator, getting rid of the dependence on the third-party platform. Besides, we design an objective metric to quantitatively measure the accuracy performance. It can be used not only to facilitate the direct competition between different accelerators but also to detect defects in the implementation of the DNN accelerator. An experiment on two well-known DNN accelerators, HiAI and Snapdragon Neural Processing Engine (SNPE), is conducted, and the results show that the metamorphic distance of the former is smaller than that of the latter in terms of their accuracy performance with 16-bit float format on typical Ops, such as softmax and convolution.
机译:深度神经网络(DNN)已被证明在我们的日常生活中很受欢迎并且很成功。对于具有DNN服务的移动设备,需要配备DNN加速器以采用快速,准确的DNN模型。不同的DNN加速器可能具有不同的精度性能,这直接影响用户体验。为了测量DNN加速器的准确性,仅存在与32位浮点格式的第三方平台进行比较的间接方法。在本文中,首次使用了变质测试来测量DNN加速器的准确性。具体来说,我们的方案利用了深度神经网络中算子的数学特性来测量DNN加速器的准确性,从而摆脱了对第三方平台的依赖。此外,我们设计了一个客观指标来定量测量准确性表现。它不仅可以用于促进不同加速器之间的直接竞争,还可以用于检测DNN加速器实现中的缺陷。对两个著名的DNN加速器HiAI和Snapdragon神经处理引擎(SNPE)进行了实验,结果表明,前者的变质距离在精度方面达到了后者,后者的精度为16-典型操作上的位浮点格式,例如softmax和卷积。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号