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

基于梯度重加权的脉冲神经网络时间有效训练

Temporal Efficient Training of Spiking Neural Network via Gradient Re-weighting

University of Electronic Science and Technology of China(电子科技大学);Shenzhen Institute for Advanced Study, UESTC(电子科技大学深圳高等研究院);Yale University(耶鲁大学);Peking University(北京大学);Peng Cheng Laboratory(鹏城实验室)

Shikuang Deng, Yuhang Li, Shanghang Zhang, Shi Gu

摘要:

最近,脑启发的尖峰神经元网络(SNN)因其事件驱动和节能特性而引起了广泛的研究兴趣。尽管如此,由于其激活函数的不可微性,难以有效地训练深度SNN,这禁用了传统人工神经网络(ANN)通常使用的梯度下降方法。虽然代理梯度(SG)的采用形式上允许损失的反向传播,但离散尖峰机制实际上将SNN的损失景观与ANN的损失景观区分开来,使代理梯度方法无法实现与ANN相当的准确性。在本文中,我们首先分析了为什么目前的代理梯度直接训练方法导致SNN的泛化能力差。然后,我们引入了时间有效训练(TET)的方法来补偿与SG的梯度下降的动量损失,使训练过程可以收敛到更平坦的最小值具有更好的泛化能力。同时,我们证明了TET提高了SNN的时间可扩展性,并诱导了时间可继承的加速训练。我们的方法在所有报告的主流数据集上的表现都优于SOTA,包括CIFAR-10/100和ImageNet。值得注意的是,在DVS-CIFAR 10上,我们获得了83个$\%$ top-1精度,与现有技术相比,$\%$提高了10个以上。代码可在\url{https://github.com/Gus-Lab/temporal_efficient_training}上获得。

英文摘要:

Recently, brain-inspired spiking neuron networks (SNNs) have attracted widespread research interest because of their event-driven and energy-efficient characteristics. Still, it is difficult to efficiently train deep SNNs due to the non-differentiability of its activation function, which disables the typically used gradient descent approaches for traditional artificial neural networks (ANNs). Although the adoption of surrogate gradient (SG) formally allows for the back-propagation of losses, the discrete spiking mechanism actually differentiates the loss landscape of SNNs from that of ANNs, failing the surrogate gradient methods to achieve comparable accuracy as for ANNs. In this paper, we first analyze why the current direct training approach with surrogate gradient results in SNNs with poor generalizability. Then we introduce the temporal efficient training (TET) approach to compensate for the loss of momentum in the gradient descent with SG so that the training process can converge into flatter minima with better generalizability. Meanwhile, we demonstrate that TET improves the temporal scalability of SNN and induces a temporal inheritable training for acceleration. Our method consistently outperforms the SOTA on all reported mainstream datasets, including CIFAR-10/100 and ImageNet. Remarkably on DVS-CIFAR10, we obtained 83$\%$ top-1 accuracy, over 10$\%$ improvement compared to existing state of the art. Codes are available at \url{https://github.com/Gus-Lab/temporal_efficient_training}.

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

↑