FracBits: Mixed Precision Quantization via Fractional Bit-Widths

arXiv:2007.02017 First posted 2020-07-04 v2 Accepted by AAAI 2021
Cite this paper ×
BibTeX
@misc{yang2020fracbits,
  title = {FracBits: Mixed Precision Quantization via Fractional Bit-Widths},
  author = {Linjie Yang and Qing Jin},
  year = {2020},
  eprint = {2007.02017},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url = {https://arxiv.org/abs/2007.02017}
}
APA
Yang, L., & Jin, Q. (2020). FracBits: Mixed Precision Quantization via Fractional Bit-Widths [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2007.02017
GB/T 7714
YANG L, JIN Q. FracBits: Mixed Precision Quantization via Fractional Bit-Widths[EB/OL]. (2020-07-04)[2026-11-29]. https://arxiv.org/abs/2007.02017.

Abstract

Model quantization helps to reduce model size and latency of deep neural networks. Mixed precision quantization is favorable with customized hardwares supporting arithmetic operations at multiple bit-widths to achieve maximum efficiency. We propose a novel learning-based algorithm to derive mixed precision models end-to-end under target computation constraints and model sizes. During the optimization, the bit-width of each layer / kernel in the model is at a fractional status of two consecutive bit-widths which can be adjusted gradually. With a differentiable regularization term, the resource constraints can be met during the quantization-aware training which results in an optimized mixed precision model. Further, our method can be naturally combined with channel pruning for better computation cost allocation. Our final models achieve comparable or better performance than previous quantization methods with mixed precision on MobilenetV1/V2, ResNet18 under different resource constraints on ImageNet dataset.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!