Adaptive Binary-Ternary Quantization

Abstract

Neural network models are resource hungry. It is difficult to deploy such deep networks on devices with limited resources, like smart wearables, cellphones, drones, and autonomous vehicles. Low bit quantization such as binary and ternary quantization is a common approach to alleviate this resource requirements. Ternary quantization provides a more flexible model and outperforms binary quantization in terms of accuracy, however doubles the memory footprint and increases the computational cost. Contrary to these approaches, mixed quantized models allow a trade-off between accuracy and memory footprint. In such models, quantization depth is often chosen manually, or is tuned using a separate optimization routine. The latter requires training a quantized network multiple times. Here, we propose an adaptive combination of binary and ternary quantization, namely Smart Quantization (SQ), in which the quantization depth is modified directly via a regularization function, so that the model is trained only once. Our experimental results show that the proposed method adapts quantization depth successfully while keeping the model accuracy high on MNIST and CIFAR10 benchmarks.

Cite

Text

Razani et al. "Adaptive Binary-Ternary Quantization." IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2021. doi:10.1109/CVPRW53098.2021.00519

Markdown

[Razani et al. "Adaptive Binary-Ternary Quantization." IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2021.](https://mlanthology.org/cvprw/2021/razani2021cvprw-adaptive/) doi:10.1109/CVPRW53098.2021.00519

BibTeX

@inproceedings{razani2021cvprw-adaptive,
  title     = {{Adaptive Binary-Ternary Quantization}},
  author    = {Razani, Ryan and Morin, Grégoire and Sari, Eyyüb and Nia, Vahid Partovi},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
  year      = {2021},
  pages     = {4613-4618},
  doi       = {10.1109/CVPRW53098.2021.00519},
  url       = {https://mlanthology.org/cvprw/2021/razani2021cvprw-adaptive/}
}