Sparse spiking neural networks run faster with CPU and accelerator teamwork

SpikeDuet: CPU-Accelerator Co-Execution of Sparse SNNs on Commodity MCUs

Hardware Architecture

Summary

Spiking neural networks use fewer signals than traditional networks, which saves energy, but they can be hard to speed up on common microcontrollers because these devices have processors and special accelerators that usually work best with dense data. The authors studied how to make the most of both the main processor and the matrix-vector accelerator on a typical microcontroller to run these sparse networks faster and with less energy. They developed methods to organize the network’s neurons and schedule computations so both units can work together efficiently. Their tests show significant speed and energy improvements compared to using just the main processor.

What this means in practice

  • For embedded systems developers: Speed up and reduce energy use when running spiking neural networks on microcontrollers by combining CPU and accelerator tasks efficiently.
  • For wearable device manufacturers: Improve battery life and responsiveness of small devices processing sparse neural events using commodity microcontrollers with existing hardware.$Commercial implications: Enables commercially viable low-power wearable AI devices that leverage common microcontrollers’ hardware for efficient spiking neural network inference.

Authors

Muhammad Fahd Ibrahim Bhatti, Muhammad Ali Siddiqi

Abstract

Spiking neural networks (SNNs) expose sparse event activity, but commodity microcontrollers increasingly pair general-purpose processors with dense matrix-vector accelerators whose suitability for sparse inference is unclear. We investigate whether the on-chip Matrix Vector Processor (MVP) of the EFR32MG24 can accelerate SNN inference beyond optimized event-driven Cortex-M33 execution. Our automated snnTorch-to-C deployment flow combines hardware-calibrated engine selection, function-preserving neuron reordering that places co-active neurons adjacently for the accelerator, and asynchronous scheduling that overlaps CPU and MVP computation. On physical hardware, heterogeneous execution achieves 1.27--1.87$\times$ speedup and 11--34\% lower energy per inference than optimized sparse Cortex-M33 execution across five evaluated network configurations, while the smallest Braille network remains CPU-optimal. Reordering alone moves Braille-384's dominant hidden layer from the CPU to the MVP, and its benefit persists under asynchronous execution. These results show that activity locality and concurrency between CPU and MVP can jointly improve sparse SNN inference on commodity MCUs.