arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02546cs.NE
收藏

将使用平衡传播训练的 SNN 扩展到卷积架构

Scaling SNNs Trained Using Equilibrium Propagation to Convolutional Architectures

Jiaqi Lin, Malyaban Bal, Abhronil Sengupta

AI总结:

本文首次提出用 EP 训练卷积脉冲收敛型 RNN,通过平均池化修正最大池化导致的梯度失配,并在 MNIST 与 FashionMNIST 上达到可比 BPTT 的先进性能。

摘要:

平衡传播(Equilibrium Propagation,EP)是一种生物学上合理的局部学习算法,最初为收敛型循环神经网络(RNN)开发,其中权重更新仅依赖于两个阶段中相连接的神经元状态。已有研究表明,当使用无穷小的微调因子时,EP 中的梯度计算可逼近通过时间反向传播(Backpropagation Through Time,BPTT)计算的梯度。这一特性使 EP 成为训练脉冲神经网络(Spiking Neural Networks,SNN)的有力候选,而 SNN 通常由 BPTT 训练。然而,在脉冲领域,以往关于 EP 的研究仅限于包含少量线性层的架构。在本工作中,我们首次给出了使用 EP 训练卷积脉冲收敛型 RNN 的公式,弥合了脉冲与非脉冲收敛型 RNN 之间的差距。我们证明,对于脉冲收敛型 RNN,最大池化及其逆运算之间存在不匹配,导致 EP 中梯度估计不准确。用平均池化替代它可解决该问题,并实现脉冲收敛型 RNN 的准确梯度估计。我们还强调了 EP 相比 BPTT 的内存效率。在由 EP 训练的 SNN 范畴内,我们的实验结果表明其在 MNIST 和 FashionMNIST 数据集上达到最先进性能,测试错误率分别为 0.97% 和 8.89%。这些结果与由 BPTT 训练的收敛型 RNN 和 SNN 相当。这些发现强调 EP 是片上训练的最佳选择,也是一种计算误差梯度的生物学合理方法。

英文摘要:

Equilibrium Propagation (EP) is a biologically plausible local learning algorithm initially developed for convergent recurrent neural networks (RNNs), where weight updates rely solely on the connecting neuron states across two phases. The gradient calculations in EP have been shown to approximate the gradients computed by Backpropagation Through Time (BPTT) when an infinitesimally small nudge factor is used. This property makes EP a powerful candidate for training Spiking Neural Networks (SNNs), which are commonly trained by BPTT. However, in the spiking domain, previous studies on EP have been limited to architectures involving few linear layers. In this work, for the first time we provide a formulation for training convolutional spiking convergent RNNs using EP, bridging the gap between spiking and non-spiking convergent RNNs. We demonstrate that for spiking convergent RNNs, there is a mismatch in the maximum pooling and its inverse operation, leading to inaccurate gradient estimation in EP. Substituting this with average pooling resolves this issue and enables accurate gradient estimation for spiking convergent RNNs. We also highlight the memory efficiency of EP compared to BPTT. In the regime of SNNs trained by EP, our experimental results indicate state-of-the-art performance on the MNIST and FashionMNIST datasets, with test errors of 0.97% and 8.89%, respectively. These results are comparable to those of convergent RNNs and SNNs trained by BPTT. These findings underscore EP as an optimal choice for on-chip training and a biologically-plausible method for computing error gradients.

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

↑