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

当生物启发计算遇上深度学习:从人工神经网络生成低延迟、高精度且高能效的脉冲神经网络

When Bio-Inspired Computing meets Deep Learning: Low-Latency, Accurate, & Energy-Efficient Spiking Neural Networks from Artificial Neural Networks

University of Southern California(南加州大学);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室)

Gourav Datta, Zeyu Liu, James Diffenderfer, Bhavya Kailkhura, Peter A. Beerel

AI总结:

该研究提出一种新型ANN-to-SNN转换框架,通过修改IF神经元模型、调整BN层偏置减少时间步,结合带代理梯度的细粒度L1正则化提升脉冲稀疏性,实现了低延迟、低能耗、高精度的无损SNN转换。

摘要:

受生物启发的脉冲神经网络(Spiking Neural Networks, SNN)如今已展现出与复杂卷积神经网络(convolutional neural networks, CNN)相当的精度,同时在神经形态硬件上部署时具备出色的能效与延迟效率。尤其是ANN-to-SNN转换方法,近期在构建深度SNN领域获得了广泛关注,这类方法在复杂图像识别任务上的测试精度接近当前最优(state-of-the-art, SOTA)水平。\n然而,先进的ANN-to-SNN转换方法表明,要实现无损转换,SNN的时间步数量必须与ANN激活函数中的量化步数量相等。大幅减少时间步数量会显著提升转换误差。此外,在神经形态芯片中主导计算能耗的SNN脉冲活动,并不会随时间步数量的减少而成比例下降。\n为解决精度损失问题,我们提出了一种全新的ANN-to-SNN转换框架,其所需的时间步数量较SOTA转换方法呈指数级降低。该框架对SNN的积分放电(integrate-and-fire, IF)神经元模型进行了修改,模型复杂度保持不变,同时调整了已训练ANN中每个批归一化(batch normalization, BN)层的偏置项。\n为解决脉冲活动带来的能耗问题,我们提出使用带有代理梯度的细粒度L1正则化器来训练源ANN,以提升转换后SNN的脉冲稀疏性。\n因此,我们提出的框架可生成无损SNN,兼具超低延迟、超低计算能耗(得益于极低的时间步数与高脉冲稀疏性)以及超高测试精度——例如在ImageNet数据集上仅需4个时间步即可达到73.30%的精度。

英文摘要:

Bio-inspired Spiking Neural Networks (SNN) are now demonstrating comparable accuracy to intricate convolutional neural networks (CNN), all while delivering remarkable energy and latency efficiency when deployed on neuromorphic hardware. In particular, ANN-to-SNN conversion has recently gained significant traction in developing deep SNNs with close to state-of-the-art (SOTA) test accuracy on complex image recognition tasks. However, advanced ANN-to-SNN conversion approaches demonstrate that for lossless conversion, the number of SNN time steps must equal the number of quantization steps in the ANN activation function. Reducing the number of time steps significantly increases the conversion error. Moreover, the spiking activity of the SNN, which dominates the compute energy in neuromorphic chips, does not reduce proportionally with the number of time steps. To mitigate the accuracy concern, we propose a novel ANN-to-SNN conversion framework, that incurs an exponentially lower number of time steps compared to that required in the SOTA conversion approaches. Our framework modifies the SNN integrate-and-fire (IF) neuron model with identical complexity and shifts the bias term of each batch normalization (BN) layer in the trained ANN. To mitigate the spiking activity concern, we propose training the source ANN with a fine-grained L1 regularizer with surrogate gradients that encourages high spike sparsity in the converted SNN. Our proposed framework thus yields lossless SNNs with ultra-low latency, ultra-low compute energy, thanks to the ultra-low timesteps and high spike sparsity, and ultra-high test accuracy, for example, 73.30% with only 4 time steps on the ImageNet dataset.

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

↑