Introduction
Deep convolutional neural networks (CNNs) have revolutionized computer vision, but their computational demands are a significant barrier to real-time deployment on mobile and embedded devices. Convolutional layers typically account for over 80% of total execution time. In the paper "PerforatedCNNs: Acceleration through Elimination of Redundant Convolutions," researchers propose a method to slash these costs by exploiting spatial redundancy—the fact that neighboring pixels in feature maps often carry highly similar information.
Methodology
The core idea of PerforatedCNNs is loop perforation, a technique that skips non-critical computations. Instead of calculating every output value in a convolutional layer, the network computes only a fraction of them and fills in the gaps.
Perforation and Interpolation
A binary perforation mask specifies which spatial positions $(x, y)$ should be computed exactly. For the positions skipped by the mask, values are estimated using Nearest Neighbor interpolation. This approach keeps the output tensor the same size as the original, allowing PerforatedCNNs to act as a "drop-in" replacement that preserves the overall network architecture.
Mask Selection Strategies
The authors evaluated four strategies for determining which pixels to skip:
- Uniform: Random selection of positions.
- Grid: Selection on a regular grid.
- Pooling Structure: Prioritizing positions sampled by subsequent pooling layers.
- Impact Mask: A data-driven approach using a first-order Taylor approximation to identify positions with the highest impact on the final loss function.
Key Results
The researchers tested their method on CIFAR-10 and ImageNet using architectures like AlexNet and VGG-16. They achieved 2x to 4x speedups on both CPU and GPU with minimal impact on accuracy (typically <2.6% error increase).
The Importance of Retraining
A vital insight from the study is the role of fine-tuning. While "perforating" a layer initially causes an accuracy drop, a short period of retraining allows the remaining weights to adapt to the interpolated data, recovering most of the lost precision. This makes PerforatedCNNs significantly more effective than simpler methods like increasing stride or resizing inputs.
Conclusion
PerforatedCNNs demonstrate that CNNs often perform redundant calculations. By strategically skipping spatial positions and leveraging retraining, the authors provide a powerful tool for accelerating existing models without requiring a total architectural redesign. Future work may involve input-dependent masks that focus computation only on the most "interesting" parts of an image.
Summary updated