Introduction: The Sparsity-Efficiency Dilemma
Deep Neural Networks (DNNs) are computationally expensive, making pruning—the process of removing "unimportant" weights—a vital area of research. However, practitioners face a significant "Sparsity-Efficiency Dilemma" when choosing a pruning strategy:
- Element-Wise (EW) Pruning: Removes individual weights. While highly flexible and accurate, it creates "random" holes in data that GPUs cannot process efficiently, leading to irregular memory access and no real-world speedup on standard hardware.
- Structured Pruning (e.g., Block-Wise): Removes entire blocks or rows. This is fast on GPUs but significantly degrades model accuracy because the rigid patterns often force the removal of important weights.
This paper proposes Tile-Wise (TW) sparsity, a novel algorithm-software co-design that bridges this gap by aligning pruning patterns with the way GPUs naturally process data in "tiles."
Methodology: Tile-Wise (TW) Sparsity
Modern GPUs perform matrix multiplication by breaking large matrices into smaller "tiles" (e.g., 32x32) for parallel execution. TW sparsity prunes entire rows or columns within these tiles. This maintains a regular structure at the tile level—which the GPU can execute as a smaller, dense matrix—while allowing the overall global pattern to remain irregular and flexible.
Key Innovations:
- Hybrid Pattern (TEW): To further boost accuracy, the authors overlay a tiny fraction (e.g., 1.5%) of element-wise pruning on top of the tile-wise pattern to "rescue" critical weights.
- Multi-Stage Pruning Algorithm: Instead of pruning all at once, the algorithm uses "apriori tuning." It first runs a flexible element-wise prune to identify which tiles are naturally sparse, then enforces the tile-wise constraint.
- GPU Optimizations: To maximize performance on Tensor Cores, the authors implemented matrix transposition to ensure "coalesced" memory access and batching strategies to prevent GPU cores from sitting idle.
Key Insights: Flexibility and Hardware Alignment
The core innovation of this research is the realization that since General Matrix Multiplication (GEMM) is already tiled for hardware efficiency, the pruning strategy should mirror that hierarchy.
As shown in the distribution of zero elements, TW sparsity is "closer" to the ideal element-wise pruning than previous structured methods. It allows the model to maintain weights in critical layers while aggressively pruning redundant ones, providing a much better accuracy-sparsity trade-off than rigid block-wise (BW) patterns.
Experimental Results
The researchers evaluated TW sparsity across Computer Vision (VGG-16), NLP (BERT), and Machine Translation (LSTM-based NMT) tasks.
- Speedup: On NVIDIA V100 GPUs, TW sparsity achieved an average 1.95× speedup using Tensor Cores and 2.86× using standard CUDA cores compared to dense models.
- Accuracy: Accuracy loss was kept within a narrow 1%–3% range, even at high sparsity levels (e.g., 75% weights removed).
- Superiority over Baselines: TW sparsity consistently outperformed Block-Wise (BW) and Vector-Wise (VW) patterns. For example, at 75% sparsity on BERT, TW maintained significantly higher accuracy than Block-Wise pruning.
- Scalability: At extreme pruning (99% sparsity), the system achieved an 11.6× speedup, demonstrating massive potential for future ultra-compressed models.
Conclusion
Tile-Wise sparsity effectively resolves the conflict between pruning flexibility and hardware efficiency. By designing sparsity patterns that respect the underlying GPU architecture, the authors achieve significant performance gains on existing hardware without requiring specialized modifications. Future work includes combining TW sparsity with quantization and expanding the approach to other tiled accelerators like Google’s TPU.
Summary updated