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

在边缘使用本地代理进行学习

Learning with Local Gradients at the Edge

Michael Lomnitz, Zachary Daniels, David Zhang, Michael Piacentino

摘要:

为了实现在边缘设备上快速收敛和低内存的学习,我们提出了一种新的无反向传播优化算法,称为目标投影随机梯度下降(tpSGD)。tpSGD将直接随机目标投影推广到任意损失函数,并将目标投影扩展到训练递归神经网络(RNN)以及前馈网络。tpSGD使用逐层随机梯度下降(SGD)和通过标签的随机投影生成的局部目标,仅通过向前传递逐层训练网络。tpSGD不需要在优化过程中保留梯度,与SGD反向传播(BP)方法相比,大大减少了内存分配,后者需要整个神经网络权重、输入/输出和中间结果的多个实例。我们的方法在完全连接层、卷积层和递归层的相对较浅的网络上,在5%的准确度内执行了BP到BP的梯度下降。tpSGD在由多层感知器、卷积神经网络(CNN)和RNN组成的浅层模型中的性能也优于其他最先进的无梯度算法,具有竞争力的准确性和更少的内存和时间。我们评估了tpSGD在训练深度神经网络(例如VGG)方面的性能,并将该方法扩展到多层RNN。这些实验突出了与优化的基于层的适配器训练相关的新研究方向,用于在边缘使用tpSGD进行域转移。

英文摘要:

To enable learning on edge devices with fast convergence and low memory, we present a novel backpropagation-free optimization algorithm dubbed Target Projection Stochastic Gradient Descent (tpSGD). tpSGD generalizes direct random target projection to work with arbitrary loss functions and extends target projection for training recurrent neural networks (RNNs) in addition to feedforward networks. tpSGD uses layer-wise stochastic gradient descent (SGD) and local targets generated via random projections of the labels to train the network layer-by-layer with only forward passes. tpSGD doesn't require retaining gradients during optimization, greatly reducing memory allocation compared to SGD backpropagation (BP) methods that require multiple instances of the entire neural network weights, input/output, and intermediate results. Our method performs comparably to BP gradient-descent within 5% accuracy on relatively shallow networks of fully connected layers, convolutional layers, and recurrent layers. tpSGD also outperforms other state-of-the-art gradient-free algorithms in shallow models consisting of multi-layer perceptrons, convolutional neural networks (CNNs), and RNNs with competitive accuracy and less memory and time. We evaluate the performance of tpSGD in training deep neural networks (e.g. VGG) and extend the approach to multi-layer RNNs. These experiments highlight new research directions related to optimized layer-based adaptor training for domain-shift using tpSGD at the edge.

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

↑