arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.09391cs.LGcs.NE
收藏

利用对称时间稀疏BPTT实现高效RNN训练

Exploiting Symmetric Temporally Sparse BPTT for Efficient RNN Training

Institute of Neuroinformatics, University of Zurich and ETH Zurich(苏黎世大学和苏黎世联邦理工学院神经信息学研究所);Department of Microelectronics, Delft University of Technology(代尔夫特理工大学微电子系)

Xi Chen, Chang Gao, Zuowen Wang, Longbiao Cheng, Sheng Zhou, Shih-Chii Liu, Tobi Delbruck

AI总结:

本研究提出利用时间稀疏性的Delta RNN训练算法,通过对称计算图跳过失活神经元梯度计算,大幅减少运算量并提升速度,适用于边缘设备在线增量学习。

摘要:

循环神经网络(RNNs)在时间序列任务中具有实用价值。然而,训练RNN涉及密集矩阵乘法,需要能支持大量算术运算和内存访问的硬件。在边缘设备上实现RNN的在线训练,需要优化算法以实现高效的硬件部署。受脉冲神经元模型启发,Delta RNN(德尔塔循环神经网络)通过跳过激活变化低于设定阈值的失活神经元的隐藏状态更新,在推理阶段利用时间稀疏性。本研究提出了一种Delta RNN的训练算法,该算法在反向传播阶段利用时间稀疏性,降低边缘设备训练的计算需求。由于训练过程中前向传播与反向传播的计算图具有对称性,失活神经元的梯度计算可被跳过。实验结果显示,在Fluent Speech Commands数据集上训练含56k参数的Delta LSTM时,矩阵运算量减少约80%,且精度损失可忽略不计。针对该训练算法设计的硬件加速器的逻辑仿真表明,在50%-90%的激活稀疏度范围内,矩阵计算速度提升2-10倍。此外,研究表明所提出的Delta RNN训练方法可应用于计算资源有限的边缘设备的在线增量学习。

英文摘要:

Recurrent Neural Networks (RNNs) are useful in temporal sequence tasks. However, training RNNs involves dense matrix multiplications which require hardware that can support a large number of arithmetic operations and memory accesses. Implementing online training of RNNs on the edge calls for optimized algorithms for an efficient deployment on hardware. Inspired by the spiking neuron model, the Delta RNN exploits temporal sparsity during inference by skipping over the update of hidden states from those inactivated neurons whose change of activation across two timesteps is below a defined threshold. This work describes a training algorithm for Delta RNNs that exploits temporal sparsity in the backward propagation phase to reduce computational requirements for training on the edge. Due to the symmetric computation graphs of forward and backward propagation during training, the gradient computation of inactivated neurons can be skipped. Results show a reduction of $\sim$80% in matrix operations for training a 56k parameter Delta LSTM on the Fluent Speech Commands dataset with negligible accuracy loss. Logic simulations of a hardware accelerator designed for the training algorithm show 2-10X speedup in matrix computations for an activation sparsity range of 50%-90%. Additionally, we show that the proposed Delta RNN training will be useful for online incremental learning on edge devices with limited computing resources.

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

↑