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

平衡态隐微分法训练反馈脉冲神经网络

Training Feedback Spiking Neural Networks by Implicit Differentiation on the Equilibrium State

Peking University(北京大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院);Center for Data Science, Academy for Advanced Interdisciplinary Studies, Peking University(北京大学前沿交叉学科研究院数据科学研究中心);Pazhou Lab(琶洲实验室)

Mingqing Xiao, Qingyan Meng, Zongpeng Zhang, Yisen Wang, Zhouchen Lin

摘要:

脉冲神经网络(SNN)是一种大脑启发的模型,能够在神经形态硬件上实现节能。然而,由于尖峰神经元模型的不连续性,SNN的监督训练仍然是一个困难的问题。大多数现有的方法模仿人工神经网络的反向传播框架和前馈结构,并使用代理导数或计算相对于尖峰时间的梯度来处理问题。这些方法要么积累近似误差,要么只通过现有的尖峰信号有限地传播信息,并且通常需要沿着时间步长的信息传播,具有较大的存储成本和生物学上的不可信性。在这项工作中,我们考虑反馈脉冲神经网络,这是更像大脑,并提出了一种新的训练方法,不依赖于精确的反向正向计算。首先,我们证明了具有反馈连接的SNN的平均放电率将随着时间的推移逐渐演化到一个平衡状态,它遵循一个不动点方程。然后,通过将反馈SNN的前向计算视为该方程的黑盒求解器,并利用方程的隐式微分,我们可以计算参数的梯度,而无需考虑精确的前向过程。以这种方式,前向和后向过程被解耦,因此避免了不可微尖峰函数的问题。我们还简要地讨论了隐式微分的生物相容性,它只需要计算另一个平衡。在MNIST、Fashion-MNIST、N-MNIST、CIFAR-10和CIFAR-100上的大量实验证明了我们的方法在少量时间步长内具有更少神经元和参数的反馈模型的优越性能。我们的代码可以在https://github.com/pkuxmq/IDE-FSNN上找到。

英文摘要:

Spiking neural networks (SNNs) are brain-inspired models that enable energy-efficient implementation on neuromorphic hardware. However, the supervised training of SNNs remains a hard problem due to the discontinuity of the spiking neuron model. Most existing methods imitate the backpropagation framework and feedforward architectures for artificial neural networks, and use surrogate derivatives or compute gradients with respect to the spiking time to deal with the problem. These approaches either accumulate approximation errors or only propagate information limitedly through existing spikes, and usually require information propagation along time steps with large memory costs and biological implausibility. In this work, we consider feedback spiking neural networks, which are more brain-like, and propose a novel training method that does not rely on the exact reverse of the forward computation. First, we show that the average firing rates of SNNs with feedback connections would gradually evolve to an equilibrium state along time, which follows a fixed-point equation. Then by viewing the forward computation of feedback SNNs as a black-box solver for this equation, and leveraging the implicit differentiation on the equation, we can compute the gradient for parameters without considering the exact forward procedure. In this way, the forward and backward procedures are decoupled and therefore the problem of non-differentiable spiking functions is avoided. We also briefly discuss the biological plausibility of implicit differentiation, which only requires computing another equilibrium. Extensive experiments on MNIST, Fashion-MNIST, N-MNIST, CIFAR-10, and CIFAR-100 demonstrate the superior performance of our method for feedback models with fewer neurons and parameters in a small number of time steps. Our code is avaiable at https://github.com/pkuxmq/IDE-FSNN.

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

↑