Abstract
Structured pruning and quantization are essential techniques for deploying deep neural networks on resource-constrained edge devices. However, traditional compression pipelines often require access to the original training data for fine-tuning, posing significant privacy and security risks. Furthermore, pruning and quantization are typically treated as isolated tasks, failing to exploit their potential synergies. This paper introduces Unified Data-Free Compression (UDFC), a framework that performs pruning and quantization simultaneously without requiring any training data or iterative fine-tuning. By modeling the information loss as a reconstruction error and deriving a closed-form solution, UDFC achieves state-of-the-art accuracy recovery. On ImageNet, UDFC improves accuracy by 20.54% compared to existing data-free methods under aggressive compression settings.
Introduction
Deep learning models have become increasingly complex, leading to substantial memory and computational requirements. To facilitate deployment on mobile and embedded systems, researchers employ pruning (the removal of redundant channels) and quantization (the reduction of numerical precision).
Despite their effectiveness, current compression methodologies face two primary hurdles:
- Data Dependency: Most techniques rely on the original training dataset to "repair" the model's accuracy post-compression. This is often impossible in fields like healthcare or defense, where data is proprietary or sensitive.
- Fragmented Optimization: Pruning and quantization are usually applied sequentially. This fragmented approach ignores the fact that both processes introduce similar types of information loss that could be mitigated more effectively if addressed in a unified manner.
The UDFC Framework
UDFC addresses these challenges by treating pruning and quantization as a joint optimization problem. The framework is built upon a core mathematical assumption: the information lost when a channel is "damaged" (either pruned or quantized) can be reconstructed through a linear combination of the remaining "healthy" channels.
Reconstruction Strategy
Rather than using data to retrain the entire network, UDFC mathematically adjusts the weights of the layer immediately following the compression point.
- Pruning Compensation: When a channel is removed, its contribution to the subsequent layer is redistributed among the remaining channels using calculated scale factors.
- Quantization Compensation: The "noise" introduced by reducing bit-width is mitigated by adjusting the weights that receive the quantized output, effectively "patching" the error locally.
Closed-Form Solution
The researchers formulated a "Reconstruction Error" function that accounts for the combined impact of pruning and quantization. They demonstrated that this error function is convex, allowing for the derivation of a closed-form solution. This mathematical breakthrough enables the optimal weight adjustments to be calculated instantly via a formula, bypassing the need for time-consuming stochastic gradient descent (SGD).
Experimental Results
The UDFC framework was rigorously evaluated on the CIFAR-10 and ImageNet benchmarks across various architectures, including ResNet, VGG, MobileNetV2, and DenseNet.
Accuracy and Robustness
UDFC consistently outperformed existing data-free methods such as Neuron Merging and Data-Free Quantization (DFQ). Notable results include:
- ImageNet (ResNet-34): At a 30% pruning ratio and 6-bit quantization, UDFC achieved a 20.54% accuracy improvement over the previous state-of-the-art.
- CIFAR-10 (VGG-16): With an 80% pruning ratio and 6-bit quantization, UDFC maintained 91.79% accuracy (a minimal ~2% drop), whereas standard pruning methods saw accuracy collapse to 18.15%.
Computational Efficiency
Because UDFC relies on a closed-form solution rather than iterative optimization, it is exceptionally fast. For instance, UDFC can compress a ResNet-50 model in approximately 2 seconds on a single GPU. In comparison, competing data-free methods like ZeroQ require nearly 30 seconds for the same task.
Discussion and Limitations
While UDFC represents a significant leap forward for data-free compression, it faces a "Bit-Width Wall." The authors observed that accuracy declines sharply at extremely low bit-widths (e.g., 2-bit or 3-bit), where the information loss becomes too severe for linear reconstruction to compensate. Additionally, the method's reliance on the linear relationship between channels may be less effective for non-linear or highly specialized architectures.
Conclusion
Unified Data-Free Compression (UDFC) provides a robust, efficient, and privacy-preserving solution for model compression. By unifying pruning and quantization through a mathematically rigorous reconstruction process, UDFC eliminates the need for training data while delivering superior performance. Future work will explore the application of this unified approach to emerging architectures like Vision Transformers (ViTs).
Summary updated