[Paper Review] Uncovering the Representation of Spiking Neural Networks Trained with Surrogate Gradient
The paper uses Centered Kernel Alignment (CKA) to compare representations in SNNs trained with surrogate-gradient BPTT to ANNs, finding high similarity overall and limited unique temporal representations, with residual connections stabilizing ANN-like representations.
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. We hope this work will inspire future research to fully comprehend the representation power of SNNs. Code is released at https://github.com/Intelligent-Computing-Lab-Yale/SNNCKA.
Motivation & Objective
- Assess whether SNNs trained with surrogate gradient learn representations distinct from ANNs.
- Examine how width, depth, and time dimension affect SNN representations relative to ANNs.
- Evaluate the impact of residual connections on representation similarity and model performance.
- Investigate how input data type (static vs event-based) and adversarial attacks influence representations.
Proposed method
- Train directly a range of ResNet and VGG-style networks in SNN and ANN forms on CIFAR-10/ CIFAR-100.
- Compute per-layer CKA between SNN and ANN representations across all layers.
- Analyze spatial (width/depth) and temporal (time steps) effects on similarity.
- Conduct ablations on residual connections to study their effect on representation alignment.
- Evaluate representations under event-based data and adversarial attacks.
Experimental results
Research questions
- RQ1Do SNNs trained with surrogate-gradient BPTT learn representations distinct from ANNs?
- RQ2How do width and depth affect ANN-SNN representation similarity?
- RQ3Does the time dimension in SNNs provide unique representation power?
- RQ4How do residual connections influence representation similarity and performance?
- RQ5How do different data types and adversarial perturbations affect SNN representations?
Key findings
- SNNs with surrogate gradient training show high representation similarity to ANNs across layers.
- Residual connections help regularize SNN representations to be more ANN-like and improve performance.
- The time dimension contributes little new representation power; shallow layers show static time behavior.
- Wider networks tend to increase ANN-SNN similarity, reducing the performance gap.
- Event-based datasets can yield different ANN-SNN similarity patterns, suggesting room for SNN-specific optimization.
- SNNs exhibit enhanced robustness to adversarial attacks compared to ANNs, as reflected in higher feature-space similarity under attack.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.