ProxQuant: Quantized Neural Networks via Proximal Operators

Yu Bai, Yu-Xiang Wang, Edo Liberty
10/1/2018
cs.LGstat.ML
quantization-pruning

Official code: allenbai01/ProxQuant (30 stars, Python, MIT, last commit 2019-02-19).

Abstract

To make deep neural networks feasible in resource-constrained environments (such as mobile devices), it is beneficial to quantize models by using low-precision weights. One common technique for quantizing neural networks is the straight-through gradient method, which enables back-propagation through the quantization mapping.

Show full abstract

Despite its empirical success, little is understood about why the straight-through gradient method works. Building upon a novel observation that the straight-through gradient method is in fact identical to the well-known Nesterov's dual-averaging algorithm on a quantization constrained optimization problem, we propose a more principled alternative approach, called ProxQuant, that formulates quantized network training as a regularized learning problem instead and optimizes it via the prox-gradient method. ProxQuant does back-propagation on the underlying full-precision vector and applies an efficient prox-operator in between stochastic gradient steps to encourage quantizedness. For quantizing ResNets and LSTMs, ProxQuant outperforms state-of-the-art results on binary quantization and is on par with state-of-the-art on multi-bit quantization. For binary quantization, our analysis shows both theoretically and experimentally that ProxQuant is more stable than the straight-through gradient method (i.e. BinaryConnect), challenging the indispensability of the straight-through gradient method and providing a powerful alternative.

View on arXivView PDF

Code Implementations(1)

MIT

ProxQuant: Quantized Neural Networks via Proximal Operators

304Python, ShellFeb 18, 20197 years agoMIT

Similar Papers

Cite this paper

@article{bai2018proxquant,
  title  = {ProxQuant: Quantized Neural Networks via Proximal Operators},
  author = {Yu Bai and Yu-Xiang Wang and Edo Liberty},
  year   = {2018},
  eprint = {1810.00861},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.00861}
}

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

Discussion