Effective and Efficient Computation with Multiple-timescale Spiking Recurrent Neural Networks

Bojian Yin, Federico Corradi, Sander M. Bohté · OpenReview

Introduction

Standard Artificial Neural Networks (ANNs) are computationally powerful but energy-intensive, posing a significant challenge for "always-on" edge devices. Spiking Neural Networks (SNNs) offer a biologically inspired alternative, utilizing sparse, binary "spikes" to achieve high energy efficiency. However, SNNs traditionally face hurdles: the non-differentiable nature of the spiking function makes training difficult, and simple spiking neurons often lack the temporal memory needed for complex sequential tasks.

Researchers from CWI and IMEC address these challenges by introducing a Spiking Recurrent Neural Network (SRNN) utilizing adaptive spiking neurons. This architecture achieves state-of-the-art performance on temporal tasks while consuming 100x to 1000x less energy than traditional Recurrent Neural Networks (RNNs) like LSTMs.

Methodology: Adaptive Neurons and Learnable Dynamics

The core innovation lies in the use of adaptive spiking neurons. Unlike standard Leaky-Integrate-and-Fire (LIF) neurons, adaptive neurons feature a dynamic threshold. When a neuron spikes, its threshold increases and subsequently decays, creating multiple timescales of memory within a single unit.

Comparison of standard LIF (a, b) and adaptive spiking neuron (c, d) dynamics.

To optimize these dynamics, the authors made the time constants ($\tau_m$ and $\tau_{adp}$) trainable parameters. This allows the network to learn the ideal "memory length" for a specific task. Training is facilitated through surrogate gradients—smooth Gaussian approximations of the spike function—enabling the use of standard backpropagation-through-time (BPTT) within frameworks like PyTorch.

Network Architecture

The proposed SRNN architecture consists of multiple layers of these adaptive neurons, incorporating both forward and recurrent connections. This structure allows the network to process complex temporal patterns across different hierarchical levels.

Architecture of the Spiking Recurrent Neural Network (SRNN) with multiple layers and recurrent connections.

A key architectural detail is the "Readout Integrator" in the final output layer. Instead of counting raw spikes, this non-spiking integrator accumulates information over time, which proved more effective for classification tasks.

Experimental Results and Benchmarks

The SRNNs were evaluated on several challenging temporal benchmarks:

  • Spoken Heidelberg Digits (SHD): An audio dataset of spoken digits converted into spikes. The Adaptive SRNN achieved 84.4% accuracy, significantly outperforming standard LIF-based SNNs (71.4%).
  • Sequential MNIST (S-MNIST & PS-MNIST): Processing images pixel-by-pixel. The model reached 97.82% accuracy, nearing the performance of specialized ANN architectures.
  • ECG (QTDB): Successfully classifying different phases of heartbeats in electrocardiogram signals.

Energy Efficiency

The primary advantage of the SRNN is its efficiency. Based on 45nm CMOS hardware calculations, the Adaptive SRNN was found to be over 100x more energy-efficient than a standard RNN and nearly 1000x more efficient than an LSTM on the SHD task. This efficiency stems from high sparsity; neurons often fire less than once every 10-50 timesteps.

Conclusion and Future Outlook

This work demonstrates that SNNs are becoming competitive with mainstream AI architectures for sequential data processing. By introducing heterogeneity through learned time constants, the network develops a diverse library of temporal filters.

While the energy savings are currently theoretical and require specialized neuromorphic hardware (e.g., Intel Loihi) to be fully realized, the results are promising. Future work will focus on scaling these adaptive SRNNs to higher-dimensional tasks like high-resolution video and complex natural language processing, as well as addressing the high memory cost of training with BPTT on long sequences.

Summary updated

BibTeX
@inproceedings{yin2020effective,
  author = {Bojian Yin and Federico Corradi and Sander M. Bohté},
  title = {{Effective and Efficient Computation with Multiple-timescale Spiking Recurrent Neural Networks}},
  booktitle = {ICONS},
  year = {2020},
  doi = {10.1145/3407197.3407225},
}
Figure