Abstract
Quantizing deep neural networks to low bit-widths (2-4 bits) is essential for deployment on resource-constrained edge devices. However, modern architectures utilizing non-ReLU activations like Swish present challenges for traditional symmetric quantization methods. This paper introduces LSQ+, which extends Learned Step Size Quantization (LSQ) with a learnable offset parameter and a robust MSE-based initialization strategy. LSQ+ effectively handles asymmetric activation distributions and improves training stability, achieving significant accuracy gains on EfficientNet and MixNet without increasing inference latency.
Introduction
To enable deep learning on edge devices, quantization is used to represent weights and activations with low-precision integers. While effective for traditional ReLU-based networks, standard quantization methods struggle with modern architectures like EfficientNet and MixNet. These models use activation functions such as Swish, which feature a small negative "tail." Standard symmetric quantization either discards this information or wastes bit-range on rarely populated values. Furthermore, gradient-based quantization is highly sensitive to initialization, often leading to unstable training and high variance in final accuracy.
Methodology: LSQ+
LSQ+ addresses these limitations through two primary innovations: learnable asymmetric quantization and MSE-based initialization.
Learnable Asymmetric Quantization
LSQ+ introduces a learnable offset parameter, $\beta$, in addition to the scale parameter $s$. The quantization function is defined as: $$\hat{x} = \lfloor \text{clamp}(\frac{x - \beta}{s}, n, p) \rceil \times s + \beta$$ This formulation allows the quantization grid to shift, accommodating the skewed distributions typical of Swish activations. Importantly, $\beta$ can be folded into the layer's bias term during inference, ensuring zero computational overhead on the target hardware.
Robust Initialization
To mitigate training instability, LSQ+ employs a Mean Squared Error (MSE) based initialization. Instead of using simple min/max values, parameters are initialized by minimizing the MSE between floating-point and quantized activations over initial batches. Weights are initialized using a Gaussian approximation based on their mean and standard deviation.
Experimental Results
The authors evaluated LSQ+ on the ImageNet dataset using ResNet-18, EfficientNet-B0, and MixNet-S.
Performance on Modern Architectures
LSQ+ demonstrates substantial improvements on models with non-ReLU activations. For EfficientNet-B0 at 4-bit precision (W4A4), LSQ+ achieved 73.8% top-1 accuracy, a 1.9% improvement over the baseline LSQ. At 2-bit precision (W2A2), the gain was even more pronounced, reaching 49.1% accuracy—a 5.6% increase.
Training Stability
The MSE-based initialization significantly reduced performance variance. For 4-bit EfficientNet, the variance in final accuracy across multiple runs dropped from $\pm 2.2\%$ to $\pm 0.9\%$. On traditional ReLU networks like ResNet-18, LSQ+ remained competitive, matching or slightly exceeding state-of-the-art results (e.g., 70.8% for 4-bit).
Conclusion
LSQ+ provides a robust framework for low-bit quantization of modern neural networks. By incorporating learnable offsets and improved initialization, it overcomes the limitations of symmetric quantization for asymmetric activations. The method achieves state-of-the-art accuracy on efficient architectures while maintaining zero inference overhead, making it highly suitable for practical edge deployment.
Summary updated