Abstract
Pruning is a vital technique for deploying deep neural networks (DNNs) on resource-constrained hardware, yet traditional methods often require expensive retraining and access to original datasets. This paper presents a fast, post-training pruning framework developed by Intel researchers. By employing layer-wise calibration, bias/variance correction, and synthetic fractal data, the method achieves high sparsity (up to 65%) with minimal accuracy degradation, all without needing the original training pipeline.
Introduction
Deep learning models are increasingly resource-intensive, demanding significant memory and compute power. While pruning—the removal of non-essential weights—can alleviate these demands, the requirement for retraining often poses a barrier in production environments. Developers frequently lack the original training environment or full datasets. This research addresses the need for post-training pruning, enabling model compression on standard CPUs using only a small sample of data or even synthetic alternatives.
Methodology
The authors propose a three-stage "recipe" that optimizes models one layer at a time, ensuring computational efficiency and avoiding vanishing gradient issues common in global retraining.
- Layer-wise Sparsity Selection: Instead of uniform pruning, the algorithm determines per-layer sensitivity. A critical insight is the use of L2-normalized magnitude for weight selection, which accounts for the scale changes introduced when Batch Normalization layers are fused into convolutions.
- Bias and Variance Correction: Pruning weights shifts the statistical distribution of a layer's output. The method applies an affine transformation to the remaining weights to "re-center" activations, restoring the original mean and variance.
- Local Layer-wise Fine-tuning: Using a small calibration set, the method performs layer-level knowledge distillation. It minimizes the Mean Squared Error (MSE) between the original and pruned layer outputs. This process follows a cubic sparsity schedule, gradually increasing the zero-count until the target is reached.
Data-Free Calibration
When real data is unavailable, the framework utilizes FractalDB-1k, a collection of synthetic fractal images. These fractals provide structural complexity that mimics natural images, allowing for effective activation calibration where random noise fails.
Key Results and Analysis
The method was evaluated across computer vision (ImageNet, COCO), NLP (BERT), and recommendation systems (NCF).
As illustrated in Figure 3, the approach maintains high accuracy even at significant compression levels. For ResNet50, a 65% sparsity level results in only a ~1% drop in top@1 accuracy. The research also highlights a synergy between pruning and 8-bit quantization (INT8). Pruning effectively reduces quantization noise, leading to a combined memory footprint reduction of 6-8x without compounding accuracy loss.
Conclusion
This layer-wise calibration approach provides a robust, general-purpose strategy for post-training model optimization. It is fast enough for desktop CPUs and has been integrated into the OpenVINO Post-Training Optimization tool. While currently focused on unstructured pruning, the method demonstrates that high-quality compression is achievable even without the original training pipeline.
Summary updated