Reconsidering the energy efficiency of spiking neural networks

Zhanglu Yan, Zhenyu Bai, Weng-Fai Wong · DOI

Abstract

Spiking Neural Networks (SNNs) are often hailed as the future of low-power AI due to their event-driven nature and use of simple additions instead of multiplications. However, this paper argues that their energy benefits are frequently overstated by ignoring the "memory wall"—the energy cost of data movement. By establishing a rigorous "apples-to-apples" comparison between SNNs and functionally equivalent Quantized Neural Networks (QNNs), the authors reveal that SNNs only achieve superior energy efficiency in very specific, high-sparsity, and low-latency operational regimes.

Introduction: The Hidden Cost of Data Movement

The neuromorphic community has long claimed that SNNs are more efficient than conventional Artificial Neural Networks (ANNs) because they replace power-hungry multiplications with simple additions and leverage "event-driven" sparsity. However, most evaluations focus solely on computation counts while ignoring data movement. In digital systems, moving data from memory to a processor often costs orders of magnitude more energy than the calculation itself. SNNs process data over multiple timesteps ($T$), meaning they may need to access weights and membrane potentials repeatedly. This research addresses the critical question: Under what specific algorithmic and hardware conditions do SNNs actually achieve better end-to-end energy efficiency than QNNs?

Methodology: Information Representation Equivalence

The authors introduce a framework based on Information Representation Equivalence. They prove that a rate-encoded SNN operating over $T$ timesteps is functionally equivalent to a QNN with $\lceil \log_2(T+1) \rceil$ bits of activation precision. This allows for a fair "twin" comparison where both models have the same representational capacity.

Mechanism of a Spiking Neural Network (SNN) processing input spike trains over time $T$.

The developed analytical energy model accounts for:

  • Core Computing ($E_{compute}$): MAC operations in QNNs vs. Accumulate (ACC) operations in SNNs.
  • Data Movement ($E_{data}$): Energy cost of fetching weights from SRAM/DRAM and moving activations across a Network-on-Chip (NoC).
  • Hardware Mapping Factors: Variables for routing distance ($k_{hop}$) and weight reuse ($R$) to account for different hardware architectures.

Theoretical models were validated using VGG16 architectures on CIFAR-10 and CIFAR-100, where QNNs were converted into SNN "twins" to ensure near-identical accuracy (gap < 0.2%).

Key Insights: The "Memory Wall" Penalty

SNNs suffer from a hidden "tax." While an ANN fetches a weight once per inference, an SNN might access data $T$ times. If $T$ is large, the energy spent on memory access quickly eclipses any savings from using additions instead of multiplications.

Comparison of SNN and QNN energy efficiency across various hardware settings and SNN parameters.

Key findings include:

  • The 5.4% Threshold: For typical neuromorphic hardware, if the time window ($T$) exceeds 5 steps, the SNN's average spike rate ($s_r$) must stay below 5.4% to remain competitive.
  • Weight Reuse Favors QNNs: High weight reuse (common in large CNNs or Transformers) significantly benefits QNNs. SNNs' irregular, sparse memory access patterns struggle to exploit data reuse as efficiently as dense QNNs.
  • The Precision Paradox: As weight precision increases (e.g., 4-bit to 8-bit), SNNs become more competitive because higher precision disproportionately increases the cost of a QNN’s MAC operations compared to an SNN’s additions.

Results and Real-World Impact

The study highlights dramatic differences in practical applications. In a smartwatch case study, an optimized SNN ($T=2$, low spike rate) could nearly double battery life (20.2 hours vs. 10.6 hours for a QNN). Conversely, a high-performance SNN ($T=32$, higher spike rate) would drain the battery in just 9 minutes, performing 10x worse than its QNN counterpart.

Conclusion and Future Directions

While SNNs offer potential for low-power AI, their efficiency is highly conditional. They are best suited for inherently asynchronous, event-driven data (like neuromorphic camera feeds) rather than static image classification where QNNs are highly optimized. Future work should focus on fundamentally new learning frameworks that align with the discrete, temporal nature of spikes rather than simple ANN-to-SNN conversion.

Summary updated

BibTeX
@misc{yan2024reconsidering,
  author = {Zhanglu Yan and Zhenyu Bai and Weng-Fai Wong},
  title = {{Reconsidering the energy efficiency of spiking neural networks}},
  year = {2024},
  eprint = {2409.08290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08290},
}
Figure