TL;DR
This paper introduces SOSP, a novel structured pruning method for neural networks that efficiently captures global correlations between network components using second-order information. SOSP achieves state-of-the-art performance, especially at high pruning rates, and can be applied at initialization to reduce training costs. It also helps identify and widen architectural bottlenecks, further boosting accuracy.
What Problem Does This Paper Address?
Deep neural networks have become increasingly large and computationally expensive, hindering their deployment on resource-constrained devices. Pruning aims to reduce network size and computational cost without sacrificing accuracy. While structured pruning (removing entire components like feature maps) offers significant speedups on standard hardware, existing methods often struggle to capture the complex interdependencies between different parts of the network, especially across layers. This can lead to suboptimal pruning decisions. The paper addresses the challenge of developing a structured pruning method that efficiently considers these global correlations, scales to large networks, and achieves competitive or better performance than existing techniques.
Methods
The core contribution is the SOSP (Second-Order Structured Pruning) framework, which leverages second-order information (Hessian) to assess the importance of network structures for pruning. Two main methods are proposed:
- SOSP-I: This method uses a Gauss-Newton approximation of the Hessian and considers individual sensitivities and pairwise correlations between structures. It's theoretically grounded but can be computationally intensive for very large networks.
- SOSP-H: This is the main proposed method, which uses a more efficient Hessian-vector product approximation. This allows SOSP-H to achieve the same low computational complexity as first-order pruning methods while still incorporating global second-order information. This makes it highly scalable for large-scale networks.
Both methods are saliency-based and global, meaning they consider all structures in the network simultaneously. A key aspect is the focus on structured pruning, specifically targeting feature maps (channels) in convolutional layers. The paper also introduces an "expand-pruning" procedure to identify and widen architectural bottlenecks detected by SOSP.
Datasets
The paper uses standard datasets for training and evaluation:
- Cifar10
- Cifar100
- ImageNet
They evaluate their methods on various network architectures, including:
- VGGs
- ResNets (ResNet-18, ResNet-32, ResNet-50, ResNet-56)
- PlainNets
- DenseNets
- MobileNetV2
Key Insights and Ideas
- Global correlations matter: Capturing second-order correlations between network structures, even across layers, significantly improves pruning performance compared to methods that only consider local or individual sensitivities.
- Efficiency is key for scalability: While SOSP-I provides a theoretically sound approach, the Hessian-vector product approximation in SOSP-H is crucial for scaling to large, modern neural networks without prohibitive computational cost.
- Pruning at initialization is viable: SOSP can be applied to randomly initialized networks, reducing overall training time with minimal accuracy degradation, which is a significant practical advantage.
- Bottlenecks are real and exploitable: SOSP can identify layers that are disproportionately less pruned, indicating architectural bottlenecks. Widening these bottlenecks and then re-pruning can lead to improved accuracy and more compact models.
Key Results
- State-of-the-art performance: SOSP methods, particularly SOSP-H, achieve competitive or superior accuracy compared to existing global and local pruning methods across various datasets and network architectures, especially at high pruning ratios (e.g., 97% weight reduction).
- Scalability: SOSP-H demonstrates excellent scalability, efficiently handling large-scale datasets like ImageNet, where SOSP-I becomes impractical.
- Efficiency: SOSP-H has a computational complexity comparable to first-order pruning methods, making it significantly faster than SOSP-I and other second-order methods. For example, calculating the pruning mask for ResNet-56 takes ~50 seconds with SOSP-H versus ~926 seconds with SOSP-I.
- Bottleneck widening: The expand-pruning procedure, using SOSP-identified bottlenecks, resulted in smaller network models with higher accuracy compared to unselective widening or standard pruning. For instance, on ResNet-56, expand-pruning achieved higher accuracy with fewer parameters than a baseline widen-pruning approach.
- Pruning at initialization: Applying SOSP at initialization yielded comparable results to pruning after training, with a significant reduction in overall training time.
Limitations and Future Work
- Bias towards small structures: The paper notes that global pruning methods like SOSP can have a bias towards pruning smaller structures (e.g., 1x1 convolutions) due to how saliency is calculated. They propose a scaled variant of SOSP to mitigate this by considering kernel size, and suggest future work could explore normalizing saliency by MACs or memory usage.
- Hyperparameter tuning: While SOSP is single-shot, other methods might involve more complex hyperparameter optimization. The paper suggests that incorporating hyperparameter optimization for MAC reduction could lead to further improvements.
- Exploration of other loss functions: The paper focuses on squared loss and cross-entropy. While the framework is generalizable to other loss functions, the efficiency of the Hessian approximation might vary.
- Future work directions: The authors suggest exploring the use of MACs as an objective for SOSP, investigating the impact of their method on other network tasks beyond classification, and further exploring the expand-pruning procedure for architectural optimization.
Summary updated