Abstract
Dynamic Pseudo-mean Mixed-precision Quantization (DPQ) is a novel framework designed to automate the optimization of bit-widths for neural network compression. By integrating a weight-distribution-aware bit assignment strategy with a stochastic activation quantization method called Random Parameters Clipping (RPC), DPQ addresses the computational complexity of mixed-precision search. Experimental results demonstrate that DPQ can achieve up to 35x compression rates while maintaining or even improving model accuracy across standard benchmarks like CIFAR-10 and SVHN.
Introduction
Deep Neural Networks (DNNs) are increasingly deployed on edge devices such as smartphones and embedded FPGAs, which have limited power and memory. Quantization—the process of converting 32-bit floating-point weights and activations into low-precision integers—is a primary method for model shrinkage. However, uniform quantization often leads to significant accuracy loss. Mixed-precision quantization, which assigns different bit-widths to layers based on their sensitivity, offers a solution but typically requires expensive manual tuning or complex architecture searches. Furthermore, weight quantization errors often propagate to activations, further degrading performance.
Methodology
The authors propose a two-pronged approach to solve these challenges: DPQ for weights and RPC for activations.
DPQ: Dynamic Pseudo-mean Mixed-precision Quantization
DPQ automates bit-width assignment by analyzing the statistical distribution of weights after group lasso regularization. The framework uses a threshold ($\theta$) to categorize layers as "important" or "unimportant." Important layers, characterized by a higher density of effective feature values, are "rounded up" to higher bit-widths using scaling factors ($\beta_1, \beta_2$), while unimportant layers are "rounded down" to maximize compression. This allows the model to dynamically reallocate bits during the training process.
RPC: Random Parameters Clipping
To mitigate the errors introduced by weight quantization, the authors introduced Random Parameters Clipping (RPC) for activations. Inspired by Dropout, RPC uses two probability parameters ($p$ and $q$) to randomly decide whether to quantize a specific activation or maintain it in higher precision during training. This partial quantization acts as a noise compensator, allowing the network to absorb errors and stabilize performance.
Experimental Results
The researchers evaluated DPQ on ResNet-20, ResNet-56, and MobileNetV2 using the CIFAR-10, CIFAR-100, and SVHN datasets.
Weight Distribution as a Signal
A core insight of the paper is that weight distribution serves as a reliable proxy for layer importance. By monitoring how weights fluctuate across layers over training epochs, the system can automatically adjust precision where it is most needed.
Performance Benchmarks
DPQ consistently outperformed state-of-the-art methods like BSQ and HAQ:
- ResNet-20 (CIFAR-10): Achieved a 15.43× compression rate with a 0.22% increase in Top-1 accuracy.
- ResNet-56 (SVHN): Reached a 35.25× compression rate with a 0.12% accuracy gain.
- MobileNetV2 (CIFAR-10): Maintained 93.84% accuracy with 5-bit activations, successfully handling the sensitivity of depth-wise separable convolutions.
Conclusion and Future Work
DPQ provides a robust framework for automated mixed-precision quantization, demonstrating that compression can act as a form of regularization to improve accuracy. Future research will focus on scaling the method to larger datasets like ImageNet, exploring data-free quantization techniques, and benchmarking the framework on physical hardware to measure actual latency and power savings.
Summary updated