NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

In-Hardware Learning of Multilayer Spiking Neural Networks on a Neuromorphic Processor

Amar Shrestha, Haowen Fang, Daniel Patrick Rider, Zaidao Mei, Qinru Qiu

Abstract

Although widely used in machine learning, backpropagation cannot directly be applied to Spiking Neural Network (SNN) training and is not feasible on a neuromorphic processor that emulates biological neurons and synapses. This work presents a spike-based backpropagation algorithm with biologically plausible local update rules and adapts it to fit the constraints of neuromorphic hardware. The algorithm is implemented on the Intel Loihi chip, enabling low-power, in-hardware supervised online learning of multilayered SNNs for mobile applications. We test this implementation on MNIST, Fashion-MNIST, CIFAR-10, and MSTAR datasets with promising performance and energy efficiency, and demonstrate the possibility of incremental online learning with this implementation.

Introduction

Spiking Neural Networks (SNNs) represent a brain-inspired paradigm of computing that offers extreme energy efficiency by processing information only when discrete "spikes" occur. However, training these networks remains a significant challenge. Standard backpropagation, the cornerstone of modern deep learning, relies on differentiable activation functions and global information transfer—neither of which are natively supported by neuromorphic hardware.

Neuromorphic processors like Intel’s Loihi require "local" learning rules, where synaptic updates depend only on the activity of immediate neighbors. Consequently, most SNNs are currently trained offline on power-hungry GPUs and then converted for hardware deployment. This prevents edge devices from learning or adapting to new data once deployed. This paper addresses this gap by implementing a fully spike-based, supervised learning algorithm directly on the Loihi processor.

Methods

The researchers implemented Error-Modulated Spike-Timing-Dependent Plasticity (EMSTDP) on Loihi. To bridge the gap between theoretical backpropagation and hardware constraints, several architectural innovations were introduced:

  • Direct Feedback Alignment (DFA): Instead of building a complex, symmetrical backward path for errors—which is memory-intensive and difficult to route—the team used DFA. This broadcasts error signals directly from the output layer to hidden layers using fixed random weights, significantly reducing the required neuron and synapse count (see Figure 5a).
  • Multi-Compartment Gating: Using Loihi’s multi-compartment neuron feature, the authors implemented a "gate" to ensure error signals are only processed if the corresponding forward-pass neuron was active, effectively mimicking the derivative of an activation function (see Figure 5b).
  • Two-Phase Operation: Learning is divided into two phases within a time window ($2T$). Phase 1 handles inference (forward pass), while Phase 2 drives error spikes back through the network to trigger weight updates.
Architectural overview: (a) DFA scheme, (b) multi-compartment neuron for error signals, and (c) mapping to the Loihi mesh.

One of the most critical technical hurdles was the temporal alignment of variables. Because Loihi cannot easily store information from Phase 1 to use in Phase 2, the authors mathematically refactored the EMSTDP rule. This ensures that all necessary variables for a weight update are available at the exact moment the update occurs on the chip.

Timing diagrams illustrating the refactoring of the weight update rule for hardware compatibility.

Experimental Results

The implementation was evaluated on four benchmarks: MNIST (handwritten digits), Fashion-MNIST (clothing), CIFAR-10 (color images), and MSTAR (Synthetic Aperture Radar data).

Energy Efficiency and Accuracy

The Loihi implementation demonstrated remarkable energy efficiency, consuming approximately 0.42 Watts during training, compared to 58 Watts for an Intel i7 CPU. This represents a nearly 16x improvement in energy per image. While there was a slight drop in accuracy due to Loihi's 8-bit weight quantization—achieving 94.5% on MNIST compared to 98.9% in software—the performance remains highly competitive for a fully on-chip system.

Incremental Learning

A key advantage of this in-hardware approach is the ability to perform incremental learning. The researchers demonstrated that the chip could learn new classes (e.g., adding digits 4-5 after training on 0-3) without catastrophic forgetting, a vital requirement for autonomous systems operating in dynamic environments.

Conclusion

This work proves that complex, multilayered SNNs can be trained entirely in-hardware using local, spike-based rules. While 8-bit quantization limits the granularity of learning compared to high-precision software simulations, the trade-off in energy efficiency is substantial. Future work will focus on mapping full end-to-end convolutional training to the chip, which currently relies on pre-trained offline layers, to further enhance the autonomy of neuromorphic edge devices.

Summary updated

BibTeX
@inproceedings{shrestha2021hardware,
  author = {Amar Shrestha and Haowen Fang and Daniel Patrick Rider and Zaidao Mei and Qinru Qiu},
  title = {{In-Hardware Learning of Multilayer Spiking Neural Networks on a Neuromorphic Processor}},
  booktitle = {DAC},
  year = {2021},
  url = {https://openreview.net/forum?id=HVpRaviWs4},
}
Figure