Uncovering the Representation of Spiking Neural Networks Trained with Surrogate Gradient

Yuhang Li, Youngeun Kim, Hyoungseob Park, Priyadarshini Panda
4/25/2023
cs.LGcs.NE

No official code found. Best implementation: Intelligent-Computing-Lab-Panda/SNNCKA (13 stars, MIT, last commit 2023-04-25).

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. 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.

View on arXivView PDF

Code Implementations(1)

MIT

Pytorch implementation of ANN-SNN representation similarity analysis (TMLR 2023)

133PythonApr 25, 20233 years agoMIT

Similar Papers

Cite this paper

@article{li2023uncovering,
  title  = {Uncovering the Representation of Spiking Neural Networks Trained with Surrogate Gradient},
  author = {Yuhang Li and Youngeun Kim and Hyoungseob Park and Priyadarshini Panda},
  year   = {2023},
  eprint = {2304.13098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.13098v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.13098.svg)](https://codeofpaper.com/paper/2304.13098)

Discussion