HMQ: Hardware Friendly Mixed Precision Quantization Block for CNNs

Recent work in network quantization produced state-of-the-art results using mixed precision quantization. An imperative requirement for many efficient edge device hardware implementations is that their quantizers are uniform and with power-of-two thresholds. In this work, we introduce the Hardware Friendly Mixed Precision Quantization Block (HMQ) in order to meet this requirement. The HMQ is a mixed precision quantization block that repurposes the Gumbel-Softmax estimator into a smooth estimator of a pair of quantization parameters, namely, bit-width and threshold. HMQs use this to search over a finite space of quantization schemes. Empirically, we apply HMQs to quantize classification models trained on CIFAR10 and ImageNet. For ImageNet, we quantize four different architectures and show that, in spite of the added restrictions to our quantization scheme, we achieve competitive and, in some cases, state-of-the-art results.

PDF Abstract ECCV 2020 PDF ECCV 2020 Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Quantization ImageNet EfficientNet-B0-W8A8 Top-1 Accuracy (%) 76.4 # 13
Weight bits 8 # 10
Activation bits 8 # 9
Quantization ImageNet ResNet50-W3A4 Top-1 Accuracy (%) 75.45 # 15
Weight bits 3 # 2
Activation bits 4 # 1
Quantization ImageNet EfficientNet-B0-W4A4 Top-1 Accuracy (%) 76 # 14
Weight bits 4 # 4
Activation bits 4 # 1
Quantization ImageNet MobileNetV2 Top-1 Accuracy (%) 70.9 # 24

Methods