Abstract
Neural network pruning typically involves removing "unimportant" filters to reduce computational costs, often at the expense of model accuracy at high compression rates. This paper introduces Cheap Spatial Transformations (CST), a method that replaces discarded filters with "cheap" spatial transformations of the remaining "template" filters. By reconstructing rather than deleting information, CST maintains high expressive power even at extreme pruning levels. Evaluated on CIFAR-10 and ImageNet, CST demonstrates significant reductions in parameters and FLOPs with minimal accuracy loss, outperforming several state-of-the-art pruning techniques.
Introduction: The Pruning Bottleneck
Convolutional Neural Networks (CNNs) are computationally intensive, posing challenges for deployment on resource-constrained edge devices. Standard pruning techniques address this by ranking filters by importance and removing those below a threshold. However, high pruning rates (70-90%) often lead to a "collapse" in accuracy because the network loses critical spatial information.
The authors of this paper argue that even filters deemed "unimportant" by traditional metrics often contain redundant but useful spatial features. The core challenge is to retain the essence of these filters without the overhead of a full convolutional operation.
Methodology: Cheap Spatial Transformations (CST)
The proposed CST approach treats pruning as a reconstruction problem. Instead of learning a full set of $N$ filters, the layer learns a smaller set of $M$ "template" filters. The remaining $N-M$ filters are then reconstructed by applying simple spatial transformations—such as scaling or affine transforms—to these templates.
Two-Stage Execution and Efficiency
To ensure practical efficiency, the CST operation is decomposed into two distinct stages:
- Template Generation: A pointwise (or grouped) convolution generates a set of "template features."
- Gather and Multiply: A "gather" operation applies spatial transformations to these template features to produce the final output.
This decomposition is computationally advantageous because "gather" operations (indexing specific pixels) are significantly cheaper than the dot-products required for standard convolutions. To prevent information bottlenecks when using few templates, the authors also introduce a grouped version of the layer, enhancing connectivity without a substantial increase in parameters.
Experimental Results
The researchers validated CST on two primary benchmarks: CIFAR-10 (using VGG16 and ResNet56) and ImageNet-1K (using ResNet50).
CIFAR-10 Performance
On the VGG16 architecture, CST achieved a remarkable 95.26% reduction in parameters and an 80.89% reduction in FLOPs, with an accuracy drop of only 0.52%. This performance exceeds that of established pruning methods like HRank and ABC.
ImageNet Scalability
When applied to ResNet50 on the large-scale ImageNet dataset, the method maintained a top-1 accuracy of 75.59% (a 0.61% drop from baseline) while achieving a 40% parameter reduction and a 47% FLOP reduction.
Real-World Latency
Beyond theoretical FLOP counts, the authors developed a custom CUDA kernel for the CST layer. Benchmarks showed that the theoretical gains translate into actual lower latency on hardware compared to standard convolutional layers, despite the lack of native optimization for "gather" operations in current deep learning frameworks.
Discussion and Key Insights
The success of CST stems from its ability to exploit spatial redundancy. Many filters in trained networks are naturally shifted, rotated, or scaled versions of one another. By explicitly baking these transformations into the architecture, CST allows models to reach the "top-end" accuracy of dense models while maintaining the footprint of a pruned one.
Interestingly, the authors found that CST layers initialized randomly could perform as well as models pruned through complex, multi-stage pipelines. This suggests that architectural flexibility can sometimes compensate for the lack of sophisticated pruning heuristics.
Limitations and Future Work
While promising, CST faces challenges regarding hardware optimization. Standard libraries like PyTorch and TensorFlow are highly optimized for convolutions but less so for the "gather" operations central to CST. Future work could involve exploring more complex equivariant transformations to handle rotations and symmetries more naturally. Additionally, the potential for CST to improve data efficiency—requiring fewer training examples to learn robust features—remains an intriguing area for further investigation.
Summary updated