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

重新思考SNN在线训练与部署:通过混合驱动LIF模型实现梯度一致学习

Rethinking SNN Online Training and Deployment: Gradient-Coherent Learning via Hybrid-Driven LIF Model

School of Computer Science, Peking University(北京大学计算机科学学院);State Key Laboratory for Multimedia Information Processing, Peking University(北京大学多媒体信息处理国家重点实验室);Beijing Key Laboratory of Brain-inspired Spiking Large Models, Peking University(北京脑启发式脉冲大规模模型重点实验室);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院)

Zecheng Hao, Yifan Huang, Zijie Xu, Wenxuan Liu, Yuanhong Tang, Zhaofei Yu, Tiejun Huang

AI总结:

本文提出混合驱动LIF模型,通过分离时间梯度和优化资源,突破传统SNN在线训练与部署的局限,实现性能和效率的提升。

摘要:

脉冲神经网络(SNNs)因其脑启发性和能效高而被认为在未来人工智能发展中具有巨大潜力。与传统的空间-时间反向传播(STBP)训练方法相比,在线训练可以有效避免GPU内存爆炸的风险。然而,当前的在线学习框架无法解决前向和反向过程之间的梯度不一致问题,仅仅旨在优化GPU内存,导致在推理阶段的性能优势与基于STBP的模型相当。为了解决上述挑战,我们提出了混合驱动漏积分-放电(HD-LIF)模型家族,分别在放电阈值的上部和下部采用不同的脉冲计算机制。我们理论指出,我们的学习框架可以有效分离时间梯度并解决替代梯度的不一致问题,同时在学习精度、内存复杂度和能耗方面实现全阶段优化。实验结果表明,我们的方案能够实现多个评估指标的最先进性能,突破了传统SNN在线训练和部署的范式。代码可在https://github.com/hzc1208/HD_LIF处获取。

英文摘要:

Spiking Neural Networks (SNNs) are considered to have enormous potential in the future development of Artificial Intelligence due to their brain-inspired and energy-efficient properties. Compared to vanilla Spatial-Temporal Back-propagation (STBP) training methods, online training can effectively avoid the risk of GPU memory explosion. However, current online learning frameworks cannot tackle the gradient discrepancy problem between the forward and backward process, merely aiming to optimize the GPU memory, resulting in no performance advantages compared to the STBP-based models in the inference stage. To address the aforementioned challenges, we propose Hybrid-Driven Leaky Integrate-and-Fire (HD-LIF) model family for efficient online learning, which respectively adopt different spiking calculation mechanism in the upper-region and lower-region of the firing threshold. We theoretically point out that our learning framework can effectively separate temporal gradients and address the misalignment problem of surrogate gradients, as well as achieving full-stage optimization towards learning precision, memory complexity and power consumption. Experimental results have demonstrated that our scheme is enable to achieve state-of-the-art performance for multiple evaluation metrics, breaking through the traditional paradigm of SNN online training and deployment. Code is available at \href{https://github.com/hzc1208/HD_LIF}{here}.

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

↑