Online Training of Spiking Recurrent Neural Networks with Phase-Change Memory Synapses

Yigit Demirag, Charlotte Frenkel, Melika Payvand, Giacomo IndiveriarXiv 2021

Introduction

Training Spiking Recurrent Neural Networks (SRNNs) on neuromorphic hardware is a significant challenge due to the inherent "messy" physics of memristive devices like Phase-Change Memory (PCM). Modern AI faces a "power wall" driven by the von-Neumann bottleneck—the energy-intensive data transfer between memory and processing units. Neuromorphic engineering proposes In-Memory Computing (IMC) as a solution, where PCM devices function as both synapses and computational sites. However, these devices suffer from non-idealities such as write/read noise, conductance drift, limited precision (3-4 bits), and asymmetric conductance changes.

Methodology

The researchers developed a simulation framework in PyTorch to model a PCM crossbar array faithfully. The architecture utilizes SRNNs with Leaky Integrate-and-Fire (LIF) neurons. To address the difficulty of assigning credit for errors across time in recurrent networks, they employed e-prop, a biologically inspired, local, and online learning rule that approximates backpropagation through time (BPTT).

The SRNN architecture and e-prop learning framework using PCM crossbar arrays.

The core innovation is a mixed-precision update scheme. In this approach, gradients are accumulated in a high-precision digital buffer. A physical SET/RESET pulse is sent to the PCM device only when this buffer reaches a specific threshold. This method was compared against other strategies, including sign gradient descent, stochastic updates, and multi-memristor configurations.

Experimental Results

The system was evaluated on a one-dimensional continuous pattern generation task, where the SRNN learned to generate a complex signal (a sum of four sinusoids) from a fixed-rate Poisson spike train input.

Training loss and pattern generation performance of the SRNN.

The mixed-precision scheme achieved a Mean Squared Error (MSE) of 0.0380, significantly outperforming the sign-gradient (0.2080) and stochastic (0.1808) methods. Remarkably, the performance on noisy 4-bit PCM devices nearly matched a "perfect" 32-bit software model (MSE 0.0215). The trained networks exhibited extreme sparsity, with a mean firing rate of only 3.3 Hz, highlighting the potential for high energy efficiency.

Discussion and Conclusion

The success of the mixed-precision approach suggests that synapses may benefit from internal "hidden" states, similar to cascade memory models in neuroscience. While the current implementation requires a digital co-processor for gradient accumulation, it demonstrates a viable path for online training on noisy hardware. Future work will focus on scaling these methods to more complex datasets and potentially using memristive dynamics to emulate the temporal eligibility traces required by the learning algorithm itself.

Summary updated

BibTeX
@misc{demirag2021online,
  author = {Yigit Demirag and Charlotte Frenkel and Melika Payvand and Giacomo Indiveri},
  title = {{Online Training of Spiking Recurrent Neural Networks with Phase-Change Memory Synapses}},
  year = {2021},
  eprint = {2108.01804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.01804},
}
Figure