Skip to main content
QUICK REVIEW

[Paper 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 ComputingEngineering3 citations
TL;DR

This paper introduces P-SpikeSSM, a novel probabilistic spiking state space model that extends spiking neural networks (SNNs) by replacing traditional LIF neurons with n-dimensional hidden states and learnable dynamics, enabling state-of-the-art performance on long-range dependency tasks like the Long Range Arena and Speech Command datasets, while achieving up to 30× energy efficiency via sparse spiking patterns and efficient inference on neuromorphic hardware.

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.

Motivation & Objective

  • To address the limited performance of existing SNNs on long-range dependency tasks due to constraints in traditional LIF neuron dynamics.
  • To enhance the representational capacity of SNNs by replacing scalar membrane potentials with n-dimensional hidden states and learnable parameters.
  • To develop a scalable, differentiable training framework for deep SNNs that handles the non-differentiability of stochastic spiking operations.
  • To enable energy-efficient inference on neuromorphic hardware by leveraging sparse spike activity and accumulative (ACC) operations.
  • To establish a new SOTA benchmark for SNNs in long-range sequence modeling, surpassing both conventional SNNs and non-spiking transformers on key benchmarks.

Proposed method

  • Proposes a stochastic spiking structured state space model (S6) where each neuron maintains an n-dimensional hidden state, enabling richer temporal dynamics than scalar LIF models.
  • Introduces learnable parameters for governing neuronal dynamics, allowing neurons to adapt to diverse temporal dependency patterns across layers.
  • Employs a surrogate gradient method using the expectation of the spike indicator $\mathbb{E}[S_t]$, enabling backpropagation through the non-differentiable stochastic spiking function.
  • Utilizes HiPPO matrices for initializing the state transition matrix $A$, ensuring stable and rapid convergence across tasks.
  • Designs an architecture that replaces floating-point matrix multiplications with spike-based, event-driven computation, enabling efficient inference on neuromorphic hardware.
  • Applies a normalized operations framework to quantify energy efficiency, computing $Norm\#OPS = 0.17$ and achieving an energy efficiency factor $e \approx 30$ for the ListOps task.
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

Experimental results

Research questions

  • RQ1Can a probabilistic spiking state space model with learnable, high-dimensional hidden states outperform standard LIF-based SNNs on long-range dependency tasks?
  • RQ2How can the non-differentiability of stochastic spiking be effectively addressed to enable end-to-end training of deep SNNs?
  • RQ3To what extent can S6-based SNNs achieve energy efficiency through sparse spiking and ACC operations compared to standard ANNs?
  • RQ4Does the proposed model surpass non-spiking transformer architectures in performance on long-context sequence tasks while maintaining low computational and energy costs?
  • RQ5Can the S6 framework be scaled to deep SNN architectures and achieve state-of-the-art results across diverse long-range benchmarks?

Key findings

  • The P-SpikeSSM model achieves state-of-the-art performance among SNNs on the Long Range Arena benchmark, outperforming prior SNNs on all five evaluated tasks.
  • On the ListOps task, the model achieves an energy efficiency factor $e \approx 30$, indicating a 30× reduction in energy consumption compared to an equivalent non-spiking ANN.
  • The average parameter count across all LRA tasks is approximately 250K, representing a 2.4× reduction compared to transformer models of similar scale.
  • Histogram and KDE analysis (Fig. 4) show that ~90% of S6 neurons have near-zero spike probability over sequences, confirming a highly sparse spiking pattern.
  • The model demonstrates rapid convergence and optimal performance when the state matrix $A$ is initialized with HiPPO-legS matrices across most tasks.
  • The use of accumulative (ACC) operations instead of MAC operations reduces energy consumption by 5.1× compared to conventional multiply-accumulate units.
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.