SPICEprop: Backpropagating Errors Through Memristive Spiking Neural Networks

Peng Zhou, Jason Kamran Eshraghian, Dong-Uk Choi, Sung-Mo KangarXiv 2022 · DOI

TL;DR

This paper introduces SPICEprop, a novel method for training fully memristive spiking neural networks (MSNNs) by directly applying backpropagation to circuit-level memristive neuron models. This approach achieves state-of-the-art accuracy on MNIST and Fashion-MNIST datasets, demonstrating the potential of memristors for efficient, biologically-inspired computing.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) offer significant energy and latency advantages over traditional Artificial Neural Networks (ANNs) due to their sparse, event-driven nature. However, training SNNs, especially those implemented on neuromorphic hardware, has been a major challenge. Traditional methods often rely on approximations or surrogate gradients to handle the non-differentiable nature of neuron spiking. Furthermore, fully integrating memristors – promising non-volatile memory devices – into both the neurons and synapses of SNNs for truly hardware-native computation has been limited, with prior work often restricting memristors to either synaptic weights or neuron dynamics, but not both, or using simplified neuron models. This paper tackles the problem of training a fully memristive SNN where both neurons and synapses are built from memristor circuit models, and importantly, trains these networks using a direct gradient descent approach without relying on approximations.

Methods

The core innovation is the SPICEprop algorithm. It enables training of a fully memristive SNN by applying the Backpropagation Through Time (BPTT) algorithm directly to the differential equations of a Memristive Integrate-and-Fire (MIF) neuron model. This MIF neuron is designed using analog SPICE circuit models, capturing realistic depolarization, hyperpolarization, and repolarization voltage waveforms.

Key aspects of the method include:

  • Direct Gradient Descent on Circuit Models: Instead of abstracting the neuron dynamics, SPICEprop treats the MIF neuron's continuous-time dynamics (described by ODEs) and discretizes them using the forward Euler method. This allows gradients to flow directly through the analog circuit behavior.
  • Differentiable Spiking: Crucially, the MIF neuron model's natural dynamics are designed to be fully differentiable. This eliminates the need for surrogate gradient techniques commonly used in SNN training, which can introduce bias.
  • Memristive Synapses and Neurons: The network is composed entirely of memristive components, with memristive crossbars potentially used for synaptic weight storage and processing.
  • Membrane Potential as Target: The loss function is applied to the membrane potential of the MIF neuron, which is shown to be an effective proxy for modulating spiking behavior and is naturally reset after a spike.

Datasets

  • MNIST: A standard dataset of handwritten digits, used for training and testing.
  • Fashion-MNIST: A more challenging dataset of clothing images, used to demonstrate the network's capability on a more complex task.

Key Insights and Ideas

  • Bridging SPICE and BPTT: The paper successfully bridges the gap between low-level analog circuit simulation (SPICE) and high-level learning algorithms (BPTT). This opens the door to training complex neuromorphic hardware directly from its physical circuit description.
  • Eliminating Surrogate Gradients: By leveraging the inherent differentiability of the analog MIF neuron model, the authors bypass the need for surrogate gradients. This is a significant step towards more accurate and faithful training of SNNs on hardware.
  • Fully Memristive Networks are Trainable: The work demonstrates that a network composed entirely of memristive neurons and synapses can be trained effectively using gradient descent, showcasing the potential for truly hardware-native, energy-efficient AI.
  • Analog Spikes are Robust: The paper highlights that analog spikes, as generated by the MIF neuron, are inherently error-tolerant, unlike analog signals in non-spiking networks.

Key Results

  • High Accuracy on MNIST: The SPICEprop-trained MSNN achieved 97.58% accuracy on the MNIST testing dataset.
  • Strong Performance on Fashion-MNIST: The network achieved 75.26% accuracy on the Fashion-MNIST dataset, marking the first functional result on this benchmark using analog MSNNs.
  • State-of-the-Art for Fully MSNNs: These accuracies are reported as the highest achieved by any fully memristive spiking neural networks to date.
  • Efficient Training: The use of sparse input feeding (only at 3 out of 1000 time steps) demonstrates an approach to promoting sparse network activity and potentially reducing computational load.

Limitations and Future Work

  • Dataset Complexity: The authors acknowledge that future work will involve increasing the complexity of the datasets used for training.
  • Memristor Non-Idealities: The current work uses idealized SPICE models. Future research will focus on accounting for non-idealities present in real-world memristive synapses.
  • Stochasticity: The SPICE model used does not incorporate designed stochasticity, which is a feature present in biological systems and could be explored in future work.
  • Temporal Latency: While SNNs offer advantages, training still incurs temporal latency due to the unrolling of the network over time steps.
  • Hardware Accessibility: The paper mentions that one of the integrated memristive networks used in prior work was not broadly accessible, implying a desire for wider accessibility of their methods.

Summary updated

BibTeX
@misc{zhou2022spiceprop,
  author = {Peng Zhou and Jason Kamran Eshraghian and Dong-Uk Choi and Sung-Mo Kang},
  title = {{SPICEprop: Backpropagating Errors Through Memristive Spiking Neural Networks}},
  year = {2022},
  eprint = {2203.01426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.01426},
}
Figure