arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.00330cs.CVcs.AIcs.LG
收藏

通过梯度滤波实现高效的设备上训练

Efficient On-device Training via Gradient Filtering

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yuedong Yang, Guihong Li, Radu Marculescu

摘要:

尽管它对联邦学习、持续学习和许多其他应用程序很重要,但设备上的训练仍然是EdgeAI的一个开放性问题。问题源于大量的操作(例如,浮点乘法和加法)以及反向传播算法训练期间所需的存储器消耗。因此,在本文中,我们提出了一种新的梯度滤波方法,该方法支持设备上的CNN模型训练。更确切地说,我们的方法创建了一个特殊的结构,在梯度图中具有更少的独特元素,从而显着降低了训练过程中反向传播的计算复杂性和内存消耗。使用多个CNN模型(例如,MobileNet、DeepLabV 3、UPerNet)和设备(例如,Raspberry Pi和Jetson Nano)证明了我们方法的有效性和广泛适用性。例如,与SOTA相比,我们在ImageNet分类上实现了高达19 $\times$的加速和77.1%的内存节省,而准确率仅损失0.1%。最后,我们的方法易于实施和部署;与NVIDIA Jetson Nano上高度优化的MKLDNN和CUDNN基线相比,我们观察到了超过20个$\times$的加速和90%的节能。因此,我们的方法开辟了一个新的研究方向,具有巨大的设备上培训潜力。

英文摘要:

Despite its importance for federated learning, continuous learning and many other applications, on-device training remains an open problem for EdgeAI. The problem stems from the large number of operations (e.g., floating point multiplications and additions) and memory consumption required during training by the back-propagation algorithm. Consequently, in this paper, we propose a new gradient filtering approach which enables on-device CNN model training. More precisely, our approach creates a special structure with fewer unique elements in the gradient map, thus significantly reducing the computational complexity and memory consumption of back propagation during training. Extensive experiments on image classification and semantic segmentation with multiple CNN models (e.g., MobileNet, DeepLabV3, UPerNet) and devices (e.g., Raspberry Pi and Jetson Nano) demonstrate the effectiveness and wide applicability of our approach. For example, compared to SOTA, we achieve up to 19$\times$ speedup and 77.1% memory savings on ImageNet classification with only 0.1% accuracy loss. Finally, our method is easy to implement and deploy; over 20$\times$ speedup and 90% energy savings have been observed compared to highly optimized baselines in MKLDNN and CUDNN on NVIDIA Jetson Nano. Consequently, our approach opens up a new direction of research with a huge potential for on-device training.

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

↑