Hessian Aware Quantization of Spiking Neural Networks

Hin Wai Lui, Emre Neftci
4/29/2021
cs.NE

Official code: luithw/decolle-quantization (7 stars, Python, GPL-3.0, last commit 2021-09-03).

Abstract

To achieve the low latency, high throughput, and energy efficiency benefits of Spiking Neural Networks (SNNs), reducing the memory and compute requirements when running on a neuromorphic hardware is an important step. Neuromorphic architecture allows massively parallel computation with variable and local bit-precisions.

Show full abstract

However, how different bit-precisions should be allocated to different layers or connections of the network is not trivial. In this work, we demonstrate how a layer-wise Hessian trace analysis can measure the sensitivity of the loss to any perturbation of the layer's weights, and this can be used to guide the allocation of a layer-specific bit-precision when quantizing an SNN. In addition, current gradient based methods of SNN training use a complex neuron model with multiple state variables, which is not ideal for compute and memory efficiency. To address this challenge, we present a simplified neuron model that reduces the number of state variables by 4-fold while still being compatible with gradient based training. We find that the impact on model accuracy when using a layer-wise bit-precision correlated well with that layer's Hessian trace. The accuracy of the optimal quantized network only dropped by 0.2%, yet the network size was reduced by 58%. This reduces memory usage and allows fixed-point arithmetic with simpler digital circuits to be used, increasing the overall throughput and energy efficiency.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Hessian Aware Quantization of the DECOLLE Spiking Neural Network

73PythonMay 4, 20215 years agoGPL-3.0

Similar Papers

Cite this paper

@article{lui2021hessian,
  title  = {Hessian Aware Quantization of Spiking Neural Networks},
  author = {Hin Wai Lui and Emre Neftci},
  year   = {2021},
  eprint = {2104.14117},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.14117}
}

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/2104.14117.svg)](https://codeofpaper.com/paper/2104.14117)

Discussion