Abstract
Deep convolutional neural networks (CNNs) are deployed in various applications but demand immense computational requirements. Pruning techniques and Winograd convolution are two typical methods to reduce the CNN computation. However, they cannot be directly combined because Winograd transformation fills in the sparsity resulting from pruning. We propose a new pruning method, spatial-Winograd pruning, to achieve high Winograd-domain weight sparsity without changing network structures. Our method involves a two-step process: spatial-domain structured pruning followed by direct Winograd-domain pruning with a novel importance factor matrix to adjust gradients. For models on CIFAR-10, CIFAR-100, and ImageNet, our proposed method achieves Winograd domain sparsities of 63%, 50%, and 74%, respectively.
Introduction: The Sparsity-Winograd Conflict
Deep Learning is computationally expensive, leading researchers to favor two primary optimization techniques: Pruning, which deletes redundant weights to create a sparse network, and Winograd Convolution, a mathematical transform that converts expensive convolutions into cheaper element-wise multiplications.
However, these techniques are traditionally incompatible. When a standard model is pruned in the spatial domain and then transformed, the Winograd transform "smears" the zeros across the new domain, destroying the sparsity. Previous attempts to prune directly in the Winograd domain faced significant hurdles, such as requiring extremely low learning rates (up to 200x lower) or necessitating structural changes like moving the ReLU function, which complicates deployment.
Proposed Method: Spatial-Winograd Pruning
To overcome these challenges, we introduce spatial-Winograd pruning, a two-stage pipeline designed to maintain high sparsity in the Winograd domain without altering the network architecture.
The Two-Stage Pipeline
The authors propose a sequential approach to pruning that bridges the spatial and Winograd domains:
- Spatial Structured Pruning: Instead of random pruning, groups of weights in the spatial domain that map to the same weight in the Winograd domain are pruned. This "pre-sparsifies" the Winograd domain efficiently and avoids the need for initial Winograd-domain retraining.
- Winograd Direct Pruning: Remaining weights are then pruned directly within the Winograd domain to reach the target sparsity level.
Gradient Balancing with the Importance Factor Matrix
The core innovation lies in the retraining phase. The researchers derived an importance factor matrix ($F$) for every weight location in the Winograd domain. In a $6 \times 6$ Winograd filter, border weights are mathematically less influential than central ones. By using this matrix to adjust gradients during backpropagation, the learning process is "normalized." This allows the model to converge smoothly at standard learning rates, preventing the divergence issues seen in prior work.
Experimental Results
The proposed method was evaluated on three standard benchmarks: CIFAR-10 (VGG-nagadomi), CIFAR-100 (ConvPool-CNN-C), and ImageNet (ResNet-18).
The results demonstrate high sparsity with negligible accuracy loss (typically <0.1%):
- CIFAR-10: Achieved 63% Winograd-domain sparsity.
- CIFAR-100: Achieved 50% Winograd-domain sparsity, a 10% improvement over previous state-of-the-art methods.
- ImageNet (ResNet-18): Reached 74% sparsity.
Furthermore, the importance factor matrix significantly improved retraining efficiency. It reduced accuracy loss from 22% to 10% during the pruning phase and enabled the model to recover nearly all its accuracy within just 10 epochs of retraining.
Conclusion and Future Work
Spatial-Winograd pruning successfully bridges the gap between model pruning and Winograd convolution. By leveraging the predictable nature of the Winograd transform and introducing gradient balancing, the method achieves high sparsity without structural modifications.
Future work will focus on further managing learning rate sensitivity and exploring hardware implementations. While this method provides the mathematical foundation for speedups, actual "wall-clock" performance gains will depend on developing hardware accelerators capable of efficiently skipping the irregular zero patterns generated by this pruning technique.
Summary updated