TL;DR
This paper introduces FilterSketch, a novel method for structured network pruning that preserves the second-order covariance of pre-trained network weights. By formulating pruning as a matrix sketching problem solvable with the Frequent Direction method, FilterSketch significantly reduces pruning time without requiring retraining from scratch or data-driven optimization, while maintaining high accuracy.
What Problem Does This Paper Address?
Deep Convolutional Neural Networks (CNNs) are powerful but computationally expensive, making them difficult to deploy on resource-constrained devices. Network pruning aims to reduce model size by removing redundant filters or channels. Existing structured pruning methods often fall into three categories: regularization-based (requiring training from scratch), property-based (recursively pruning and fine-tuning), and reconstruction-based (data-driven iterative optimization). All these methods can be computationally intensive and may struggle to recover the pruned network's performance without significant effort. This paper addresses the need for a faster, simpler, and more effective structured pruning method that preserves crucial information within the network weights.
Methods
FilterSketch proposes a new perspective on network pruning by focusing on preserving the second-order information of pre-trained network weights, specifically their covariance. The core idea is that instead of discarding filters based on simple importance metrics, FilterSketch aims to create a smaller set of filters that collectively capture the essential relationships (covariance) present in the original filters.
This information-preserving constraint is framed as a matrix sketch problem. The authors leverage the Frequent Direction (FD) method, an off-the-shelf algorithm for matrix sketching, to efficiently solve this problem. FD is a streaming algorithm, meaning it processes data in a single pass without iterations, leading to a significant speedup.
The process involves:
- Encoding Second-Order Information: The method focuses on preserving the covariance matrix of the filters in each layer.
- Matrix Sketching: The problem of preserving this covariance is approximated as a matrix sketch problem, where a smaller matrix (the pruned filters) approximates the original.
- Frequent Direction (FD) Method: This efficient, iterative-free algorithm is used to compute the sketch.
- Normalization: A crucial step involves normalizing the sketched filters to address potential numerical instability and ensure better accuracy recovery during fine-tuning.
- Fine-tuning: The resulting pruned network, with the information-preserved filters, is then fine-tuned for a relatively short period to recover performance.
This approach avoids the need for training from scratch or complex iterative optimization, making it much faster.
Datasets
The paper evaluates FilterSketch on two standard datasets:
- CIFAR-10: A widely used dataset for image classification.
- ILSVRC-2012 (ImageNet): A larger and more challenging dataset for image classification.
Key Insights and Ideas
- Second-Order Covariance is Key: The paper highlights that preserving the second-order covariance of filter weights, rather than just first-order statistics or simple importance scores, is crucial for maintaining network performance after pruning. This captures the interdependencies between filters.
- Matrix Sketching for Pruning: Reframing network pruning as a matrix sketching problem is a novel contribution. This allows for the application of efficient sketching algorithms like Frequent Direction.
- Frequent Direction for Efficiency: Using the FD method provides a significant speedup in the pruning process, reducing computation time from hours/days to seconds.
- Normalization for Stability: The normalization step is critical for overcoming numerical issues that can arise from the sketching process, leading to better accuracy recovery.
- Warm-up for Fine-tuning: The information-preserving sketched filters act as an excellent "warm-up" for fine-tuning, enabling faster and more effective recovery of the pruned network's accuracy.
Key Results
FilterSketch demonstrates strong performance across various CNN architectures and datasets:
- ResNet-110 on CIFAR-10: Reduced FLOPs by 63.3% and parameters by 59.9% with a negligible accuracy drop.
- ResNet-50 on ILSVRC-2012: Reduced FLOPs by 45.5% and parameters by 43.0% with only a 0.69% accuracy drop.
- Comparison to SOTAs: FilterSketch consistently outperforms or matches state-of-the-art pruning methods in terms of accuracy retention and compression rates, especially at higher pruning ratios.
- Efficiency: The sketching process is remarkably fast, taking less than 2 seconds on a CPU for even large networks like GoogLeNet and ResNet-110, orders of magnitude faster than other optimization-based methods.
- Practical Speedup: Achieved practical speedups of 1.11x-1.57x (GPU) and 1.25x-1.89x (CPU) on various architectures.
Limitations and Future Work
- Assumption of Zero-Mean Weights: The paper notes that FilterSketch relies on the assumption that filter weights in convolutional neural networks have an approximate zero-mean Gaussian-like distribution. This assumption might not hold for other network architectures, such as multi-layer perceptrons. Future work will focus on addressing this limitation.
- Network Approximation: While FilterSketch focuses on pruning, the authors suggest that combining it with network approximation techniques could further reduce network size, which they plan to explore in future work.
- Second-Round Sketching: While normalization helps, the paper mentions that a second-round sketch might be necessary in some cases to address unstable numerical values, although they show it can often be eliminated by normalization.
Summary updated