arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.14964cs.NEq-bio.NC
收藏

阐明脉冲神经网络中替代梯度学习的理论基础

Elucidating the theoretical underpinnings of surrogate gradient learning in spiking neural networks

Julia Gygax, Friedemann Zenke

AI总结:

该研究探讨了脉冲神经网络中替代梯度的理论基础,证明其与随机自动微分和神经元逃逸噪声函数的关系,并证实其在随机多层网络中的有效性。

摘要:

训练脉冲神经网络以逼近通用函数,对于研究大脑中的信息处理和神经形态计算至关重要。然而,脉冲的二值特性给基于直接梯度的训练带来了挑战。替代梯度在规避这一问题上取得了经验上的成功,但其理论基础仍然难以捉摸。在此,我们研究了替代梯度与两种理论基础扎实的方法之间的关系。一方面,我们考虑了平滑概率模型,由于缺乏对自动微分的支持,它们在训练多层脉冲神经网络时不切实际,但能为单个神经元提供与替代梯度等效的导数。另一方面,我们研究了随机自动微分,它与离散随机性兼容,但尚未被用于训练脉冲神经网络。我们发现,后者为替代梯度在随机脉冲神经网络中提供了理论基础,其中替代导数与神经元逃逸噪声函数的导数相匹配。这一发现支持了替代梯度在实践中的有效性,并表明它们适用于随机脉冲神经网络。然而,尽管替代梯度与随机自动微分有关,但它们通常不是替代损失的梯度。尽管如此,我们在经验上证实了替代梯度在随机多层脉冲神经网络中的有效性,并讨论了它们与确定性网络作为特例时的关系。我们的工作为替代梯度及在随机脉冲神经网络中选择合适的替代导数提供了理论支持。

英文摘要:

Training spiking neural networks to approximate universal functions is essential for studying information processing in the brain and for neuromorphic computing. Yet the binary nature of spikes poses a challenge for direct gradient-based training. Surrogate gradients have been empirically successful in circumventing this problem, but their theoretical foundation remains elusive. Here, we investigate the relation of surrogate gradients to two theoretically well-founded approaches. On the one hand, we consider smoothed probabilistic models, which, due to the lack of support for automatic differentiation, are impractical for training multi-layer spiking neural networks but provide derivatives equivalent to surrogate gradients for single neurons. On the other hand, we investigate stochastic automatic differentiation, which is compatible with discrete randomness but has not yet been used to train spiking neural networks. We find that the latter gives surrogate gradients a theoretical basis in stochastic spiking neural networks, where the surrogate derivative matches the derivative of the neuronal escape noise function. This finding supports the effectiveness of surrogate gradients in practice and suggests their suitability for stochastic spiking neural networks. However, surrogate gradients are generally not gradients of a surrogate loss despite their relation to stochastic automatic differentiation. Nevertheless, we empirically confirm the effectiveness of surrogate gradients in stochastic multi-layer spiking neural networks and discuss their relation to deterministic networks as a special case. Our work gives theoretical support to surrogate gradients and the choice of a suitable surrogate derivative in stochastic spiking neural networks.

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

↑