SpikingSSMs: Learning Long Sequences with Sparse and Parallel Spiking State Space Models

Shuaijie Shen, Chao Wang, Renzhuo Huang, Yan Zhong, Qinghai Guo, Zhichao Lu, Jianguo Zhang, Luziwei Leng

Abstract

Spiking Neural Networks (SNNs) are valued for their energy efficiency on neuromorphic hardware, yet they struggle with long-sequence training due to the sequential nature of neuronal resets. Conversely, State Space Models (SSMs) provide robust long-range modeling but lack biological sparsity. SpikingSSMs unify these paradigms by embedding Leaky Integrate-and-Fire (LIF) neurons within SSM blocks. By introducing a "Surrogate Dynamic Network" (SDN) to parallelize the training process, this architecture achieves state-of-the-art performance on long-sequence tasks with up to 100x training speedups and 90% network sparsity.

Introduction

The deep learning community currently faces a trade-off between the energy efficiency of SNNs and the scalability of SSMs. SNNs mimic biological neurons using discrete "spikes," replacing expensive multiplications with additions. However, their "reset" mechanism—where a neuron's voltage drops after firing—is inherently sequential, making them difficult to train on long sequences. SSMs like S4 or Mamba have revolutionized long-sequence modeling through parallel training but lack the low-power profile of SNNs. SpikingSSMs resolve this "parallelization conflict" by maintaining event-driven sparsity while leveraging parallel computing for sequences tens of thousands of steps long.

Methodology: The SpikingSSM Architecture

The core innovation is the SpikingSSM architecture, which replaces standard non-linear activations in an SSM block with a Leaky Integrate-and-Fire (LIF) neuron model. This integration creates a multi-time-scale processing unit inspired by dendritic structures.

Figure 1: (a) Detailed SpikingSSM cell architecture showing data flow between parameters and operations. (b) Comparison of computational graphs between standard SSMs and SpikingSSMs.

To ensure scalability, the authors implement Learnable Thresholds, treating the firing threshold as an optimizable parameter. This allows the model to adapt to different firing regimes while encouraging a bimodal distribution of membrane potentials. This distribution reduces "quantization error"—the loss of information when converting continuous voltages to binary spikes—which has historically hampered SNN performance.

Parallelizing the Sequential: Surrogate Dynamic Networks (SDN)

Standard SNN training (e.g., BPTT) requires iterating through every time step because a spike at time $t$ alters the state at $t+1$. To bypass this bottleneck, the authors introduce the Surrogate Dynamic Network (SDN). The SDN is a compact, pre-trained 4-layer CNN that predicts the neuron's membrane potential and spike train in parallel.

Figure 2: Comparison of membrane potential dynamics across steps for No Reset, Hard Reset, and the proposed SDN approximation. The SDN accurately captures the spiking behavior in a parallelizable format.

During training, the SDN turns sequential dependencies into parallelizable convolutions. For inference, the SDN is discarded, and the model reverts to a standard, efficient SNN.

Experimental Evaluation

The model was evaluated on several benchmarks including the Long Range Arena (LRA), WikiText-103, and Sequential MNIST (sMNIST).

Key Results

  • Massive Training Speedup: On 8,000-step sequences, SpikingSSM trained 101.2x faster than traditional SNN methods (BPTT/SLTT).
  • Sparsity and Energy Efficiency: The model naturally achieves ~90% sparsity. In hardware terms, this means 90% of synaptic operations are skipped, drastically reducing energy consumption.
  • State-of-the-Art Performance: On the LRA benchmark, it achieved competitive results with non-spiking SSMs and successfully solved the Path-X task (16,384 steps).
  • Superior Language Modeling: On WikiText-103, SpikingSSM outperformed SpikeGPT, achieving a lower perplexity (33.94 vs 39.75) with only one-third of the parameters (75M vs 213M).

Conclusion and Future Work

SpikingSSMs demonstrate that SNNs can be competitive in the large-scale modeling space if designed to handle long-range dependencies. While the SDN provides a highly accurate approximation, a slight performance gap remains compared to perfect iterative simulation. Future work includes validating these gains on physical neuromorphic hardware and scaling the architecture to the multi-billion parameter level.

Summary updated

BibTeX
@inproceedings{shen2025spikingssms,
  author = {Shuaijie Shen and Chao Wang and Renzhuo Huang and Yan Zhong and Qinghai Guo and Zhichao Lu and Jianguo Zhang and Luziwei Leng},
  title = {{SpikingSSMs: Learning Long Sequences with Sparse and Parallel Spiking State Space Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34245},
}
Figure