Introduction
Spiking Neural Networks (SNNs) represent the "third generation" of neural network architectures, designed to emulate the event-based communication of biological systems. By utilizing discrete pulses (spikes) instead of continuous values, SNNs offer significant energy efficiency on neuromorphic hardware like Intel’s Loihi. However, the non-differentiable nature of the spiking function—a step function with a zero derivative everywhere except at the threshold—precludes the use of standard backpropagation.
This paper introduces a novel framework for Long Short-Term Memory Spiking Networks (LSTM-SNNs). By employing a surrogate gradient approach that relaxes the spike function into a Gaussian probability distribution, the authors enable effective training of SNNs for complex, long-term temporal sequence learning.
Architecture: The LSTM-SNN
The proposed architecture adapts the standard Long Short-Term Memory (LSTM) cell to the spiking domain. Like its artificial counterpart, the LSTM-SNN uses forget, input, and output gates to regulate information flow through an internal cell state. The critical modification is the replacement of continuous activation functions with spiking neurons.
This structure allows the network to maintain an internal memory mechanism, which is essential for tasks requiring the retention of information over extended durations, such as language modeling or speech recognition.
Training via Surrogate Gradients
To overcome the "math problem" of non-differentiability, the authors introduce a probabilistic relaxation of the gradient. During the backward pass, the hard threshold of the spike is replaced with a surrogate gradient modeled as a Gaussian distribution.
By tuning the variance ($\alpha$) of these Gaussians, the surrogate gradients can effectively mimic the behavior of sigmoid and tanh functions. This "Gaussian connection" allows error signals to flow through time without the common issues of vanishing or exploding gradients, effectively "tricking" the SNN into training like a standard LSTM while preserving its energy-efficient spiking nature.
Experimental Results
The LSTM-SNN was evaluated across a diverse set of benchmarks:
- Sequential MNIST & EMNIST: In these tasks, images are processed row-by-row, requiring long-term memory. The model achieved 98.3% accuracy on Sequential MNIST and 83.9% on EMNIST, rivaling state-of-the-art feedforward SNNs.
- Language Modeling: The network successfully performed character- and word-level text prediction on datasets like Alice’s Adventures in Wonderland and Wikitext-2. While perplexity was slightly higher than conventional LSTMs, it demonstrated a clear capacity for high-quality language generation.
- Speech Classification: On the Free Spoken Digit Dataset (FSDD), the LSTM-SNN reached 83% accuracy, closely approaching the 86% benchmark set by standard LSTMs.
Discussion and Future Work
A key insight of this work is that SNNs can achieve high performance on complex temporal tasks without relying on computationally expensive temporal kernels. By operating in discrete-time steps, the LSTM-SNN is better suited for real-time neuromorphic applications.
Despite these successes, an accuracy gap remains between spiking and non-spiking models. Future research will focus on closing this gap, validating the architecture on physical neuromorphic hardware to quantify actual power savings, and automating the tuning of surrogate gradient hyperparameters to improve robustness.
Summary updated