Abstract
In light of the increasing adoption of edge computing in areas such as intelligent furniture, robotics, and smart homes, this paper introduces HyperSNN, an innovative method for control tasks that uses spiking neural networks (SNNs) in combination with hyperdimensional computing (HDC). HyperSNN substitutes expensive 32-bit floating point multiplications with 8-bit integer additions, resulting in reduced energy consumption while enhancing robustness and potentially improving accuracy. Our model was tested on AI Gym benchmarks, including Cartpole, Acrobot, MountainCar, and Lunar Lander. HyperSNN achieves control accuracies that are on par with conventional machine learning methods but with only 1.36% to 9.96% of the energy expenditure. Furthermore, our experiments showed increased robustness when using HyperSNN. We believe that HyperSNN is especially suitable for interactive, mobile, and wearable devices, promoting energy-efficient and robust system design. Furthermore, it paves the way for the practical implementation of complex algorithms like model predictive control (MPC) in real-world industrial scenarios.
Introduction
As edge computing expands into wearables and autonomous micro-robotics, the energy demands of standard deep learning models present a significant hurdle. Traditional Multi-Layer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs) rely on 32-bit floating-point multiplications, which drain the limited battery life of edge devices. While Spiking Neural Networks (SNNs) offer a brain-inspired, energy-efficient alternative using binary pulses, they often struggle with high latency and inefficient classification layers. HyperSNN addresses these challenges by combining SNNs with Hyperdimensional Computing (HDC) to create a framework that is high-performing, ultra-low-power, and resilient to sensor noise.
The HyperSNN Architecture
The core innovation of HyperSNN lies in its hybrid architecture and conversion-friendly training process. The framework utilizes an SNN backbone for intermediate layers, processing binary spike trains instead of continuous numbers. This shift allows hardware to perform simple 8-bit integer additions rather than power-hungry multiplications.
At the output stage, HyperSNN replaces the traditional energy-intensive Softmax layer with HDC. In this paradigm, classes are represented as high-dimensional binary vectors. Determining a result involves simple XOR operations and Hamming distance calculations—operations that are significantly cheaper to implement in hardware gates. While standard HDC often requires vectors exceeding 5,000 dimensions, HyperSNN integrates HDC directly with the SNN output, allowing these vectors to be trimmed to just tens or hundreds of dimensions without sacrificing accuracy.
Methodology: Spiking and Quantization
To ensure high performance with low latency, HyperSNN employs a refined spike model that achieves accuracy in just 1 to 4 timesteps. This drastically reduces the duration the hardware must remain active. To prevent accuracy loss during the transition from standard models to spiking ones, the authors utilize "Clamp and Quantization" (CQ) functions during training. This quantization-aware approach ensures the model learns to be effective even with restricted bit-precision.
Interestingly, this inherent "coarseness" leads to a "Robustness Paradox." By learning to ignore small fluctuations in input—treating them as the same quantized level or spike—the model naturally filters out Gaussian, Poisson, and clock-jitter noise that typically disrupts high-precision floating-point models.
Experimental Results
HyperSNN was evaluated using OpenAI Gym control benchmarks (Cartpole, Acrobot, MountainCar, and Lunar Lander) and classification datasets (FashionMNIST, ISOLET, and UCI-HAR).
- Extreme Energy Efficiency: In the MountainCar environment, HyperSNN required only 1.36% of the energy used by a standard MLP baseline. In the Lunar Lander task, it consumed just 3.8%.
- Superior Robustness: The model demonstrated an average 9.5% improvement in noise resilience. In high-noise scenarios where standard models failed, HyperSNN maintained stable control.
- Minimal Footprint: The model size for a Cartpole controller was reduced to a mere 0.051 KB, making it compatible with virtually any embedded microcontroller.
Conclusion
HyperSNN provides a viable path for deploying complex logic, such as Model Predictive Control (MPC), on resource-constrained edge devices. While energy savings were less dramatic for complex image classification tasks due to input normalization overhead, the framework's efficiency and robustness make it ideal for interactive and mobile applications. Future research will explore deployment on specialized neuromorphic hardware to further maximize these theoretical energy gains.
Summary updated