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

Shuaijie Shen, Chao Wang, Renzhuo Huang, Yan Zhong, Qinghai Guo +3 more
8/27/2024
cs.CLcs.LGcs.NE

No official code found. Best implementation: shenshuaijie/SDN (23 stars, MIT, last commit 2026-03-25).

Abstract

Known as low energy consumption networks, spiking neural networks (SNNs) have gained a lot of attention within the past decades. While SNNs are increasing competitive with artificial neural networks (ANNs) for vision tasks, they are rarely used for long sequence tasks, despite their intrinsic temporal dynamics. In this work, we develop spiking state space models (SpikingSSMs) for long sequence learning by leveraging on the sequence learning abilities of state space models (SSMs). Inspired by dendritic neuron structure, we hierarchically integrate neuronal dynamics with the original SSM block, meanwhile realizing sparse synaptic computation. Furthermore, to solve the conflict of event-driven neuronal dynamics with parallel computing, we propose a light-weight surrogate dynamic network which accurately predicts the after-reset membrane potential and compatible to learnable thresholds, enabling orders of acceleration in training speed compared with conventional iterative methods. On the long range arena benchmark task, SpikingSSM achieves competitive performance to state-of-the-art SSMs meanwhile realizing on average 90\% of network sparsity. On language modeling, our network significantly surpasses existing spiking large language models (spikingLLMs) on the WikiText-103 dataset with only a third of the model size, demonstrating its potential as backbone architecture for low computation cost LLMs.

View on arXivView PDF

Code Implementations(1)

shenshuaijie/SDNCommunity100%
MIT

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

236Python, Jupyter NotebookDec 12, 20246 months agoMIT

Similar Papers

Cite this paper

@article{shen2024spikingssms,
  title  = {SpikingSSMs: Learning Long Sequences with Sparse and Parallel Spiking State Space Models},
  author = {Shuaijie Shen and Chao Wang and Renzhuo Huang and Yan Zhong and Qinghai Guo and Zhichao Lu and Jianguo Zhang and Luziwei Leng},
  year   = {2024},
  eprint = {2408.14909},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.14909v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.14909.svg)](https://codeofpaper.com/paper/2408.14909)

Discussion