arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.02865cs.NEcs.CVcs.LGq-bio.NC
收藏

用于快速且精确的循环神经网络的脉冲启发秩编码

Spike-inspired Rank Coding for Fast and Accurate Recurrent Neural Networks

University College London(伦敦大学学院);Huawei Technologies(华为技术有限公司)

Alan Jeffares, Qinghai Guo, Pontus Stenetorp, Timoleon Moraitis

AI总结:

提出受脉冲神经网络启发的秩编码(RC)方法,将其应用于LSTM等传统人工神经网络,通过阈值穿越事件触发早期时间步输出以跳过剩余序列,在大幅节省计算和推理时间的同时保持高准确率。

摘要:

生物脉冲神经网络(SNN)能够在输出中对信息进行时间编码,例如按神经元发放的秩顺序进行编码,而人工神经网络(ANN)传统上不具备此能力。因此,在处理时间输入时,用于神经形态计算的SNN模型被认为比ANN更快速、更高效。另一方面,ANN更容易训练,且通常获得更优的性能。在此我们表明,受SNN启发的诸如秩编码(RC)的时间编码也能应用于LSTM等传统ANN,从而带来计算量的节省和速度的提升。在我们针对ANN的RC方法中,我们使用标准的实值激活进行随时间反向传播,但仅从每个序列输入样本的一个战略性早期时间步开始,该时间步由阈值穿越事件决定。学习过程自然地纳入了何时产生输出,而无需对模型或算法进行其他更改。通过跳过第一个事件之后的剩余输入序列,前向和后向训练传递都可以显著缩短。RC训练还显著减少了推理期间的洞察时间,且准确率仅有微幅下降。通过改变阈值或奖励输出熵的正则化参数,可以调节所需的速度-准确率权衡。我们在两个序列分类的玩具问题中,以及在一个时间编码的MNIST数据集中验证了这些结论,我们的RC模型在第一个输入时间步后达到了99.19%的准确率,超越了SNN时间编码的现有最优水平;此外在Google Speech Commands的口语单词分类中,也优于未经过RC训练的LSTM早期推理方法。

英文摘要:

Biological spiking neural networks (SNNs) can temporally encode information in their outputs, e.g. in the rank order in which neurons fire, whereas artificial neural networks (ANNs) conventionally do not. As a result, models of SNNs for neuromorphic computing are regarded as potentially more rapid and efficient than ANNs when dealing with temporal input. On the other hand, ANNs are simpler to train, and usually achieve superior performance. Here we show that temporal coding such as rank coding (RC) inspired by SNNs can also be applied to conventional ANNs such as LSTMs, and leads to computational savings and speedups. In our RC for ANNs, we apply backpropagation through time using the standard real-valued activations, but only from a strategically early time step of each sequential input example, decided by a threshold-crossing event. Learning then incorporates naturally also *when* to produce an output, without other changes to the model or the algorithm. Both the forward and the backward training pass can be significantly shortened by skipping the remaining input sequence after that first event. RC-training also significantly reduces time-to-insight during inference, with a minimal decrease in accuracy. The desired speed-accuracy trade-off is tunable by varying the threshold or a regularization parameter that rewards output entropy. We demonstrate these in two toy problems of sequence classification, and in a temporally-encoded MNIST dataset where our RC model achieves 99.19% accuracy after the first input time-step, outperforming the state of the art in temporal coding with SNNs, as well as in spoken-word classification of Google Speech Commands, outperforming non-RC-trained early inference with LSTMs.

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

↑