English

Towards the Limit of Network Quantization

Computer Vision and Pattern Recognition 2017-11-15 v2 Machine Learning Neural and Evolutionary Computing

Abstract

Network quantization is one of network compression techniques to reduce the redundancy of deep neural networks. It reduces the number of distinct network parameter values by quantization in order to save the storage for them. In this paper, we design network quantization schemes that minimize the performance loss due to quantization given a compression ratio constraint. We analyze the quantitative relation of quantization errors to the neural network loss function and identify that the Hessian-weighted distortion measure is locally the right objective function for the optimization of network quantization. As a result, Hessian-weighted k-means clustering is proposed for clustering network parameters to quantize. When optimal variable-length binary codes, e.g., Huffman codes, are employed for further compression, we derive that the network quantization problem can be related to the entropy-constrained scalar quantization (ECSQ) problem in information theory and consequently propose two solutions of ECSQ for network quantization, i.e., uniform quantization and an iterative solution similar to Lloyd's algorithm. Finally, using the simple uniform quantization followed by Huffman coding, we show from our experiments that the compression ratios of 51.25, 22.17 and 40.65 are achievable for LeNet, 32-layer ResNet and AlexNet, respectively.

Keywords

Cite

@article{arxiv.1612.01543,
  title  = {Towards the Limit of Network Quantization},
  author = {Yoojin Choi and Mostafa El-Khamy and Jungwon Lee},
  journal= {arXiv preprint arXiv:1612.01543},
  year   = {2017}
}

Comments

Published as a conference paper at ICLR 2017

R2 v1 2026-06-22T17:14:02.603Z