Are Conventional SNNs Really Efficient? A Perspective from Network Quantization

Guobin Shen, Dongcheng Zhao, Tenglong Li, Jindong Li, Yi Zeng

Introduction

Spiking Neural Networks (SNNs) have long been touted as the energy-efficient alternative to traditional Artificial Neural Networks (ANNs), primarily due to their event-driven nature and binary spike communication. However, these efficiency claims are often based on comparisons between SNNs and full-precision (32-bit) ANNs. In modern edge computing, ANNs are typically heavily quantized (e.g., to 2-bit or 4-bit), making the standard SNN-to-ANN comparison "skewed." This paper addresses the lack of a unified framework to compare SNNs (defined by temporal steps $T$) with Quantized ANNs (QANNs, defined by bit-width).

The Quantitative SNN (QSNN) Framework

The researchers introduce the Quantitative SNN (QSNN) framework to bridge this theoretical chasm. The core insight is a mathematical equivalence: the forward pass of a QANN can be decomposed into bit-wise operations that mirror the temporal integrations of an SNN. Specifically, $T$ time steps in an SNN provide the same representational complexity as a $T$-bit quantized activation in an ANN.

Mathematical equivalence between SNN temporal steps and QANN bit-width quantization.

To quantify computational overhead fairly, the authors propose the Bit Budget (BB): $$BB = T \cdot b_w \cdot b_s$$ where $T$ represents time steps, $b_w$ is the weight bit-width, and $b_s$ is the spike bit-width. This metric allows for a hardware-agnostic comparison of different network configurations.

Methodology and Datasets

The framework was evaluated on both static datasets (ImageNet, CIFAR-10/100) and neuromorphic event-based datasets (CIFAR10-DVS, DVS128 Gesture, N-Caltech101). Beyond the Bit Budget, the authors introduced new metrics like Synaptic Arithmetic Computation Effort (S-ACE) and its neuromorphic variant (NS-ACE) to account for firing rates and synaptic operations more accurately than traditional SOP counts.

Key Insights: Time vs. Bits

The study reveals that for static data, high temporal resolution is often "computational waste." Increasing the spike bit-width while reducing time steps (e.g., $T=1$ or $T=2$) yielded significantly better accuracy for the same energy budget. Furthermore, sparsity is not an inherent biological gift but a designable feature; strategic bit allocation can lead to lower firing rates and improved efficiency. For neuromorphic data, a balance is required, with $T=4$ often serving as an optimal point for capturing inherent temporal information.

Hardware Validation and Results

To validate the Bit Budget metric, the authors implemented various neural integration units on a Xilinx Kria K26 FPGA. The results demonstrated a clear linear relationship between the proposed Bit Budget and the actual physical energy (pJ) consumed per operation across different chips and frequencies.

Linear correlation between the proposed Bit Budget metric and physical energy consumption on FPGA hardware.

Using these insights, the authors optimized a Quantized Spikformer on ImageNet, achieving 79.37% accuracy with 8-bit weights, 4-bit spikes, and only 1 time step. On CIFAR-100, a configuration with 4-bit spikes and 2-bit weights over 2 time steps (80.71% accuracy) outperformed traditional SNN approaches that relied on higher temporal resolution but lower spike precision.

Conclusion

This work redefines the efficiency landscape for SNNs by treating temporal resolution and quantization as two sides of the same coin. By optimizing the "Bit Budget," researchers can design networks that are truly efficient for their target hardware. Future work may involve integrating these strategies into automated Neural Architecture Search (NAS) to further refine bit-allocation for specific hardware constraints.

Summary updated

BibTeX
@inproceedings{shen2024are,
  author = {Guobin Shen and Dongcheng Zhao and Tenglong Li and Jindong Li and Yi Zeng},
  title = {{Are Conventional SNNs Really Efficient? A Perspective from Network Quantization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02600},
}
Figure