arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.09187cs.DCcs.ARcs.PF
收藏

在ARM处理器上进行高性能和高能效的深度学习推理

High performance and energy efficient inference for deep learning on ARM processors

Adrián Castelló, Sergio Barrachina, Manuel F. Dolz, Enrique S. Quintana-Ortí, Pau San Juan

摘要:

我们将PyDTNN(深度神经网络(DNN)的分布式并行训练框架)进化为卷积神经网络的有效推理工具。我们在多核ARM处理器上的优化过程涉及到原始框架的几个高级转换,例如开发和集成Cython例程以利用线程级并行性;设计和开发用于矩阵乘法的微内核,用ARMs NEON内部函数进行向量化,可以适应层融合;以及适合于目标ARM处理器的存储层次结构的若干高速缓存配置参数的适当选择。我们的实验评估了推理吞吐量(以处理的图像/s测量)和推理延迟(即,响应时间)以及当改变线程并行性的级别和处理器功率模式时每个图像的能耗。报告了使用新推理引擎的实验,用于MLPerf套件中ImageNet数据集上的ResNet 50 v1.5模型,使用NVIDIA Jetson AGX Xavier板中的ARM v8.2内核。这些结果显示,与来自Google的广泛传播的TFLite相比,性能优越,与来自ARM的DNN推理本地库ArmNN相比,结果略差。

英文摘要:

We evolve PyDTNN, a framework for distributed parallel training of Deep Neural Networks (DNNs), into an efficient inference tool for convolutional neural networks. Our optimization process on multicore ARM processors involves several high-level transformations of the original framework, such as the development and integration of Cython routines to exploit thread-level parallelism; the design and development of micro-kernels for the matrix multiplication, vectorized with ARMs NEON intrinsics, that can accommodate layer fusion; and the appropriate selection of several cache configuration parameters tailored to the memory hierarchy of the target ARM processors. Our experiments evaluate both inference throughput (measured in processed images/s) and inference latency (i.e., time-to-response) as well as energy consumption per image when varying the level of thread parallelism and the processor power modes. The experiments with the new inference engine are reported for the ResNet50 v1.5 model on the ImageNet dataset from the MLPerf suite using the ARM v8.2 cores in the NVIDIA Jetson AGX Xavier board. These results show superior performance compared with the well-spread TFLite from Google and slightly inferior results when compared with ArmNN, the native library from ARM for DNN inference.

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

↑