arXiv:2610.24677cs.AROct 2026

Manuscript Offprint

arXiv:2610.24677

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

Muhammad Fahd Ibrahim Bhatti, Muhammad Ali Siddiqi

Muhammad Fahd Ibrahim Bhatti ∗^{*} and Muhammad Ali Siddiqi ∗§^{*§}

*Electrical Engineering Department, Lahore University of Management Sciences, Pakistan

§Department of Quantum and Computer Engineering, Delft University of Technology, The Netherlands

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×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.

Index Terms—spiking neural networks, microcontroller, sparse computation, heterogeneous computing, matrix-vector processor

I. INTRODUCTION

Spiking neural networks (SNNs) are attractive for edge inference because their computation is driven by sparse spike events: at each timestep, only a subset of neurons fires, so work associated with inactive inputs can be skipped. On microcontrollers (MCUs), this sparsity is exploited by event-driven execution on the central processing unit (CPU). At the same time, commodity MCUs increasingly integrate neural or matrix-vector accelerators alongside the CPU [1]. These accelerators are designed for dense computation with regular, contiguous memory accesses, which conflicts with the irregular, input-dependent activity of SNNs. Mapped densely, an SNN forfeits the savings of sparsity; mapped sparsely, its computation fragments into many small accelerator invocations whose overheads can outweigh the benefit. It therefore remains unclear whether such an accelerator can speed up SNN inference beyond an optimized sparse CPU implementation.

Among prior approaches to efficient SNN inference, neuromorphic processors execute SNNs natively [2] but require dedicated silicon absent from commodity MCUs. On general-purpose MCUs, sparse and activity-aware implementations skip computation for inactive inputs [3]–[6] but execute only on general-purpose cores. SNN deployment frameworks automate the translation of trained models to embedded C or neuromorphic hardware [7]–[11], but none targets the dense accelerators found on commodity MCUs. Conversely, toolchains for such accelerators target dense artificial neural networks [12]–[15], whose computation is regular and input-independent, and therefore cannot exploit spike sparsity. Neuron permutation symmetry and channel reordering have been studied for model merging and pruning [16], [17], but not to shape SNN activity for accelerator execution. To our knowledge, no existing toolchain automatically deploys a trained SNN across a commodity CPU and its on-chip dense accelerator, and no prior work shows how the arrangement of spike activity determines which engine is preferable.

We study the EFR32MG24 MCU, which combines a Cortex-M33 CPU with an on-chip Matrix Vector Processor (MVP), to ask whether the MVP can outperform optimized sparse CPU execution of the same SNN. Our automated snnTorch-to-C flow uses spike activity profiles, measured per-layer costs, and memory constraints to select an execution engine for each affine layer. Because accelerator efficiency depends on the arrangement as well as the amount of spike activity, we also introduce function-preserving neuron reordering that places co-active neurons adjacently, improving MVP locality without retraining or changing network function.

Layer-level mapping alone, however, leaves the Cortex-M33 idle during accelerator execution. We therefore pipeline stateless affine operations across timesteps to overlap MVP affine execution at timestep t with Cortex-M33 neuron-state updates from preceding timesteps, and account for it in engine selection, without changing outputs. Together, the deployment flow, activity-aware reordering, and asynchronous scheduling address the gaps left by prior sparse CPU deployments, SNN frameworks, and dense accelerator toolchains.

This work makes three contributions. First, we develop, to our knowledge, the first automated snnTorch-to-C deployment flow that maps trained SNNs across a commodity MCU's CPU and on-chip dense accelerator. On EFR32MG24 hardware, heterogeneous Cortex-M33–MVP execution achieves 1.27−1.87×1.27-1.87\times speedup over optimized sparse CPU inference on five of six evaluated network configurations, while the sixth retains CPU-optimal execution. Second, we show that function-preserving hidden-neuron reordering can change the preferred execution engine of a trained network layer without retraining or altering spike activity. Third, we develop dependency-aware asynchronous scheduling that overlaps Cortex-M33 neuron-state updates with MVP affine execution, improving end-to-

Figure

Fig. 1. (a) Deployment flow. (b) One affine layer under sparse Cortex-M33, dense MVP, and range-sparse MVP execution. (c) Memory organization: the MVP accesses SRAM and Flash directly; the Cortex-M33 programs, starts, and polls the MVP through memory-mapped registers.

end latency beyond what blocking heterogeneous mapping alone achieves.

References (20)