Error-triggered Three-Factor Learning Dynamics for Crossbar Arrays

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

Abstract

Recent breakthroughs suggest that local, approximate gradient descent learning is compatible with Spiking Neural Networks (SNNs). Although SNNs can be scalably implemented using neuromorphic VLSI, an architecture that can learn in-situ as accurately as conventional processors is still missing. Here, we propose a subthreshold circuit architecture designed through insights obtained from machine learning and computational neuroscience that could achieve such accuracy. Using a surrogate gradient learning framework, we derive local, error-triggered learning dynamics compatible with crossbar arrays and the temporal dynamics of SNNs. The derivation reveals that circuits used for inference and training dynamics can be shared, which simplifies the circuit and suppresses the effects of fabrication mismatch. We present SPICE simulations on XFAB 180nm process, as well as large-scale simulations of the spiking neural networks on event-based benchmarks, including a gesture recognition task. Our results show that the number of updates can be reduced hundred-fold compared to the standard rule while achieving performances that are on par with the state-of-the-art.

Introduction

Training deep neural networks typically relies on Backpropagation (BP), which requires global knowledge of the network's state. However, in neuromorphic hardware—which aims to mimic the brain's efficiency—BP presents a "mismatch." Neuromorphic systems prefer local learning, where updates depend only on information available at the synapse itself.

While Surrogate Gradient (SG) learning has emerged as a way to bridge the gap between BP and spiking neurons, implementing it in hardware often requires continuous weight updates. In memristor-based hardware (where weights are stored as conductance), constant "writing" is devastating: it consumes massive amounts of energy and quickly wears out the physical devices. This paper proposes a subthreshold circuit architecture designed to implement sophisticated SG learning locally and efficiently on-chip.

Methods

The proposed architecture implements a three-factor learning rule via subthreshold analog circuits. The three factors include a pre-synaptic trace ($P$), a surrogate derivative ($B$) indicating if the receiving neuron is in a sensitive state, and a local error signal ($E$).

System architecture for error-triggered local learning in crossbar arrays.

A key innovation is the use of a Variable Width Bump (VWBump) circuit for error-triggered updates. Instead of updating weights at every time step, the system only triggers a "write" event when the local error exceeds a programmable threshold. Furthermore, the architecture reuses the same circuits for both inference and learning, which saves space and mitigates fabrication mismatches. The magnitude of the weight update is controlled by pulse-width modulation, derived directly from the analog voltage of the pre-synaptic trace.

Results

The architecture was evaluated using SPICE simulations and large-scale SNN simulations on event-based benchmarks: N-MNIST (a spiking version of handwritten digits) and DVS Gestures (human gestures recorded with a Dynamic Vision Sensor).

Performance comparison showing error rates and memory write counts across different update frequencies.

As shown in the results table, the system achieves a massive reduction in memory writes. On the DVS Gesture task, the number of weight updates dropped from 1 million (continuous) to just 10,000 (error-triggered)—a 100-fold reduction. Despite this reduction, accuracy remained competitive. For N-MNIST, the error rate increased only slightly from 2.3% to 2.71% when moving from continuous to 10Hz error-triggered updates.

Discussion and Conclusion

By shifting from continuous to event-based learning, the hardware only operates when necessary to correct errors, mimicking biological synaptic plasticity. The use of subthreshold circuits allows for extremely low power consumption and leverages physical properties to implement complex mathematical functions like decaying traces. This hardware-algorithm co-design ensures that the learning rule is compatible with the constraints of crossbar arrays.

However, challenges remain. Future work must address memristor non-idealities, such as asymmetric nonlinearity and limited precision, which were idealized in large-scale simulations. Additionally, while the learning is local to the layer, the generation and propagation of "target" signals in deeper, unsupervised systems is an ongoing area of research.

Summary updated

BibTeX
@inproceedings{payvand2019error,
  author = {Melika Payvand and Mohammed E. Fouda and Fadi J. Kurdahi and Ahmed M. Eltawil and Emre O. Neftci},
  title = {{Error-triggered Three-Factor Learning Dynamics for Crossbar Arrays}},
  booktitle = {AICAS},
  year = {2019},
  url = {https://openreview.net/forum?id=Vwia0KSLLDQ},
}
Figure