直接训练需要正则化:任意时刻最优推理脉冲神经网络
Direct Training Needs Regularisation: Anytime Optimal Inference Spiking Neural Network
AI总结:
本文提出时空正则器(STR)来平衡脉冲强度与膜电位比率,使直接训练的SNN在自适应时间步长下实现任意时刻最优推理,在事件数据集上推理提速2.14至2.89倍且精度损失仅0.50%至0.64%。
摘要:
脉冲神经网络(SNN)被公认为下一代人工神经网络(ANN),在处理时空信息方面具有巨大潜力。然而,时间步长的选择变得至关重要,因为它显著影响神经网络训练的准确性。具体而言,较小的时间步长意味着更高效的计算性能,从而降低延迟和运算量。但使用较小的时间步长可能因脉冲数量不足导致信息呈现不充分,从而造成精度下降。这一观察促使我们开发一种对自适应时间步长更可靠的SNN,方法是引入一种新颖的正则化技术,即时空正则器(STR)。我们的方法调节每个时间步上脉冲强度与膜电位之间的比率。这在训练过程中有效平衡了空间和时间性能,最终得到任意时刻最优推理(AOI)SNN。通过在基于帧和基于事件的数据集上进行大量实验,我们的方法结合基于softmax输出的截断机制,在延迟和精度方面均达到了最先进的性能。值得注意的是,借助STR和截断机制,与预配置时间步长相比,SNN在基于事件的数据集上的推理速度提高了2.14至2.89倍,精度下降接近零,仅为0.50%至0.64%。代码见:https://github.com/Dengyu-Wu/AOI-SNN-Regularisation
英文摘要:
Spiking Neural Network (SNN) is acknowledged as the next generation of Artificial Neural Network (ANN) and hold great promise in effectively processing spatial-temporal information. However, the choice of timestep becomes crucial as it significantly impacts the accuracy of the neural network training. Specifically, a smaller timestep indicates better performance in efficient computing, resulting in reduced latency and operations. While, using a small timestep may lead to low accuracy due to insufficient information presentation with few spikes. This observation motivates us to develop an SNN that is more reliable for adaptive timestep by introducing a novel regularisation technique, namely Spatial-Temporal Regulariser (STR). Our approach regulates the ratio between the strength of spikes and membrane potential at each timestep. This effectively balances spatial and temporal performance during training, ultimately resulting in an Anytime Optimal Inference (AOI) SNN. Through extensive experiments on frame-based and event-based datasets, our method, in combination with cutoff based on softmax output, achieves state-of-the-art performance in terms of both latency and accuracy. Notably, with STR and cutoff, SNN achieves 2.14 to 2.89 faster in inference compared to the pre-configured timestep with near-zero accuracy drop of 0.50% to 0.64% over the event-based datasets. Code available: https://github.com/Dengyu-Wu/AOI-SNN-Regularisation
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。