Bayesian Bits: Unifying Quantization and Pruning
Mart van Baalen, Christos Louizos, Markus Nagel et al. · arXiv (Cornell University) · 2020
We introduce Bayesian Bits, a practical method for joint mixed precision quantization and pruning through gradient based optimization. Bayesian Bits employs a novel decomposition of the quantization operation, which sequentially considers doubling the bit width. At each new bit width, the residual error between the full precision value and the previously rounded value is quantized. We then decide whether or not to add this quantized residual error for a higher effective bit width and lower quantization noise. By starting with a power-of-two bit width, this decomposition will always produce hardware-friendly configurations, and through an additional 0-bit option, serves as a unified view of pruning and quantization. Bayesian Bits then introduces learnable stochastic gates, which collectively control the bit width of the given tensor. As a result, we can obtain low bit solutions by performing approximate inference over the gates, with prior distributions that encourage most of them to be switched off. We experimentally validate our proposed method on several benchmark datasets and show that we can learn pruned, mixed precision networks that provide a better trade-off between accuracy and efficiency than their static bit width equivalents.
Cited by 76 works. doi:10.48550/arxiv.2005.07093 Open-access PDF
Authors
References
- Deep Residual Learning for Image Recognition
- AutoResearch Lite: a reproducible paper-inspired experiment runner (Adam mechanism reproduction and convergence-speed comparison)
- MobileNetV2: Inverted Residuals and Linear Bottlenecks
- Auto-Encoding Variational Bayes
- Simple statistical gradient-following algorithms for connectionist reinforcement learning
- PyTorch: An Imperative Style, High-Performance Deep Learning Library
- Keeping the neural networks simple by minimizing the description length of the weights
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
- Compressing Deep Convolutional Networks using Vector Quantization
- Channel Pruning for Accelerating Very Deep Neural Networks