arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.10100cs.LGcs.AR
收藏

启用基于设备智能手机GPU的培训:经验教训

Enabling On-Device Smartphone GPU based Training: Lessons Learned

University of Cambridge(剑桥大学);University of Southampton(南安普顿大学)

Anish Das, Young D. Kwon, Jagmohan Chauhan, Cecilia Mascolo

摘要:

深度学习(DL)在许多移动应用中表现出令人印象深刻的性能。大多数现有的工作都集中在减少在资源受限的移动设备上运行深度神经网络(DNN)推理的计算和资源开销。然而,DNN操作的另一个方面,即在智能手机GPU上的训练(向前和向后传递),到目前为止很少受到关注。为此,我们进行了初步分析,以研究使用移动GPU在智能手机上进行设备上培训的可行性。我们首先采用开源移动DL框架(MNN)及其OpenCL后端在GPU上运行计算内核。接下来,我们观察到CPU上的训练比GPU上的训练快得多,并确定了与此观察相关的两个可能的瓶颈:(i)计算和(ii)内存瓶颈。为了解决计算瓶颈,我们优化了OpenCL后端的内核,在Snapdragon 8系列处理器上的CPU(15-30 GFLOPs)上显示出2倍的改进(40-70 GFLOPs)。然而,我们发现完整的DNN训练在GPU上仍然比在CPU上慢得多,这表明内存瓶颈在GPU性能低于CPU方面起着重要作用。由于带宽较低,数据移动几乎占用了91%的训练时间。最后,根据我们调查过程中的发现和失败,我们提出了限制和未来方向的实际指导方针。

英文摘要:

Deep Learning (DL) has shown impressive performance in many mobile applications. Most existing works have focused on reducing the computational and resource overheads of running Deep Neural Networks (DNN) inference on resource-constrained mobile devices. However, the other aspect of DNN operations, i.e. training (forward and backward passes) on smartphone GPUs, has received little attention thus far. To this end, we conduct an initial analysis to examine the feasibility of on-device training on smartphones using mobile GPUs. We first employ the open-source mobile DL framework (MNN) and its OpenCL backend for running compute kernels on GPUs. Next, we observed that training on CPUs is much faster than on GPUs and identified two possible bottlenecks related to this observation: (i) computation and (ii) memory bottlenecks. To solve the computation bottleneck, we optimize the OpenCL backend's kernels, showing 2x improvements (40-70 GFLOPs) over CPUs (15-30 GFLOPs) on the Snapdragon 8 series processors. However, we find that the full DNN training is still much slower on GPUs than on CPUs, indicating that memory bottleneck plays a significant role in the lower performance of GPU over CPU. The data movement takes almost 91% of training time due to the low bandwidth. Lastly, based on the findings and failures during our investigation, we present limitations and practical guidelines for future directions.

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

↑