Abstract
Deep Neural Networks (DNNs) are computationally intensive, making deployment on resource-constrained edge devices challenging. Quantization offers a solution by reducing the bit-width of weights and activations, but often at the cost of accuracy due to gradient mismatch and coarse scaling. This paper introduces Symmetric Quantization (SYQ), which utilizes learned symmetric scaling factors for fine-grained weight subgroups. SYQ achieves state-of-the-art results on ImageNet, matching full-precision AlexNet performance with 1-bit weights, while optimizing for FPGA deployment through reduced storage and simplified hardware logic.
Introduction
The proliferation of Deep Learning has led to models that require significant memory and computational power, hindering their use in "edge" applications like mobile devices or drones. Quantization—representing weights and activations with low-precision formats (e.g., 1 or 2 bits)—is a primary technique to address this. However, extreme quantization typically suffers from a "gradient mismatch" during training, where updates calculated via the Straight Through Estimator (STE) do not align well with discrete values. While fine-grained scaling can mitigate this, it often introduces hardware complexity that offsets the benefits of quantization.
Methodology: Symmetric and Fine-Grained Quantization
SYQ addresses these challenges through a two-pronged approach designed for both accuracy and hardware efficiency.
Symmetric Codebooks
Unlike previous methods that used asymmetric scaling, SYQ enforces symmetry (e.g., scaling weights by $\pm\alpha$). This design choice halves the storage required for scaling factors and eliminates complex branching logic in hardware, facilitating more efficient bitwise operations.
Weight Subgrouping and Learning
To capture spatial redundancies in convolutional kernels without the overhead of per-weight scaling, SYQ introduces weight subgrouping. Weights are grouped based on their locality:
- Pixel-wise: Weights at the same spatial position across all channels share a scaling factor.
- Row-wise: Weights within the same kernel row share a factor.
Crucially, these scaling factors ($\alpha$) are not static; they are learned parameters updated via backpropagation alongside the network weights, allowing the model to adaptively compensate for quantization errors.
Experimental Results
The authors evaluated SYQ on the ImageNet (ILSVRC-2012) dataset across architectures including AlexNet, VGG-16, and various ResNet models.
Accuracy Benchmarks
SYQ consistently outperformed prior state-of-the-art methods like DoReFa-Net and TTQ. For AlexNet, SYQ with 1-bit weights and 8-bit activations achieved 56.6% Top-1 accuracy, effectively matching the full-precision baseline. On ResNet-50, 2-bit weights and 8-bit activations reached 72.3% Top-1 accuracy, significantly narrowing the gap to the 76.0% floating-point baseline.
Training Stability and Hardware Efficiency
While activations are generally more resilient than weights, the authors observed that reducing activation precision to 2 bits introduced volatility in the training error curve.
Hardware implementation on a Xilinx ZU3 FPGA demonstrated that row-wise SYQ utilizes DSPs and LUTs more effectively than standard layer-wise approaches, enabling high parallelism with minimal resource overhead.
Conclusion and Future Work
SYQ provides a robust framework for ultra-low precision DNNs. By leveraging spatial locality through learned symmetric scaling factors, it maintains high accuracy while ensuring hardware friendliness. Future work may address the stability of ultra-low precision activations and further optimize subgrouping overhead for smaller convolutional kernels. While the MAC-tree optimizations are particularly suited for FPGAs, the underlying mathematical principles offer a path forward for efficient deep learning across diverse hardware platforms.
Summary updated