Directly Training Temporal Spiking Neural Network with Sparse Surrogate Gradient

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Yang, Zhao, Feifei, Zhao, Dongcheng, Zeng, Yi
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910505834119168
author Li, Yang
Zhao, Feifei
Zhao, Dongcheng
Zeng, Yi
author_facet Li, Yang
Zhao, Feifei
Zhao, Dongcheng
Zeng, Yi
contents Brain-inspired Spiking Neural Networks (SNNs) have attracted much attention due to their event-based computing and energy-efficient features. However, the spiking all-or-none nature has prevented direct training of SNNs for various applications. The surrogate gradient (SG) algorithm has recently enabled spiking neural networks to shine in neuromorphic hardware. However, introducing surrogate gradients has caused SNNs to lose their original sparsity, thus leading to the potential performance loss. In this paper, we first analyze the current problem of direct training using SGs and then propose Masked Surrogate Gradients (MSGs) to balance the effectiveness of training and the sparseness of the gradient, thereby improving the generalization ability of SNNs. Moreover, we introduce a temporally weighted output (TWO) method to decode the network output, reinforcing the importance of correct timesteps. Extensive experiments on diverse network structures and datasets show that training with MSG and TWO surpasses the SOTA technique.
format Preprint
id arxiv_https___arxiv_org_abs_2406_19645
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Directly Training Temporal Spiking Neural Network with Sparse Surrogate Gradient
Li, Yang
Zhao, Feifei
Zhao, Dongcheng
Zeng, Yi
Neural and Evolutionary Computing
Brain-inspired Spiking Neural Networks (SNNs) have attracted much attention due to their event-based computing and energy-efficient features. However, the spiking all-or-none nature has prevented direct training of SNNs for various applications. The surrogate gradient (SG) algorithm has recently enabled spiking neural networks to shine in neuromorphic hardware. However, introducing surrogate gradients has caused SNNs to lose their original sparsity, thus leading to the potential performance loss. In this paper, we first analyze the current problem of direct training using SGs and then propose Masked Surrogate Gradients (MSGs) to balance the effectiveness of training and the sparseness of the gradient, thereby improving the generalization ability of SNNs. Moreover, we introduce a temporally weighted output (TWO) method to decode the network output, reinforcing the importance of correct timesteps. Extensive experiments on diverse network structures and datasets show that training with MSG and TWO surpasses the SOTA technique.
title Directly Training Temporal Spiking Neural Network with Sparse Surrogate Gradient
topic Neural and Evolutionary Computing
url https://arxiv.org/abs/2406.19645