LSQ+: Improving low-bit quantization through learnable offsets and better initialization
Yash Sanjay Bhalgat, Jinwon Lee, Markus Nagel et al. · IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2020
Unlike ReLU, newer activation functions (like Swish, H-swish, Mish) that are frequently employed in popular efficient architectures can also result in negative activation values, with skewed positive and negative ranges. Typical learnable quantization schemes [5], [7] assume unsigned quantization for activations and quantize all negative activations to zero which leads to significant loss in performance. Naively using signed quantization to accommodate these negative values requires an extra sign bit which is expensive for low-bit (2-, 3-, 4-bit) quantization. To solve this problem, we propose LSQ+, a natural extension of LSQ [7], wherein we introduce a general asymmetric quantization scheme with trainable scale and offset parameters that can learn to accommodate the negative activations. Gradient-based learnable quantization schemes also commonly suffer from high instability or variance in the final training performance, hence requiring a great deal of hyper-parameter tuning to reach a satisfactory performance. LSQ+ alleviates this problem by using an MSE-based initialization scheme for the quantization parameters. We show that this initialization leads to significantly lower variance in final performance across multiple training runs. Overall, LSQ+ shows state-of-the-art results for EfficientNet and MixNet and also significantly outperforms LSQ for low-bit quantization of neural nets with Swish activations (e.g.: 1.8% gain with W4A4 quantization and upto 5.6% gain with W2A2 quantization of EfficientNet-B0 on ImageNet dataset). To the best of our knowledge, ours is the first work to quantize such architectures to extremely low bit-widths.
Cited by 225 works. doi:10.1109/cvprw50498.2020.00356 Open-access PDF
Authors
References
- ImageNet Large Scale Visual Recognition Challenge
- Identity Mappings in Deep Residual Networks
- Searching for MobileNetV3
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
- Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
- Quantizing deep convolutional networks for efficient inference: A whitepaper
- HAQ: Hardware-Aware Automated Quantization With Mixed Precision
- PACT: Parameterized Clipping Activation for Quantized Neural Networks
- Convolutional Neural Networks using Logarithmic Data Representation
- MixConv: Mixed Depthwise Convolutional Kernels