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

PRF:用于脉冲神经网络长序列学习的并行共振点火神经元

PRF: Parallel Resonate and Fire Neuron for Long Sequence Learning in Spiking Neural Networks

Yulong Huang, Zunchang Liu, Changchun Feng, Xiaopeng Lin, Hongwei Ren, Haotian Fu, Yue Zhou, Hong Xing, Bojun Cheng

AI总结:

本研究提出解耦复位方法与并行共振点火(PRF)神经元,在提升脉冲神经网络长序列学习训练效率的同时保证性能,大幅降低能耗且在长程任务上优于Transformer。

摘要:

近年来,业界对高效能、高效率的长序列建模需求日益增长,状态空间模型(State Space Models, SSMs)已被证明在长序列任务中效果显著。为进一步降低能耗,可通过脉冲函数将SSMs适配到脉冲神经网络(Spiking Neural Networks, SNNs)中。然而,当前的脉冲化SSMs方法在推理阶段仍依赖浮点矩阵向量乘法,削弱了SNNs的能耗优势。本工作同时解决了SNNs中长序列学习的效率与性能挑战。首先,我们提出一种用于并行脉冲神经元训练的解耦复位方法,将典型的漏积分点火(Leaky Integrate-and-Fire, LIF)模型的训练时间从$O(L^2)$降至$O(L\text{log}L)$,在序列长度1024到32768的场景下,训练速度有效提升了6.57倍至16.50倍。据我们所知,这是首次实现带复位机制的并行计算,且计算结果与串行版本完全等价。其次,为捕获长程依赖,我们提出并行共振点火(Parallel Resonate and Fire, PRF)神经元,它利用复域中可微复位函数的共振机制驱动的振荡膜电位,在保持并行训练的同时实现高效长序列学习。最后,我们验证了所提出的基于PRF的脉冲驱动架构能达到与结构化SSMs(Structured SSMs, S4)相当的性能,能耗降低两个数量级,在长程竞技场(Long Range Arena)任务上优于Transformer。

英文摘要:

Recently, there is growing demand for effective and efficient long sequence modeling, with State Space Models (SSMs) proving to be effective for long sequence tasks. To further reduce energy consumption, SSMs can be adapted to Spiking Neural Networks (SNNs) using spiking functions. However, current spiking-formalized SSMs approaches still rely on float-point matrix-vector multiplication during inference, undermining SNNs' energy advantage. In this work, we address the efficiency and performance challenges of long sequence learning in SNNs simultaneously. First, we propose a decoupled reset method for parallel spiking neuron training, reducing the typical Leaky Integrate-and-Fire (LIF) model's training time from $O(L^2)$ to $O(L\log L)$, effectively speeding up the training by $6.57 \times$ to $16.50 \times$ on sequence lengths $1,024$ to $32,768$. To our best knowledge, this is the first time that parallel computation with a reset mechanism is implemented achieving equivalence to its sequential counterpart. Secondly, to capture long-range dependencies, we propose a Parallel Resonate and Fire (PRF) neuron, which leverages an oscillating membrane potential driven by a resonate mechanism from a differentiable reset function in the complex domain. The PRF enables efficient long sequence learning while maintaining parallel training. Finally, we demonstrate that the proposed spike-driven architecture using PRF achieves performance comparable to Structured SSMs (S4), with two orders of magnitude reduction in energy consumption, outperforming Transformer on Long Range Arena tasks.

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

↑