Neural Architecture Search for Spiking Neural Networks

Youngeun Kim, Yuhang Li, Hyoungseob Park, Yeshwanth Venkatesha, Priyadarshini PandaECCV 2022

Abstract

Spiking Neural Networks (SNNs) have gained significant attention as a potential energy-efficient alternative to conventional Artificial Neural Networks (ANNs) due to their inherent high-sparsity activation. However, most prior SNN methods use ANN-like architectures (e.g., VGG-Net or ResNet), which could provide sub-optimal performance for temporal sequence processing of binary information in SNNs. To address this, we introduce a novel Neural Architecture Search (NAS) approach for finding better SNN architectures. Inspired by recent NAS approaches that find the optimal architecture from activation patterns at initialization, we select the architecture that can represent diverse spike activation patterns across different data samples without training. Moreover, to further leverage the temporal information among the spikes, we search for feed-forward connections as well as backward connections (i.e., temporal feedback connections) between layers. Interestingly, SNASNet found by our search algorithm achieves higher performance with backward connections, demonstrating the importance of designing SNN architecture for suitably using temporal information. We conduct extensive experiments on three image recognition benchmarks where we show that SNASNet achieves state-of-the-art performance with significantly lower timesteps (5 timesteps).

Introduction

Spiking Neural Networks (SNNs) represent a paradigm shift in neural computing, mimicking the brain's ability to process information via discrete binary spikes. This biological inspiration offers the promise of massive energy savings when deployed on neuromorphic hardware. Despite this potential, SNN development has historically suffered from a "hand-me-down" problem: the architectures used are typically borrowed from Artificial Neural Networks (ANNs), such as VGG or ResNet.

Because ANNs are designed for continuous-value processing and SNNs operate on temporal sequences of binary data, these inherited structures are often sub-optimal. Furthermore, the computational cost of standard Neural Architecture Search (NAS) is often prohibitive for SNNs, as training a single spiking model can take up to ten times longer than its ANN counterpart. This paper addresses these challenges by proposing a training-free NAS framework specifically tailored to the unique dynamics of spiking neurons.

Methodology

Zero-Shot NAS for SNNs

To circumvent the high cost of training-based NAS, we utilize a "zero-shot" proxy to evaluate candidate architectures at initialization. The core idea is to measure the "representation power" of a network by analyzing how distinct the activation patterns (spike patterns) are for different input samples. A network that produces diverse spike patterns for diverse inputs is considered to have higher potential for learning.

Sparsity-Aware Hamming Distance (SAHD)

Standard metrics for comparing binary patterns, such as the Hamming Distance, are insufficient for SNNs. Because spike activity is extremely sparse and the number of spikes varies significantly between samples, a standard distance metric would be biased by the prevalence of zeros. We introduce the Sparsity-Aware Hamming Distance (SAHD) to normalize these distances, ensuring the search algorithm identifies architectures based on meaningful information representation rather than simple activity levels.

Temporal Feedback Connections

Traditional NAS spaces focus on feed-forward paths. However, SNNs process information over time, making temporal correlations vital. Our search space includes backward connections, allowing information from a later layer at time $t-1$ to influence an earlier layer at time $t$. This architectural feature provides the network with a form of "working memory," enabling it to capture complex temporal dependencies that feed-forward models might miss.

Experimental Results

We evaluated the discovered architecture, SNASNet, across three standard image recognition benchmarks: CIFAR-10, CIFAR-100, and TinyImageNet. While these are static datasets, the SNN processes them over multiple timesteps, converting static pixels into temporal spike trains.

Performance and Latency

SNASNet achieves state-of-the-art (SOTA) performance while maintaining remarkably low latency:

  • CIFAR-10: Achieved 93.73% accuracy in just 5 timesteps. This is a significant improvement over conversion-based SNNs, which often require hundreds of timesteps to reach comparable accuracy.
  • CIFAR-100: Achieved 73.04% accuracy (5 timesteps), outperforming traditional human-designed VGG-16 and ResNet-20 models.
  • TinyImageNet: Reached 54.60% accuracy, representing a substantial leap over prior SNN results on this challenging benchmark.

The zero-shot approach proved highly efficient. The search for the optimal architecture required only a few GPU hours, a stark contrast to the thousands of hours typically required for reinforcement learning-based NAS.

Discussion

The Role of Backward Connections

Our findings indicate that backward connections are a critical component of high-performing SNNs. The search algorithm consistently favored models with these connections (SNASNet-Bw), confirming that temporal feedback is essential for SNNs to fully leverage their time-domain processing capabilities.

Architecture Irregularity and Transferability

Interestingly, the discovered cells do not follow the neat, symmetrical patterns common in human-designed architectures. Instead, they form irregular graphs that appear better suited to the non-linear dynamics of Leaky Integrate-and-Fire (LIF) neurons. Furthermore, architectures discovered on CIFAR-10 demonstrated strong transferability to TinyImageNet, suggesting that "SNN-friendliness" is a general structural property.

Conclusion

SNASNet represents a significant step forward in the automated design of brain-inspired AI. By utilizing a sparsity-aware zero-shot proxy and incorporating temporal feedback connections, we have demonstrated that SNNs can achieve high accuracy with minimal latency. Future work will explore the application of these architectures to truly dynamic, event-based data (such as DVS camera streams) and the optimization of these irregular structures for specific neuromorphic hardware constraints.

Summary updated

BibTeX
@inproceedings{kim2022neural,
  author = {Youngeun Kim and Yuhang Li and Hyoungseob Park and Yeshwanth Venkatesha and Priyadarshini Panda},
  title = {{Neural Architecture Search for Spiking Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=GbGCW7m-zJr},
}
Figure