Introduction
Voice-controlled devices, such as smart speakers and wearables, face a critical trade-off between battery life and privacy. Processing audio locally often drains batteries, while cloud-based processing introduces latency and privacy concerns. Neuromorphic hardware, designed to emulate the brain's energy-efficient spiking communication, offers a compelling solution for "always-on" tasks like Key Word Spotting (KWS). Intel’s Loihi 2 chip represents a significant step forward in this field, providing a scalable platform for low-power edge computing.
Bridging the Training-to-Deployment Gap
Despite the promise of neuromorphic hardware, training Spiking Neural Networks (SNNs) remains challenging. Traditional deep learning methods like Backpropagation Through Time (BPTT) are memory-intensive, especially for the long temporal sequences required in audio processing. This research introduces a streamlined pipeline to train SNNs on GPUs and deploy them directly onto Loihi 2.
The mlGeNN and Eventprop Pipeline
The core of this pipeline is the mlGeNN library, which utilizes the Eventprop algorithm. Unlike standard BPTT, which stores network states at every timestep, Eventprop is event-driven, storing states only when neurons spike. This drastically reduces memory overhead, allowing for the training of networks on longer, finer-grained audio sequences without the linear memory growth typical of BPTT.
Following training, models are converted using a custom NetX tool, which translates mlGeNN models into a format compatible with Intel’s Lava framework. To ensure compatibility with Loihi 2’s fixed-point arithmetic, Post-Training Quantization (PTQ) is applied. The programmable "microcode" neuron models of Loihi 2 were crucial in matching the specific Leaky Integrate-and-Fire (LIF) dynamics used during GPU training, ensuring high fidelity between simulation and hardware.
Experimental Results
The pipeline was evaluated using two spiking audio benchmarks: Spiking Heidelberg Digits (SHD) and Spiking Speech Commands (SSC). This work represents the first successful deployment of SSC classifiers on neuromorphic hardware.
Efficiency and Accuracy
The results demonstrate that the "accuracy gap" often associated with quantization is minimal. Accuracy on the physical Loihi 2 chip closely matched software simulations, achieving approximately 82% on SHD and 57% on SSC.
In terms of efficiency, Loihi 2 outperformed a standard edge GPU (NVIDIA Jetson Orin Nano) significantly:
- Inference Speed: Up to 10x faster than the Jetson.
- Energy Consumption: Approximately 200x more energy-efficient per sample.
- Scaling: As models grew from 256 to 1024 hidden neurons, Loihi 2’s latency increased only slightly due to its massive parallel architecture.
- Memory Efficiency: As shown in the figures, Eventprop maintains nearly constant memory usage as the number of timesteps increases, whereas competing methods like SpyX scale linearly.
Conclusion and Future Directions
This research provides a practical path for deploying high-performance SNNs on edge devices. While current support is focused on recurrent SNNs, future work aims to incorporate convolutional layers, sparse connectivity, and learned connection delays. Additionally, exploring Quantization-Aware Training could enable even more efficient 4-bit or 2-bit models, further pushing the boundaries of neuromorphic edge computing.
Summary updated