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

迈出最后一公里

Stepping Forward on the Last Mile

Qualcomm AI Research(高通人工智能研究部);Qualcomm Canada ULC(高通加拿大有限责任公司);University of Toronto(多伦多大学)

Chen Feng, Shaojie Zhuo, Xiaopeng Zhang, Ramchalam Kinattinkara Ramakrishnan, Zhaocong Yuan, Andrew Zou Li

AI总结:

本文研究边缘设备上使用定点前向梯度进行模型训练的可行性,通过多任务实验验证其内存效率与精度,提出算法增强,证明该方法在最后一公里定制中实用可行。

摘要:

在资源受限的边缘设备上,持续将预训练模型适配到本地数据是模型部署的“最后一公里”。然而,随着模型规模和深度的增加,反向传播需要大量内存,这对边缘设备而言变得不可行。此外,大多数现有的低功耗神经处理引擎(如NPU、DSP、MCU等)被设计为定点推理加速器,不具备训练能力。前向梯度仅基于两次前向调用计算的方向导数,最近被用于模型训练,大幅节省了计算和内存。然而,使用定点前向梯度进行量化训练的性能仍不清楚。在本文中,我们通过在视觉和音频领域的多种深度学习基准任务上进行全面实验,研究了使用定点前向梯度进行设备上训练的可行性。我们提出了一系列算法增强,进一步减少了内存占用,并缩小了与反向传播相比的精度差距。我们还进一步探讨了使用前向梯度训练如何在损失景观中导航的实证研究。我们的结果表明,在边缘设备上模型定制的最后一公里,使用定点前向梯度进行训练是一种可行且实用的方法。

英文摘要:

Continuously adapting pre-trained models to local data on resource constrained edge devices is the $\emph{last mile}$ for model deployment. However, as models increase in size and depth, backpropagation requires a large amount of memory, which becomes prohibitive for edge devices. In addition, most existing low power neural processing engines (e.g., NPUs, DSPs, MCUs, etc.) are designed as fixed-point inference accelerators, without training capabilities. Forward gradients, solely based on directional derivatives computed from two forward calls, have been recently used for model training, with substantial savings in computation and memory. However, the performance of quantized training with fixed-point forward gradients remains unclear. In this paper, we investigate the feasibility of on-device training using fixed-point forward gradients, by conducting comprehensive experiments across a variety of deep learning benchmark tasks in both vision and audio domains. We propose a series of algorithm enhancements that further reduce the memory footprint, and the accuracy gap compared to backpropagation. An empirical study on how training with forward gradients navigates in the loss landscape is further explored. Our results demonstrate that on the last mile of model customization on edge devices, training with fixed-point forward gradients is a feasible and practical approach.

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

↑