arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.02154cs.DC
收藏

集成GPU上CNN模型推理的统一优化方法

A Unified Optimization Approach for CNN Model Inference on Integrated GPUs

Leyuan Wang, Zhi Chen, Yizhi Liu, Yao Wang, Lianmin Zheng, Mu Li, Yida Wang

摘要:

现代深度学习应用迫切需要在边缘设备上进行模型推理,这是出于多种原因,例如实现更短的延迟,减轻网络连接到云的负担,以及保护用户隐私。卷积神经网络(\emph{CNN})是应用最广泛的一类模型。考虑到CNN模型的高计算复杂性,在边缘设备的集成GPU上执行它们是有利的,这些GPU无处不在,并且比附带的CPU具有更多的功率和更好的能效。然而,由于其架构和编程接口的多样性,在集成GPU上高效编程是具有挑战性的。本文提出了一种端到端解决方案,用于在边缘的集成GPU上执行CNN模型推理,该解决方案使用统一的IR来表示和优化来自多个供应商的集成GPU上的视觉特定运算符,并利用基于机器学习的调度搜索方案来优化卷积等计算密集型运算符。我们的解决方案甚至为不适合或不方便在GPU上运行的运营商提供了一种回退机制。评估结果表明,与由供应商提供的高性能库支持的最先进的解决方案相比,英特尔显卡,ARM Mali GPU和Nvidia集成Maxwell GPU,我们的解决方案在许多流行的图像分类和目标检测模型上实现了相似甚至更好的性能(高达1.62 $\times$)。此外,我们的解决方案具有更广泛的模型覆盖范围,并且更灵活地接受新模型。我们的解决方案已在AWS的生产服务中采用,并且是开源的。

英文摘要:

Modern deep learning applications urge to push the model inference taking place at the edge devices for multiple reasons such as achieving shorter latency, relieving the burden of the network connecting to the cloud, and protecting user privacy. The Convolutional Neural Network (\emph{CNN}) is one of the most widely used model family in the applications. Given the high computational complexity of the CNN models, it is favorable to execute them on the integrated GPUs at the edge devices, which are ubiquitous and have more power and better energy efficiency than the accompanying CPUs. However, programming on integrated GPUs efficiently is challenging due to the variety of their architectures and programming interfaces. This paper proposes an end-to-end solution to execute CNN model inference on the integrated GPUs at the edge, which uses a unified IR to represent and optimize vision-specific operators on integrated GPUs from multiple vendors, as well as leverages machine learning-based scheduling search schemes to optimize computationally-intensive operators like convolution. Our solution even provides a fallback mechanism for operators not suitable or convenient to run on GPUs. The evaluation results suggest that compared to state-of-the-art solutions backed up by the vendor-provided high-performance libraries on Intel Graphics, ARM Mali GPU, and Nvidia integrated Maxwell GPU, our solution achieves similar, or even better (up to 1.62$\times$), performance on a number of popular image classification and object detection models. In addition, our solution has a wider model coverage and is more flexible to embrace new models. Our solution has been adopted in production services in AWS and is open-sourced.

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

↑