Abstract
Spiking Neural Networks (SNNs) are recognized as the candidate for the next-generation neural networks due to their bio-plausibility and energy efficiency. Recently, researchers have demonstrated that SNNs are able to achieve nearly state-of-the-art performance in image recognition tasks using surrogate gradient training. However, some essential questions exist pertaining to SNNs that are little studied: Do SNNs trained with surrogate gradient learn different representations from traditional Artificial Neural Networks (ANNs)? Does the time dimension in SNNs provide unique representation power? In this paper, we aim to answer these questions by conducting a representation similarity analysis between SNNs and ANNs using Centered Kernel Alignment (CKA). We start by analyzing the spatial dimension of the networks, including both the width and the depth. Furthermore, our analysis of residual connections shows that SNNs learn a periodic pattern, which rectifies the representations in SNNs to be ANN-like. We additionally investigate the effect of the time dimension on SNN representation, finding that deeper layers encourage more dynamics along the time dimension. We also investigate the impact of input data such as event-stream data and adversarial attacks. Our work uncovers a host of new findings of representations in SNNs.
Introduction
Spiking Neural Networks (SNNs) are hailed as the next generation of AI because they process information using discrete binary "spikes," mimicking the human brain and promising massive energy savings on neuromorphic hardware. However, training them is difficult because the spiking function is non-differentiable. To solve this, researchers use "surrogate gradients"—a mathematical workaround that allows standard backpropagation. This raises a fundamental question: By using ANN-like training methods, are we just forcing SNNs to act like ANNs? Does the unique "time dimension" of an SNN actually contribute new representational power, or is it just overhead? This paper seeks to "peek under the hood" of SNNs to see if they are truly unique or just ANNs in disguise.
Methodology
The authors employ Centered Kernel Alignment (CKA), a popular tool for comparing the internal representations of different neural networks. CKA looks at how a layer "sees" a batch of data—if two layers cluster the same images similarly, they have a high CKA score.
The study compares ResNet (20 to 164 layers) and VGG-series models, contrasting SNNs trained via Backpropagation Through Time (BPTT) with surrogate gradients against standard ReLU-based ANNs. They analyze the impact of network width, depth, and the number of simulation time steps ($T$) across both static (CIFAR-10/100) and neuromorphic event-based datasets (CIFAR10-DVS, N-Caltech 101).
Key Insights and Results
The "ANN-ification" Effect of Residuals
The most striking finding is that residual connections act as a "regularizer" that makes SNN representations look almost identical to ANNs. Every time a residual branch merges back into the main path, the CKA similarity to an ANN "restores" to nearly 1.0.
As shown in Figure 5, SNNs exhibit a periodic pattern within residual blocks. Without these connections, the accuracy gap between ANNs and SNNs explodes; for a 74-layer network, an SNN without residuals collapses to ~10% accuracy, while one with residuals recovers to ~91.8%, nearly matching its ANN counterpart.
Spatial and Temporal Dynamics
- Width vs. Depth: Increasing the width of an SNN makes it more ANN-like (higher similarity), whereas increasing depth causes the representations of SNNs and ANNs to diverge significantly.
- Temporal Stagnation: In shallow layers, the representation is almost static across time steps. However, as you go deeper into the network, the representations become more dynamic and varied across time, suggesting that the temporal power of SNNs is concentrated in later processing stages.
Natural Robustness and Neuromorphic Data
Even though their representations are similar, SNNs are inherently more robust to adversarial attacks. Under a PGD attack, an ANN's accuracy dropped by 43%, while the SNN's only dropped by 22%. CKA analysis showed that SNN internal features remain much more stable under attack. Furthermore, on event-based data (DVS), SNNs and ANNs show much lower similarity, suggesting that SNNs have more "room to grow" when dealing with truly temporal data.
Conclusion
The findings suggest that current SNN design is heavily influenced by "porting" ANN structures and training methods. While this achieves high performance, it may suppress the unique representational potential of spiking dynamics. Future work should focus on designing SNN-specific architectures and exploring bio-plausible learning rules, like Spike-Timing-Dependent Plasticity (STDP), to fully unlock the power of neuromorphic computing.
Summary updated