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

面向脉冲神经网络的膜电位批归一化

Membrane Potential Batch Normalization for Spiking Neural Networks

Intelligent Science & Technology Academy of CASIC(中国航天科工智能科学技术研究院);Scientific Research Laboratory of Aerospace Intelligent Systems and Technology(航天智能系统技术科研实验室)

Yufei Guo, Yuhan Zhang, Yuanpei Chen, Weihang Peng, Xiaode Liu, Liwen Zhang, Xuhui Huang, Zhe Ma

AI总结:

针对SNN中卷积后BN会被膜电位更新再次扰动的问题,提出在发放函数前归一化膜电位的MPBN,并通过训练与推理解耦的重参数化将其折叠进阈值,实现无推理开销且性能更优。

摘要:

作为传统神经网络(CNNs)的节能替代方案之一,脉冲神经网络(SNNs)近年来受到越来越多的关注。为训练深度模型,SNNs中提出了一些有效的批归一化(BN)技术。所有这些BN都被建议像CNNs中通常所做的那样在卷积层之后使用。然而,脉冲神经元具有复杂得多的时空动力学。BN层之后经过调节的数据流会在发放函数(即非线性激活)之前再次受到膜电位更新操作的干扰。因此,我们主张在发放函数之前再添加一个BN层,以再次归一化膜电位,称为MPBN。为消除MPBN带来的时间开销,我们还提出了一种训练与推理解耦的重参数化技术,将训练后的MPBN折叠进发放阈值。借助该重参数化技术,MPBN在推理时不会引入任何额外的时间负担。此外,MPBN还可以采用逐元素形式,而卷积层之后的这些BN只能使用逐通道形式。实验结果表明,所提出的MPBN在流行的非脉冲静态数据集和神经形态数据集上均表现良好。我们的代码已在MPBN(https://github.com/yfguo91/MPBN)开源。

英文摘要:

As one of the energy-efficient alternatives of conventional neural networks (CNNs), spiking neural networks (SNNs) have gained more and more interest recently. To train the deep models, some effective batch normalization (BN) techniques are proposed in SNNs. All these BNs are suggested to be used after the convolution layer as usually doing in CNNs. However, the spiking neuron is much more complex with the spatio-temporal dynamics. The regulated data flow after the BN layer will be disturbed again by the membrane potential updating operation before the firing function, i.e., the nonlinear activation. Therefore, we advocate adding another BN layer before the firing function to normalize the membrane potential again, called MPBN. To eliminate the induced time cost of MPBN, we also propose a training-inference-decoupled re-parameterization technique to fold the trained MPBN into the firing threshold. With the re-parameterization technique, the MPBN will not introduce any extra time burden in the inference. Furthermore, the MPBN can also adopt the element-wised form, while these BNs after the convolution layer can only use the channel-wised form. Experimental results show that the proposed MPBN performs well on both popular non-spiking static and neuromorphic datasets. Our code is open-sourced at \href{https://github.com/yfguo91/MPBN}{MPBN}.

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

↑