Skip to main content
QUICK REVIEW

[论文解读] P-SpikeSSM: Harnessing Probabilistic Spiking State Space Models for Long-Range Dependency Tasks

Malyaban Bal, Abhronil Sengupta|arXiv (Cornell University)|Jun 5, 2024
Advanced Memory and Neural ComputingEngineering被引用 3
一句话总结

该论文提出P-SpikeSSM,一种新型的随机脉冲状态空间模型,通过用n维隐藏状态和可学习动态替代传统LIF神经元,扩展了脉冲神经网络(SNNs)的能力,使其在长距离依赖任务(如Long Range Arena和Speech Command数据集)上达到最先进性能,同时通过稀疏脉冲模式和神经形态硬件上的高效推理,实现高达30倍的能效提升。

ABSTRACT

Spiking neural networks (SNNs) are posited as a computationally efficient and biologically plausible alternative to conventional neural architectures, with their core computational framework primarily using the leaky integrate-and-fire (LIF) neuron model. However, the limited hidden state representation of LIF neurons, characterized by a scalar membrane potential, and sequential spike generation process, poses challenges for effectively developing scalable spiking models to address long-range dependencies in sequence learning tasks. In this study, we develop a scalable probabilistic spiking learning framework for long-range dependency tasks leveraging the fundamentals of state space models. Unlike LIF neurons that rely on the deterministic Heaviside function for a sequential process of spike generation, we introduce a SpikeSampler layer that samples spikes stochastically based on an SSM-based neuronal model while allowing parallel computations. To address non-differentiability of the spiking operation and enable effective training, we also propose a surrogate function tailored for the stochastic nature of the SpikeSampler layer. To enhance inter-neuron communication, we introduce the SpikeMixer block, which integrates spikes from neuron populations in each layer. This is followed by a ClampFuse layer, incorporating a residual connection to capture complex dependencies, enabling scalability of the model. Our models attain state-of-the-art performance among SNN models across diverse long-range dependency tasks, encompassing the Long Range Arena benchmark, permuted sequential MNIST, and the Speech Command dataset and demonstrate sparse spiking pattern highlighting its computational efficiency.

研究动机与目标

  • 为解决现有SNNs在长距离依赖任务中因传统LIF神经元动态限制而导致的性能受限问题。
  • 通过用n维隐藏状态和可学习参数替代标量膜电位,增强SNNs的表征能力。
  • 开发一种可扩展的、可微分的训练框架,用于深层SNNs,以应对随机脉冲操作的不可微性。
  • 通过利用稀疏脉冲活动和累积(ACC)操作,实现在神经形态硬件上的能效推理。
  • 在长序列建模任务中建立SNNs的新SOTA基准,超越传统SNNs和非脉冲Transformer架构在关键基准上的表现。

提出的方法

  • 提出一种基于随机脉冲结构化状态空间模型(S6)的神经网络,其中每个神经元维持一个n维隐藏状态,使时间动态比标量LIF模型更丰富。
  • 引入可学习参数以控制神经元动态,使神经元能够适应不同层中多样的时间依赖模式。
  • 采用基于脉冲指示器期望值 $\mathbb{E}[S_t]$ 的代理梯度方法,实现对不可微分随机脉冲函数的反向传播。
  • 使用HiPPO矩阵初始化状态转移矩阵 $A$,确保在各类任务中实现稳定且快速的收敛。
  • 设计一种架构,将浮点数矩阵乘法替换为基于脉冲的事件驱动计算,实现在神经形态硬件上的高效推理。
  • 应用归一化操作框架量化能效,计算得 $Norm\#OPS = 0.17$,并在ListOps任务中实现能效因子 $e \approx 30$。
Figure 1: High-level overview of the underlying dynamics of a conventional LIF neuronal model ( $left$ ) compared to our proposed S6 model ( $right$ ) . In contrast to the single-dimensional membrane potential $u[t]$ representing the hidden state in an LIF model at time $t$ , our approach expands th
Figure 1: High-level overview of the underlying dynamics of a conventional LIF neuronal model ( $left$ ) compared to our proposed S6 model ( $right$ ) . In contrast to the single-dimensional membrane potential $u[t]$ representing the hidden state in an LIF model at time $t$ , our approach expands th

实验结果

研究问题

  • RQ1具有可学习、高维隐藏状态的概率脉冲状态空间模型是否能在长距离依赖任务中超越基于标准LIF的SNNs?
  • RQ2如何有效解决随机脉冲不可微性问题,以实现深层SNNs的端到端训练?
  • RQ3与标准人工神经网络(ANNs)相比,S6基SNNs在多大程度上能通过稀疏脉冲和ACC操作实现能效提升?
  • RQ4所提出的模型是否在长上下文序列任务中超越非脉冲Transformer架构,同时保持低计算和能耗?
  • RQ5S6框架是否可扩展至深层SNN架构,并在多样化的长距离基准上实现SOTA结果?

主要发现

  • P-SpikeSSM在Long Range Arena基准上实现了SNNs中的最先进性能,在所有五项评估任务中均优于先前SNNs。
  • 在ListOps任务中,模型实现了约 $e \approx 30$ 的能效因子,表明其能耗相比等效的非脉冲ANN降低了30倍。
  • 所有LRA任务的平均参数量约为250K,相比同规模的Transformer模型减少了2.4倍。
  • 直方图和KDE分析(图4)显示,约90%的S6神经元在序列中具有接近零的脉冲概率,证实了高度稀疏的脉冲模式。
  • 当使用HiPPO-legS矩阵初始化状态矩阵 $A$ 时,模型在大多数任务中表现出快速收敛和最优性能。
  • 与传统乘加单元相比,使用累积(ACC)操作而非MAC操作,使能耗降低了5.1倍。
Figure 2: Results obtained after passing randomly sampled inputs from ListOps dataset of LRA benchmark through our S6-based SNN model. (a) Layer-wise spiking activity of neurons, measured as the average number of active neurons (spiking) in a layer at a particular time step, of the model is given wi
Figure 2: Results obtained after passing randomly sampled inputs from ListOps dataset of LRA benchmark through our S6-based SNN model. (a) Layer-wise spiking activity of neurons, measured as the average number of active neurons (spiking) in a layer at a particular time step, of the model is given wi

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。