SYQ: Learning Symmetric Quantization For Efficient Deep Neural Networks

Julian Faraone, Nicholas Fraser, Michaela Blott, Philip H. W. Leong
7/1/2018
cs.CV

Official code: julianfaraone/SYQ (31 stars, Python, last commit 2019-07-25).

Abstract

Inference for state-of-the-art deep neural networks is computationally expensive, making them difficult to deploy on constrained hardware environments. An efficient way to reduce this complexity is to quantize the weight parameters and/or activations during training by approximating their distributions with a limited entry codebook.

Show full abstract

For very low-precisions, such as binary or ternary networks with 1-8-bit activations, the information loss from quantization leads to significant accuracy degradation due to large gradient mismatches between the forward and backward functions. In this paper, we introduce a quantization method to reduce this loss by learning a symmetric codebook for particular weight subgroups. These subgroups are determined based on their locality in the weight matrix, such that the hardware simplicity of the low-precision representations is preserved. Empirically, we show that symmetric quantization can substantially improve accuracy for networks with extremely low-precision weights and activations. We also demonstrate that this representation imposes minimal or no hardware implications to more coarse-grained approaches. Source code is available at https://www.github.com/julianfaraone/SYQ.

View on arXivView PDF

Code Implementations(1)

julianfaraone/SYQOfficial100%

This repository represents training examples for the CVPR 2018 paper "SYQ:Learning Symmetric Quantization For Efficient Deep Neural Networks"

316Python, MakefileApr 17, 20187 years ago

Similar Papers

Cite this paper

@article{faraone2018syq,
  title  = {SYQ: Learning Symmetric Quantization For Efficient Deep Neural Networks},
  author = {Julian Faraone and Nicholas Fraser and Michaela Blott and Philip H. W. Leong},
  year   = {2018},
  eprint = {1807.00301},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.00301}
}

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

Discussion