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

TL;DR

Researchers have successfully implemented a fully spike-based, supervised learning algorithm on Intel’s Loihi neuromorphic chip. By adapting the Error-Modulated Spike-Timing-Dependent Plasticity (EMSTDP) algorithm to fit hardware constraints, they achieved low-power, "on-the-fly" learning that rivals traditional software-based training in energy efficiency.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are the "brain-inspired" cousins of traditional artificial neural networks (ANNs). They are incredibly energy-efficient because they only process information when "spikes" occur, much like biological neurons. However, training them is a nightmare.

Standard backpropagation—the engine behind modern AI—relies on calculus (derivatives) and global information. SNNs are non-differentiable (you can't take a derivative of a discrete spike), and neuromorphic hardware like Loihi requires "local" learning, where a synapse only knows what its immediate neighbors are doing. Consequently, most SNNs are trained offline on GPUs and then converted to spikes, which prevents the hardware from learning or adapting once it's deployed in the field.

Methods

The authors bridge this gap by implementing Error-Modulated STDP (EMSTDP) directly on the Loihi processor. To make this work on real hardware, they introduced several clever architectural "hacks":

  • Two-Phase Operation: Learning happens in a window of time ($2T$). In Phase 1, the network performs inference (forward pass). In Phase 2, error spikes are driven back through the network to "correct" the neurons' behavior.
  • Direct Feedback Alignment (DFA): Instead of building a complex, symmetrical backward path for errors (which is memory-intensive), they used DFA. This broadcasts error signals directly from the output layer to hidden layers using fixed random weights, significantly reducing the number of neurons and synapses needed.
  • Multi-Compartment Gating: They used Loihi’s multi-compartment neuron feature to implement a "gate." This ensures that error signals are only processed if the corresponding forward-pass neuron was actually active, mimicking the derivative of an activation function.
  • Bias-Based Input: To save on I/O energy, they didn't stream thousands of spikes into the chip. Instead, they programmed the bias of the input neurons to represent the data, letting the chip generate its own spike trains internally.

Datasets

The implementation was evaluated on four standard benchmarks:

  1. MNIST: Handwritten digits.
  2. Fashion-MNIST: Clothing items (more complex than digits).
  3. CIFAR-10: Small color images of 10 classes.
  4. MSTAR: A Synthetic Aperture Radar (SAR) dataset containing 10 classes of vehicles, representing a real-world edge computing use case.

Key Insights and Ideas

  • Hardware-Algorithm Co-design: The most significant "aha" moment is the modification of the weight update rule. Because Loihi cannot "store" information from Phase 1 to use in Phase 2, the authors mathematically refactored the EMSTDP rule so that all necessary variables are available at the exact moment the update occurs.
  • Efficiency over Raw Accuracy: While the Loihi implementation shows a slight drop in accuracy compared to 32-bit floating-point simulations (due to Loihi's 8-bit weight precision), the energy trade-off is massive.
  • Local is Better: By using DFA, the researchers proved that you don't need a perfect mathematical mirror of the forward network to train effectively. Random "feedback" is enough to guide the hidden layers.

Key Results

  • Energy Efficiency: Training on Loihi consumed roughly 0.42 Watts, compared to 58 Watts on an Intel i7 CPU. In terms of energy per image, Loihi was nearly 16x more efficient than the CPU during training.
  • Accuracy: On MNIST, the hardware achieved 94.5% accuracy. While lower than the 98.9% achieved in software, it represents a "respectable" performance for a fully on-chip, 8-bit quantized system.
  • Incremental Learning: The team demonstrated that the chip could learn new classes (e.g., learning digits 0-3, then adding 4-5 later) without completely forgetting the old ones, a critical requirement for autonomous systems in the wild.

Limitations and Future Work

The main limitation is the quantization error. Loihi uses 8-bit integer weights, which limits the "granularity" of learning compared to the high-precision math used in standard deep learning.

Additionally, in this study, the convolutional layers were pre-trained offline; only the dense (fully connected) layers were trained in-hardware. The authors suggest that future work should focus on mapping full end-to-end convolutional training to the chip, which would require even more sophisticated mapping algorithms to handle the limited "fan-in" and "fan-out" (connectivity) of neuromorphic cores.

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},
}

Loading related content...

Figure