Accurate Mapping of RNNs on Neuromorphic Hardware with Adaptive Spiking Neurons

Gauthier Boeshertz, Giacomo Indiveri, Manu Nair, Alpha RennerarXiv 2024

TL;DR

This paper introduces the low-pass Recurrent Neural Network (lpRNN), a novel architecture that enables the precise mapping of standard, rate-based RNNs onto neuromorphic hardware like Intel’s Loihi chip. By utilizing adaptive Sigma-Delta ($\Sigma\Delta$) spiking neurons, the researchers achieved state-of-the-art speech classification results using only 3-bit weights, effectively bridging the gap between high-performance artificial neural networks and energy-efficient spiking hardware.

What Problem Does This Paper Address?

While Recurrent Neural Networks (RNNs) are excellent for processing temporal data like speech, running them on low-power neuromorphic hardware is notoriously difficult. Neuromorphic chips use Spiking Neural Networks (SNNs), which communicate via discrete "spikes" rather than continuous numbers.

The primary challenge is conversion error. When you try to translate a standard "rate-based" RNN (where values are continuous) into an SNN, small approximation errors occur. In a recurrent system, these tiny errors feed back into the network and accumulate over time, quickly leading to a total breakdown in performance. Consequently, most successful neuromorphic models are either trained from scratch (which is difficult) or limited to feedforward architectures.

Methods

The authors propose a two-part solution:

  1. The $\Sigma\Delta$-Spiking Neuron Model: Instead of a standard Integrate-and-Fire neuron, they use a model based on Sigma-Delta modulation. This neuron maintains an internal state that tracks the input signal. It only generates a spike when the difference between its internal state and the input exceeds a threshold. This "error-correction" mechanism allows the neuron to communicate analog-like values using precise spike timings.

    Figure 1: a. Block diagram of a ΣΔ-neuron. b. Evolution of the feedback signal 𝑠(𝑡) following the the input. Whenever it decays too far below the input, the neuron generates a spike (𝑦(𝑡)) which increases the feedback current. Panels from [19].
  2. The lpRNN Architecture: They integrate these neurons into a low-pass recurrent structure. The "low-pass" nature acts as a memory buffer, smoothing out signals and matching the slower timescales found in natural data like human speech.

    Figure 2: Architecture of the lpRNN network.

To deploy this on Intel's Loihi chip, the authors had to overcome hardware constraints. They implemented the neuron using a multi-compartment approach (splitting the neuron's logic across two functional units on the chip) and used Quantization-Aware Training (QAT) to ensure the model performed well even with extremely low-precision 3-bit weights.

Datasets

The model was evaluated on two standard audio benchmarks:

  • Heidelberg Digits (HD): 10,000 recordings of spoken digits (0-9) in English and German across 20 classes.
  • Google Speech Commands (GSC): A collection of one-second spoken keywords. The authors tested three variants: GSCv1 (36 words), GSCv2-12 (12 words), and GSCv2-35 (35 words).

Key Insights and Ideas

  • Hybrid Coding: The $\Sigma\Delta$-neuron effectively combines rate coding (how many spikes) and temporal coding (when spikes occur). This hybrid approach is more robust for conversion than using rate coding alone.
  • Efficiency through Sparsity: Because the $\Sigma\Delta$ mechanism only spikes when the signal changes significantly, it maintains the high energy efficiency (sparsity) that makes neuromorphic hardware attractive.
  • Matching Timescales: The "low-pass" filtering isn't just a technical necessity for conversion; it aligns the network's internal dynamics with the physical properties of the input (e.g., the cadence of speech), which improves classification accuracy.
  • Hardware-Software Co-design: The success of the 3-bit implementation demonstrates that we don't need high-precision 32-bit floats for complex temporal tasks if the underlying neuron model is mathematically aligned with the hardware's constraints.

Key Results

The lpRNN set a new state-of-the-art for on-chip speech classification on Loihi:

  • Heidelberg Digits: Achieved 99.33% accuracy on-chip, outperforming previous neuromorphic approaches (97.5%) and matching the performance of 32-bit non-spiking models while using only 3-bit weights.
  • Google Speech Commands: On the GSCv2-12 task, the lpRNN achieved 92.8% accuracy on Loihi, significantly outperforming other neuromorphic hardware implementations like Spinnaker2 (91.12%).

Limitations and Future Work

  • Weight Precision: While 3-bit weights worked remarkably well, the authors noted a slight performance dip on the most complex version of the Google Speech Commands dataset (GSCv2-35) compared to 32-bit SNNs. This suggests that more complex tasks might require slightly higher precision or better normalization techniques.
  • Sequence Length: The study focused on keyword spotting (short, 1-second clips). The authors acknowledge that for much longer sequences with long-term dependencies (like full sentences or documents), more complex gated structures (like LSTMs or Transformers) might still be necessary.
  • Future Directions: The researchers suggest that training synaptic delays and individual time constants for each neuron could further broaden the range of applications for this architecture, potentially moving into biomedical signal processing or robotics.

Summary updated

BibTeX
@misc{boeshertz2024accurate,
  author = {Gauthier Boeshertz and Giacomo Indiveri and Manu Nair and Alpha Renner},
  title = {{Accurate Mapping of RNNs on Neuromorphic Hardware with Adaptive Spiking Neurons}},
  year = {2024},
  eprint = {2407.13534},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.13534},
}
Figure