Near Lossless Transfer Learning for Spiking Neural Networks

Abstract

Spiking neural networks (SNNs) significantly reduce energy consumption by replacing weight multiplications with additions. This makes SNNs suitable for energy-constrained platforms. However, due to its discrete activation, training of SNNs remains a challenge. A popular approach is to first train an equivalent CNN using traditional backpropagation, and then transfer the weights to the intended SNN. Unfortunately, this often results in significant accuracy loss, especially in deeper networks. In this paper, we propose CQ training (Clamped and Quantized training), an SNN-compatible CNN training algorithm with clamp and quantization that achieves near-zero conversion accuracy loss. Essentially, CNN training in CQ training accounts for certain SNN characteristics. Using a 7 layer VGG-* and a 21 layer VGG-19, running on the CIFAR-10 dataset, we achieved 94.16% and 93.44% accuracy in the respective equivalent SNNs. It outperforms other existing comparable works that we know of. We also demonstrate the low-precision weight compatibility for the VGG-19 structure. Without retraining, an accuracy of 93.43% and 92.82% using quantized 9-bit and 8-bit weights, respectively, was achieved. The framework was developed in PyTorch and is publicly available.

Cite

Text

Yan et al. "Near Lossless Transfer Learning for Spiking Neural Networks." AAAI Conference on Artificial Intelligence, 2021. doi:10.1609/AAAI.V35I12.17265

Markdown

[Yan et al. "Near Lossless Transfer Learning for Spiking Neural Networks." AAAI Conference on Artificial Intelligence, 2021.](https://mlanthology.org/aaai/2021/yan2021aaai-near/) doi:10.1609/AAAI.V35I12.17265

BibTeX

@inproceedings{yan2021aaai-near,
  title     = {{Near Lossless Transfer Learning for Spiking Neural Networks}},
  author    = {Yan, Zhanglu and Zhou, Jun and Wong, Weng-Fai},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2021},
  pages     = {10577-10584},
  doi       = {10.1609/AAAI.V35I12.17265},
  url       = {https://mlanthology.org/aaai/2021/yan2021aaai-near/}
}