Abstract
Pruning is a critical technique for reducing the computational footprint of Deep Neural Networks (DNNs). However, traditional pruning methods often lead to irregular weight matrices that hinder GPU performance due to workload imbalance. We present Balanced Column-Wise Block Pruning (BCBP), a hardware-aware pruning strategy that ensures uniform computational loads across GPU processing units. By synchronizing the execution of weight tiles, BCBP eliminates idle time and achieves significant inference speedups—up to 2.77× for VGG-16—while maintaining high model accuracy.
Introduction: The Challenge of Hardware-Aware Pruning
While pruning effectively reduces model size, its impact on real-world latency is highly dependent on hardware architecture. Unstructured pruning offers high flexibility and accuracy but results in sparse matrices that GPUs cannot process efficiently. Conversely, structured pruning (e.g., filter or channel removal) is hardware-friendly but often incurs significant accuracy loss due to its coarse granularity.
The primary bottleneck identified in this work is Workload Imbalance. Modern GPUs process matrices in discrete "tiles." If pruning is applied inconsistently across these tiles, some Streaming Multiprocessors (SMs) finish their tasks early and remain idle while waiting for "straggler" tiles (the densest ones) to complete. This "tail effect" prevents pruning from translating into proportional speedups.
The BCBP Methodology
To address these inefficiencies, the authors propose Balanced Column-Wise Block Pruning (BCBP). This method operates through a three-stage pipeline designed to harmonize model sparsity with GPU execution patterns.
- Vector-Wise Tile Pre-Pruning: Instead of removing entire rows, BCBP targets column vectors within a tile. This approach preserves more representational power than filter pruning and maintains a consistent input structure for subsequent layers.
- Pruning Ratio Recalibration: The core innovation lies in the Workload Balanced Block (WBB). The algorithm analyzes weight importance across a layer and redistributes the pruning budget so that every block within a WBB achieves an identical final pruning ratio.
- Vector-Wise Balanced Pruning: Weights are removed according to these recalibrated ratios, ensuring that every tile processed in parallel contains exactly the same number of non-zero elements.
Eliminating the "Straggler" Effect
The success of BCBP is measured by its ability to reduce Workload Imbalance among Tiles (WIT). A WIT of zero indicates perfect synchronization across the GPU.
As illustrated in the experimental data, standard Vector-wise Block Pruning (VBP) results in significant idle time (represented by green dashed lines) because tiles finish at different intervals. BCBP (red bars) ensures that all tiles finish simultaneously, maximizing the utilization of GPU resources.
Experimental Results
The researchers evaluated BCBP across diverse architectures (VGG, ResNet, BERT) and tasks (ImageNet, SQuAD). Key findings include:
- VGG-16 on ImageNet: BCBP achieved a 2.77× speedup with an 80.1% pruning ratio, outperforming traditional Tile Sparsity (TS) and Block Sparse (BS) methods in both speed and accuracy.
- ResNet-50: At a ~79% pruning ratio, BCBP delivered a 3.59× speedup, surpassing filter-pruning techniques like HRank and ThiNet.
- NLP Tasks: The method proved effective for BERT-base and NMT models, demonstrating its versatility across different neural architectures.
Conclusion and Future Directions
BCBP demonstrates that uniformity in sparsity is often more valuable for hardware performance than higher, but irregular, levels of pruning. By prioritizing workload balance, BCBP bridges the gap between theoretical compression and practical acceleration. Future work will explore the application of BCBP to real-time tasks such as object detection and semantic segmentation, as well as its adaptation to evolving GPU architectures.
Note: This method requires a customized GPU kernel to effectively skip pruned locations and realize the reported speedups.
Summary updated