On-Chip Error-Triggered Learning of Multi-Layer Memristive Spiking Neural Networks

Melika Payvand, Mohammed E. Fouda, Fadi J. Kurdahi, Ahmed M. Eltawil, Emre O. Neftci

Researchers from the University of Zurich, ETH Zurich, UC Irvine, and KAUST have presented a significant advancement toward autonomous, energy-efficient AI hardware. By integrating the biological inspiration of Spiking Neural Networks (SNNs) with the physical efficiency of memristive crossbars, the team demonstrated a system capable of "on the fly" learning with minimal power consumption.

TL;DR

The authors propose a hardware-friendly "error-triggered" learning algorithm that enables multi-layer SNNs to train directly on-chip using memristive crossbar arrays. By updating weights only when a local error is detected and utilizing simplified ternary updates, they reduce the number of required memory writes by up to 88x while maintaining performance near state-of-the-art levels.

Addressing the Training Bottleneck

Traditional Deep Learning relies on Backpropagation (BP), which is computationally expensive and spatially non-local. In BP, information must flow backward through the entire network to update weights, requiring global coordination and distinct training phases. This creates a massive bottleneck for neuromorphic chips aiming for extreme energy efficiency.

Furthermore, training SNNs—which communicate via discrete "spikes"—is difficult because the spiking function is non-differentiable. While "Surrogate Gradients" (SG) offer a mathematical workaround, implementing them in situ (directly on silicon) remains challenging due to the high precision and complex routing typically required.

Hardware-Algorithm Co-design

The researchers developed a three-factor learning rule that is both spatially and temporally local. Key components include:

  • Surrogate Gradients (SG): A piecewise linear "box function" approximates the derivative of a spike, enabling gradient-based learning.
  • Local Loss Functions: Each layer has its own local target, allowing independent learning without waiting for a global backpropagation signal.
  • Error-Triggered Learning: Updates are only triggered when a local error exceeds a tunable threshold ($\theta$).
  • Ternary Weight Updates: Updates are discretized into three states—$\{-1, 0, 1\}$—to suit the physical constraints of memristors, which struggle with high-precision analog writes.
System architecture overview showing the integration of Neuromorphic Cores (NC) and Processing Cores (PC) for on-chip learning.

The architecture separates Neuromorphic Cores (NCs), which handle neural dynamics and memristive crossbar multiplications, from Processing Cores (PCs), which calculate errors and manage the "handshaking" required for updates.

Key Insights and Results

The system was evaluated on two standard neuromorphic benchmarks: N-MNIST (spiking handwritten digits) and DVS Gestures (event-based camera recordings).

Sparsity and Endurance

By using error-triggering, the hardware exploits the fact that as a network learns, it makes fewer mistakes. This leads to a "regressive" update pattern where the hardware activity decreases as proficiency increases. The resulting 88x reduction in parameter updates directly translates to a longer lifespan for memristive hardware, which typically suffers from limited write endurance.

Performance Trade-offs

On the DVS Gestures task, the model achieved a 4.07% error rate, competitive with state-of-the-art SNNs trained with standard backpropagation. A key feature of the system is its tunability: by increasing the error threshold ($\theta$), users can drastically reduce energy consumption at the cost of a small, graceful degradation in accuracy.

Accuracy vs. update sparsity trade-off for DVS Gestures and N-MNIST datasets across different error thresholds.

Future Directions

While promising, the authors acknowledge hurdles such as memristor non-idealities (non-linearity and asymmetry) and the challenge of scaling local loss functions to very deep architectures. The current results, based on high-fidelity circuit simulations in a 180 nm CMOS process, set the stage for a full physical tape-out of the proposed architecture.

Summary updated

Abstract

Recent breakthroughs in neuromorphic computing show that local forms of gradient descent learning are compatible with Spiking Neural Networks (SNNs) and synaptic plasticity. Although SNNs can be scalably implemented using neuromorphic VLSI, an architecture that can learn using gradient-descent in situ is still missing. In this paper, we propose a local, gradient-based, error-triggered learning algorithm with online ternary weight updates. The proposed algorithm enables online training of multi-layer SNNs with memristive neuromorphic hardware showing a small loss in the performance compared with the state-of-the-art. We also propose a hardware architecture based on memristive crossbar arrays to perform the required vector-matrix multiplications. The necessary peripheral circuitry including presynaptic, post-synaptic and write circuits required for online training, have been designed in the subthreshold regime for power saving with a standard 180 nm CMOS process.
BibTeX
@article{payvand2020chip,
  author = {Melika Payvand and Mohammed E. Fouda and Fadi J. Kurdahi and Ahmed M. Eltawil and Emre O. Neftci},
  title = {{On-Chip Error-Triggered Learning of Multi-Layer Memristive Spiking Neural Networks}},
  journal = {IEEE J. Emerg. Sel. Topics Circuits Syst.},
  year = {2020},
  url = {https://openreview.net/forum?id=tov-cr-umfH},
}
Figure