Skip to main content
QUICK REVIEW

[Paper Review] tinySNN: Towards Memory- and Energy-Efficient Spiking Neural Networks

Rachmad Vidya Wicaksana Putra, Muhammad Shafique|arXiv (Cornell University)|Jun 17, 2022
Advanced Memory and Neural ComputingEngineering5 citations
TL;DR

tinySNN is a framework that enables memory- and energy-efficient Spiking Neural Networks (SNNs) for embedded systems by eliminating inhibitory neurons, enhancing learning rules, and applying mixed-precision quantization of weights and neuron parameters. It achieves up to 3.32x memory reduction and 2.9x energy savings with no accuracy loss, enabling high-accuracy SNN deployment on resource-constrained devices.

ABSTRACT

Larger Spiking Neural Network (SNN) models are typically favorable as they can offer higher accuracy. However, employing such models on the resource- and energy-constrained embedded platforms is inefficient. Towards this, we present a tinySNN framework that optimizes the memory and energy requirements of SNN processing in both the training and inference phases, while keeping the accuracy high. It is achieved by reducing the SNN operations, improving the learning quality, quantizing the SNN parameters, and selecting the appropriate SNN model. Furthermore, our tinySNN quantizes different SNN parameters (i.e., weights and neuron parameters) to maximize the compression while exploring different combinations of quantization schemes, precision levels, and rounding schemes to find the model that provides acceptable accuracy. The experimental results demonstrate that our tinySNN significantly reduces the memory footprint and the energy consumption of SNNs without accuracy loss as compared to the baseline network. Therefore, our tinySNN effectively compresses the given SNN model to achieve high accuracy in a memory- and energy-efficient manner, hence enabling the employment of SNNs for the resource- and energy-constrained embedded applications.

Motivation & Objective

  • Address the challenge of deploying large, accurate SNNs on resource- and energy-constrained embedded platforms due to high memory and energy demands.
  • Overcome limitations of existing SNN optimization techniques that trade off accuracy, memory, or energy efficiency.
  • Enable efficient online training and inference by minimizing computational and memory overhead in both phases.
  • Develop a model selection mechanism that balances accuracy, memory, and energy constraints using a reward-based optimization.
  • Achieve high-accuracy SNNs with minimal memory footprint and energy consumption suitable for IoT and edge devices.

Proposed method

  • Replace inhibitory neurons with direct lateral inhibition to eliminate their parameters and operations, reducing memory and computational load.
  • Enhance the STDP learning rule by minimizing spurious weight updates and introducing adaptive potentiation to maintain learning quality after operation reduction.
  • Apply mixed-precision quantization to weights and neuron parameters, exploring various quantization schemes, precision levels (from 4-bit to 32-bit), and rounding methods (e.g., truncation).
  • Introduce a reward function that evaluates the memory-accuracy-energy trade-off, enabling automated selection of the optimal SNN model for given constraints.
  • Use a PyTorch-based simulation environment on both GPU and Jetson Nano to evaluate accuracy, memory footprint, and energy consumption across MNIST and Fashion-MNIST datasets.
  • Evaluate both post-training quantization (PTQ) and iterative quantization (ITQ) schemes to identify configurations that preserve accuracy under low-precision settings.

Experimental results

Research questions

  • RQ1How can SNNs be optimized for memory and energy efficiency in both training and inference phases without sacrificing accuracy?
  • RQ2What is the impact of eliminating inhibitory neurons on SNN accuracy and energy consumption?
  • RQ3Which combination of quantization schemes, precision levels, and rounding methods preserves SNN accuracy while minimizing memory and energy usage?
  • RQ4How can a model selection framework effectively balance accuracy, memory footprint, and energy consumption for embedded deployment?
  • RQ5To what extent can mixed-precision quantization of weights and neuron parameters reduce SNN size and energy consumption while maintaining performance?

Key findings

  • tinySNN with 8-bit or higher precision achieves higher accuracy than the baseline FP32 SNN and SL-STDP (FP32) across both MNIST and Fashion-MNIST datasets.
  • The framework reduces SNN memory footprint by up to 3.3x (for 8-bit weights) and 3.32x (for 8-bit weights and neuron parameters) compared to the baseline.
  • Energy consumption is reduced by up to 1.9x in training and 2.9x in inference for the 8-bit quantized version, with the highest gains from eliminating inhibitory neurons and quantization.
  • The model selection mechanism successfully identifies optimal SNN configurations based on user-defined trade-offs between accuracy, memory, and energy, with higher μ values favoring smaller, lower-precision models.
  • The combination of direct lateral inhibition and enhanced learning rule maintains or improves accuracy despite reduced operations, demonstrating the effectiveness of architectural simplification.
  • Quantization of both weights and neuron parameters provides additional memory and energy savings beyond weight-only quantization, with minimal accuracy degradation when precision is ≥8 bits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.