Advancing Spiking Neural Networks for Sequential Modeling with Central Pattern Generators

Changze Lv, Dongqi Han, Yansen Wang, Xiaoqing Zheng, Xuanjing Huang +1 more
2/3/2026

No official code found. Best implementation: microsoft/SeqSNN (89 stars, MIT, last commit 2026-02-08).

Abstract

Spiking neural networks (SNNs) represent a promising approach to developing artificial neural networks that are both energy-efficient and biologically plausible. However, applying SNNs to sequential tasks, such as text classification and time-series forecasting, has been hindered by the challenge of creating an effective and hardware-friendly spike-form positional encoding (PE) strategy. Drawing inspiration from the central pattern generators (CPGs) in the human brain, which produce rhythmic patterned outputs without requiring rhythmic inputs, we propose a novel PE technique for SNNs, termed CPG-PE. We demonstrate that the commonly used sinusoidal PE is mathematically a specific solution to the membrane potential dynamics of a particular CPG. Moreover, extensive experiments across various domains, including time-series forecasting, natural language processing, and image classification, show that SNNs with CPG-PE outperform their conventional counterparts. Additionally, we perform analysis experiments to elucidate the mechanism through which SNNs encode positional information and to explore the function of CPGs in the human brain. This investigation may offer valuable insights into the fundamental principles of neural computation. Our code is available at https://github.com/microsoft/SeqSNN.

View on arXivView PDF

Code Implementations(1)

microsoft/SeqSNNCommunity100%
MIT
8910PythonMay 23, 20248 months agoMIT

Similar Papers

Cite this paper

@article{lv2026advancing,
  title  = {Advancing Spiking Neural Networks for Sequential Modeling with Central Pattern Generators},
  author = {Changze Lv and Dongqi Han and Yansen Wang and Xiaoqing Zheng and Xuanjing Huang and Dongsheng Li},
  year   = {2026},
  eprint = {2405.14362},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.14362},
  url    = {https://arxiv.org/abs/2405.14362},
  journal = {NEURIPS 2024 2024}
}

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/2405.14362.svg)](https://codeofpaper.com/paper/2405.14362)

Discussion