[Paper Review] Rockpool Documentation
This paper presents a high-level, accessible pipeline using Rockpool and the Xylo neuromorphic processor to train and deploy sub-mW Spiking Neural Networks (SNNs) for real-time audio classification. It achieves 98% accuracy with less than 100 µW dynamic power and 100 ms median latency, enabling low-power edge inference without requiring SNN expertise.
Rockpool is a Python machine-learning package for designing, building and deploying event-driven neural network applications, particularly for Neuromorphic computing hardware. Rockpool provides a simple and comfortable API for working with spiking neural networks. Along with PyTorch and Jax support, Rockpool provides accellerated training for SNNs, and an extensible deployment pipeline.
Motivation & Objective
- Enable ML engineers with standard DNN backgrounds to design, train, and deploy SNNs for edge applications without requiring graduate-level SNN expertise.
- Develop a general-purpose, high-level software pipeline that supports end-to-end SNN application development from architecture definition to hardware deployment.
- Demonstrate sub-mW SNN inference on neuromorphic hardware for real-time, streaming audio classification with low latency and high accuracy.
- Bridge the gap between modern deep learning frameworks and neuromorphic hardware by enabling gradient-based training and hardware-aware quantization.
- Establish a practical, energy-efficient solution for continuous ambient audio scene classification in battery-powered devices like hearing aids and smart headsets.
Proposed method
- Employ a pyramid of synaptic time constants in a deep SNN to extract multi-scale temporal features from audio signals.
- Use a filter-bank to pre-process single-channel audio into 16 frequency bands (50 Hz–8000 Hz), followed by power envelope extraction.
- Train the SNN using Rockpool, a PyTorch-based library that supports automatic differentiation and gradient-based optimization of SNNs.
- Apply surrogate gradient descent for end-to-end training of the SNN, enabling backpropagation through spiking dynamics.
- Quantize and map the trained SNN to the Xylo neuromorphic inference processor using Rockpool’s deployment pipeline.
- Execute the model in streaming mode on Xylo, with inference performed continuously at 10 Hz (100 ms median latency).
Experimental results
Research questions
- RQ1Can a high-level, PyTorch-integrated framework like Rockpool make SNN training and deployment accessible to ML engineers without specialized SNN knowledge?
- RQ2Can a feedforward SNN with a pyramid of synaptic time constants achieve high accuracy in audio scene classification while maintaining ultra-low power operation?
- RQ3How does the dynamic inference energy of the Xylo processor compare to other low-power inference platforms for similar audio tasks?
- RQ4Can SNNs achieve competitive performance with minimal inference power and low latency in real-world streaming audio applications?
- RQ5To what extent does hardware-aware training and quantization preserve accuracy when deploying SNNs to neuromorphic ASICs?
Key findings
- The proposed SNN architecture achieved 98% accuracy on the QUT-NOISE dataset for classifying ambient audio scenes (CAFE, HOME, CAR, STREET).
- The system operated at less than 100 µW dynamic inference power on the Xylo-A2 neuromorphic processor, with a median latency of 100 ms.
- The Xylo processor consumed only 219 µW in idle mode, significantly lower than the MAX78000’s 792–2370 µW, improving overall energy efficiency.
- The dynamic energy per inference was 9.3 µJ, with 0.12 µJ per neuron per inference, matching the efficiency of the MAX78000 CNN processor.
- The per-neuron dynamic energy of 0.12 µJ on Xylo is among the lowest reported, outperforming even Intel Loihi in energy efficiency per neuron.
- Rockpool enabled seamless deployment of the trained SNN to Xylo with minimal code, demonstrating a practical, end-to-end workflow for industrial SNN application development.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.