Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks

Abstract

Hardware-friendly network quantization (e.g., binary/uniform quantization) can efficiently accelerate the inference and meanwhile reduce memory consumption of the deep neural networks, which is crucial for model deployment on resource-limited devices like mobile phones. However, due to the discreteness of low-bit quantization, existing quantization methods often face the unstable training process and severe performance degradation. To address this problem, in this paper we propose Differentiable Soft Quantization (DSQ) to bridge the gap between the full-precision and low-bit networks. DSQ can automatically evolve during training to gradually approximate the standard quantization. Owing to its differentiable property, DSQ can help pursue the accurate gradients in backward propagation, and reduce the quantization loss in forward process with an appropriate clipping range. Extensive experiments over several popular network structures show that training low-bit neural networks with DSQ can consistently outperform state-of-the-art quantization methods. Besides, our first efficient implementation for deploying 2 to 4-bit DSQ on devices with ARM architecture achieves up to 1.7x speed up, compared with the open-source 8-bit high-performance inference framework NCNN [31].

Cite

Text

Gong et al. "Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks." Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019. doi:10.1109/ICCV.2019.00495

Markdown

[Gong et al. "Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks." Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019.](https://mlanthology.org/iccv/2019/gong2019iccv-differentiable/) doi:10.1109/ICCV.2019.00495

BibTeX

@inproceedings{gong2019iccv-differentiable,
  title     = {{Differentiable Soft Quantization: Bridging Full-Precision and Low-Bit Neural Networks}},
  author    = {Gong, Ruihao and Liu, Xianglong and Jiang, Shenghu and Li, Tianxiang and Hu, Peng and Lin, Jiazhen and Yu, Fengwei and Yan, Junjie},
  booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year      = {2019},
  doi       = {10.1109/ICCV.2019.00495},
  url       = {https://mlanthology.org/iccv/2019/gong2019iccv-differentiable/}
}