Biomimetics (Jul 2024)

LDD: High-Precision Training of Deep Spiking Neural Network Transformers Guided by an Artificial Neural Network

  • Yuqian Liu,
  • Chujie Zhao,
  • Yizhou Jiang,
  • Ying Fang,
  • Feng Chen

DOI
https://doi.org/10.3390/biomimetics9070413
Journal volume & issue
Vol. 9, no. 7
p. 413

Abstract

Read online

The rise of large-scale Transformers has led to challenges regarding computational costs and energy consumption. In this context, spiking neural networks (SNNs) offer potential solutions due to their energy efficiency and processing speed. However, the inaccuracy of surrogate gradients and feature space quantization pose challenges for directly training deep SNN Transformers. To tackle these challenges, we propose a method (called LDD) to align ANN and SNN features across different abstraction levels in a Transformer network. LDD incorporates structured feature knowledge from ANNs to guide SNN training, ensuring the preservation of crucial information and addressing inaccuracies in surrogate gradients through designing layer-wise distillation losses. The proposed approach outperforms existing methods on the CIFAR10 (96.1%), CIFAR100 (82.3%), and ImageNet (80.9%) datasets, and enables training of the deepest SNN Transformer network using ImageNet.

Keywords