Abstract
Deep neural network compression through quantization and pruning is essential for deployment on resource-constrained devices but often results in substantial accuracy loss. Traditional recovery methods require large labeled datasets and significant computational resources. This paper proposes a "label-free" framework that restores accuracy in minutes on a CPU using only a small set of unlabeled images. The core innovation lies in identifying and correcting the "statistic shift" in Batch Normalization (BN) layers caused by compression, allowing for near-original performance without extensive retraining.
Introduction
Deploying state-of-the-art deep learning models on mobile or embedded systems is challenging due to their high memory and computational demands. While quantization (reducing weight precision) and pruning (removing redundant connections) are effective for compression, they typically degrade model performance. Standard recovery techniques, such as fine-tuning, are often impractical due to data privacy concerns, the massive size of training sets like ImageNet, and the high cost of GPU hours. This research addresses these hurdles by enabling on-the-fly model compression with minimal data and compute requirements.
Methodology
The authors introduce a two-step approach for label-free network compression:
1. Quasi-Lloyd-Max Algorithm
To minimize the mathematical discrepancy between full-precision weights ($W$) and their low-bit quantized counterparts ($Q$), the authors developed an iterative optimization algorithm. This ensures that the initial compressed model preserves as much information as possible from the original weights. Figure 1(a) demonstrates how quantization error converges over iterations, while Figure 1(b) illustrates the resulting discrete weight distribution.
2. Re-normalization
The pivotal discovery of this work is that performance loss is largely driven by a mismatch in Batch Normalization (BN) statistics. When weights are quantized, the internal feature distributions change, rendering the original BN means and variances obsolete. The authors propose "re-normalization": passing a small batch (~1,000) of unlabeled images through the model to re-estimate these statistics. This process aligns the model's internal expectations with its new compressed state without requiring backpropagation or labels.
Key Results
The framework demonstrates remarkable efficiency and effectiveness across several standard architectures on the ImageNet dataset.
- Accuracy Recovery: For a 4-bit quantized AlexNet, the Top-1 accuracy gap was reduced from -1.77% (without re-normalization) to just -0.39% (with it). In the case of ResNet-18, an initial drop of -13.21% was recovered to within -1.83% of the original performance.
- Computational Efficiency: The entire re-normalization process takes less than five minutes on a standard CPU, as it only requires forward passes to calculate statistics rather than expensive gradient-based updates.
- Comparison of Quantization Schemes: The authors compared various quantization methods, showing that their optimized approach significantly outperforms naive baselines like round-to-nearest or uniform quantization.
Discussion and Limitations
While highly effective for moderate compression, the method faces challenges with "extreme quantization" (e.g., 1-bit or 2-bit models), where the signal corruption is too severe for simple re-normalization to fix. Additionally, compact architectures like MobileNet, which lack the redundancy of larger models, show higher sensitivity to 4-bit quantization. Nevertheless, this approach provides an excellent starting point for further optimization, potentially drastically reducing the time needed for traditional fine-tuning if higher compression ratios are required.
Summary updated