TL;DR
DEPrune is a novel pruning framework designed to accelerate Depth-wise Separable Convolutions (DSConv)—the backbone of modern mobile AI—on GPUs. By combining a clever data-rearrangement trick with hardware-aware tuning, it achieves up to a 3.74× speedup on models like EfficientNet-B0 with negligible loss in accuracy.
What Problem Does This Paper Address?
Depth-wise Separable Convolution (DSConv) is the "secret sauce" behind efficient models like MobileNet and EfficientNet. It splits a standard convolution into two steps: a Depth-wise (DW) part and a Point-wise (PW) part. While this drastically reduces the number of parameters, it creates a massive headache for hardware acceleration.
On GPUs, the DW-conv part is notoriously inefficient. Even though it contains only about 1% of a model's parameters, it can consume over 80% of the total inference time. This happens because the operation doesn't map well to the massive parallelism of a GPU. Existing pruning methods fail here: "structured" pruning (removing entire channels) destroys accuracy because there are so few parameters to begin with, while "fine-grained" pruning (removing individual weights) creates a sparse "Swiss cheese" pattern that GPUs can't process any faster than a dense matrix.
Methods
The authors introduce DEPrune, which consists of three main components designed to tackle the DW-conv paradox:
- DCP (Depth-wise Convolution Pruning): This is the core innovation. It leverages a technique called Diagonal-wise Refactorization (DR). DR rearranges the sparse DW-conv weights into a series of smaller, dense-looking matrices (sub-GEMMs). The "aha" moment is that when you apply fine-grained pruning to these rearranged matrices, removing a single weight effectively zeros out an entire column in the hardware-friendly format. This gives you the accuracy of fine-grained pruning with the speed of structured pruning.
- BWT (Balanced Workload Tuning): GPUs are only as fast as their slowest processing unit. If one sub-GEMM has a 10% pruning ratio and another has 90%, the GPU waits for the 10% one to finish. BWT ensures every sub-unit has an identical pruning ratio, eliminating idle time.
- HSR (Hardware-aware Sparsity Recalibration): GPU performance often scales in "steps" (usually multiples of 32, the standard tile size). Pruning 31 weights might provide zero speedup, while pruning the 32nd weight provides a sudden jump. HSR analyzes these hardware boundaries and "recalibrates" the pruning targets to hit those performance sweet spots.
Datasets
The researchers evaluated DEPrune using two primary benchmarks:
- ImageNet: The gold standard for large-scale image classification.
- CIFAR-10: Used for ablation studies and testing the impact of different pruning ratios on smaller-scale tasks.
They tested these datasets across several state-of-the-art architectures, including MobileNet-V2, MobileNet-V3 (Small and Large), and EfficientNet-B0.
Key Insights and Ideas
- The DW-conv Paradox: The part of the network with the fewest parameters is the biggest time-sink. Pruning efforts should focus on computation structure rather than just parameter count.
- Rearrangement is Key: You don't have to choose between fine-grained accuracy and structured speed. By changing how the data is presented to the GPU (via DR), fine-grained removals can manifest as structured sparsity.
- Workload Balance > Total Sparsity: A model that is 70% sparse but imbalanced can be slower than a model that is 50% sparse but perfectly balanced across GPU cores.
- The "Step Function" of Speed: Hardware doesn't care about theoretical FLOPs; it cares about memory alignment and tile sizes. HSR acknowledges that the relationship between pruning and speed is a staircase, not a smooth ramp.
Key Results
DEPrune significantly outperforms previous state-of-the-art pruning methods (like GFS or FPGM) in both speed and accuracy:
- EfficientNet-B0: Achieved a 3.74× total speedup on ImageNet with only a 0.8% drop in Top-1 accuracy.
- MobileNet-V3 Small: Reached a 4.12× speedup with a tiny 0.6% accuracy loss.
- Comparison: In many cases, DEPrune was 3× faster than competing structured pruning methods while maintaining higher accuracy. For example, on MobileNet-V2, DEPrune achieved a 2.48× speedup where previous methods only managed around 1.4×-1.6×.
Limitations and Future Work
While DEPrune is a powerhouse for CNNs, the authors note a few limitations:
- Specialization: The method is highly specialized for DSConv. It is not currently optimized for Vision Transformers (ViTs), which rely on self-attention mechanisms rather than depth-wise convolutions.
- Hardware Specificity: While the principles are general, the HSR component needs to be tuned for specific GPU architectures (e.g., the 32-wide tile size of the NVIDIA RTX 2080 Ti used in the study).
- Future Directions: The authors suggest that the HSR logic could potentially be adapted for the feed-forward layers in Transformers in future research.
Reference: Park, C., et al. (2024). DEPrune: Depth-wise Separable Convolution Pruning for Maximizing GPU Parallelism. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).
Summary updated