通用微控制器上脉冲神经网络与人工神经网络的公平能耗比较
A Fair Energy Comparison of Spiking and Artificial Neural Networks on a General-Purpose Microcontroller.
A Fair Energy Comparison of Spiking and Artificial Neural Networks on a General-Purpose Microcontroller.
能效是在资源受限的物联网(IoT)与边缘设备上部署机器学习模型的关键约束。脉冲神经网络(SNN)因其事件驱动的计算范式,常被视为传统人工神经网络(ANN)的节能替代方案。然而,在低成本通用微控制器上对SNN与ANN进行直接且公平的能耗比较仍十分有限。在本工作中,我们在ESP32-C6微控制器上部署了具有相同多层感知机架构的SNN与ANN,并对推理时的能耗进行了受控实验比较。两个网络均以C/C++实现,不依赖优化推理库,采用int8量化,并在MNIST数据集上进行评估。能耗在相同实现与测量条件下于推理过程中直接测量,以分离计算范式的影响。定量而言,ANN每次推理需要11.01 mJ,而SNN在1、3和10个仿真时间步下分别消耗2.31 mJ、2.34 mJ和3.88 mJ。这对应于单时间步约[公式见原文]的能耗降低,即使在十个时间步下仍约为[公式见原文],表明SNN在评估条件下保持了显著的效率优势。这些发现表明,即使没有专用硬件加速,脉冲神经网络也能在广泛可用的微控制器单元上实现显著的推理时能耗节省,同时强调了受控且可复现的比较条件的重要性。
Energy efficiency is a key constraint for deploying machine learning models on resource-limited internet of things (IoT) and edge devices. Spiking Neural Networks (SNNs) are often proposed as an energy-efficient alternative to conventional Artificial Neural Networks (ANNs) due to their event-driven computation paradigm. However, direct and fair energy comparisons between SNNs and ANNs on inexpensive general-purpose microcontrollers remain limited. In this work, we present a controlled experimental comparison of inference-time energy consumption between an SNN and an ANN with identical multilayer perceptron architectures deployed on an ESP32-C6 microcontroller. Both networks are implemented in C/C++ without relying on optimized inference libraries, use int8 quantization, and are evaluated on the MNIST dataset. Energy consumption is measured directly during inference under identical implementation and measurement conditions to isolate the impact of the computational paradigm. Quantitatively, the ANN requires 11.01 mJ per inference, whereas the SNN consumes 2.31 mJ, 2.34 mJ, and 3.88 mJ for 1, 3, and 10 simulation timesteps, respectively. This corresponds to an approximate reduction in energy consumption of about [Formula: see text] for a single timestep and still about [Formula: see text] even at ten timesteps, demonstrating that the SNN maintains a substantial efficiency advantage under the evaluated conditions. These findings indicate that spiking neural networks can provide significant inference-time energy savings on widely available microcontroller units even without specialized hardware acceleration, while emphasizing the importance of controlled and reproducible comparison conditions.
Jonas Hansert, Franck Gechter, Peter Offermann. A Fair Energy Comparison of Spiking and Artificial Neural Networks on a General-Purpose Microcontroller.. International journal of neural systems. 2026; doi:10.1142/S0129065727500092.
Jonas Hansert, Franck Gechter, Peter Offermann (2026). A Fair Energy Comparison of Spiking and Artificial Neural Networks on a General-Purpose Microcontroller.. International journal of neural systems. https://doi.org/10.1142/S0129065727500092
Jonas Hansert, Franck Gechter, Peter Offermann. A Fair Energy Comparison of Spiking and Artificial Neural Networks on a General-Purpose Microcontroller.[J]. International journal of neural systems, 2026 doi:10.1142/S0129065727500092.
翻译全文 · AI 文献问答 · PDF 原文下载 · 引用导出