Non-structured DNN Weight Pruning Considered Harmful

Yanzhi Wang, Shaokai Ye, Zhezhi He, Xiaolong Ma, Linfeng Zhang, Sheng Lin, Geng Yuan, Sia Huat Tan, Zhengang Li, Deliang Fan, Xuehai Qian, Xue Lin, Kaisheng Ma

Large deep neural network (DNN) models pose a significant challenge to energy efficiency, primarily due to the high energy cost of off-chip DRAM accesses compared to arithmetic or SRAM operations. This has driven research into model compression, specifically weight pruning and quantization. While non-structured pruning offers high theoretical pruning rates, it introduces irregular weights that require index storage and complex memory access patterns. This paper introduces ADMM-NN-S, a unified framework for joint pruning and quantization, and demonstrates that structured pruning consistently outperforms non-structured methods in real-world hardware efficiency.

The Efficiency Challenge in DNN Deployment

Deep Neural Networks (DNNs) are resource-intensive, requiring substantial memory bandwidth and energy. To deploy these models on edge devices, researchers typically employ two compression techniques: Pruning (removing redundant weights) and Quantization (reducing bit-precision).

Historically, the research community has favored non-structured pruning because it allows for the removal of arbitrary weights, yielding high "on-paper" pruning rates. However, this results in irregular, sparse matrices. To utilize these on standard hardware, one must store "indices" to map the remaining weights, and parallel processors like GPUs struggle with these irregular structures.

Figure 1: Comparison of non-structured pruning (synapses) vs structured pruning (neurons/filters/channels).

Methodology: The ADMM-NN-S Framework

The authors introduce ADMM-NN-S, an extension of the Alternating Direction Method of Multipliers (ADMM) framework. This framework enables joint optimization of weight pruning and quantization, providing a methodology for a fair comparison of non-structured and structured pruning in terms of both storage and computation efficiency.

Key technical contributions include:

  • Structured Constraints: Unlike previous methods, ADMM-NN-S enforces specific structures during training, such as filter pruning (removing rows), channel pruning (removing consecutive columns), and filter shape pruning.
  • Dynamic Regulation: An analytical approach adjusts the "penalty" for weights during training, facilitating convergence to a sparse state without sacrificing accuracy.
  • Masked Mapping and Retraining: Post-pruning, the framework "masks" zeroed weights and performs a final training round to recover accuracy.
  • Pruning-to-Performance Ratio (PPR): A new metric proposed to evaluate actual hardware speedup relative to weight reduction.

Key Insights: Why Non-Structured Pruning Fails

  • The Index Overhead Trap: In non-structured pruning, as the pruning rate increases, the storage required for indices grows. In some cases, index storage can exceed the weight storage itself, especially when weights are quantized to low bit-widths (e.g., 3 or 4 bits).
  • Quantization Synergy: Quantization is essential for high-efficiency hardware (FPGA/ASIC). When weights are reduced to low bit-widths, the 5-to-9-bit overhead of a non-structured index becomes a prohibitive burden.
  • Hardware Compatibility: Structured pruning is inherently compatible with the data-parallel execution models of GPUs and CPUs. The authors found that structured pruning only needs to achieve approximately 37% of the pruning rate of non-structured pruning to be more efficient in practice.
Figure 2: Hardware suitability comparison between non-structured and structured pruning across different platforms.

Results and Conclusion

ADMM-NN-S established new state-of-the-art benchmarks across various datasets including ImageNet, CIFAR-10, and MNIST:

  • Extreme Pruning: Achieved 348× weight reduction on LeNet-5, 36× on AlexNet, and 8× on ResNet-50 with negligible accuracy loss.
  • Lossless Binarization: Demonstrated the first "lossless" fully binarized (1-bit weights) versions of LeNet-5 and VGG-16.
  • Throughput Gains: Structured pruning resulted in significantly higher throughput on GPUs. In contrast, non-structured methods often caused speed degradation due to irregular memory access patterns.

The authors conclude that non-structured pruning is "harmful" for inference acceleration. The community is urged to shift focus toward structured sparsity, which aligns with the architectural strengths of modern hardware. While determining ideal layer-wise pruning rates still involves some heuristics, the benefits of structured approaches in storage and computation efficiency are definitive.

Summary updated

BibTeX
@article{wang2022non,
  author = {Yanzhi Wang and Shaokai Ye and Zhezhi He and Xiaolong Ma and Linfeng Zhang and Sheng Lin and Geng Yuan and Sia Huat Tan and Zhengang Li and Deliang Fan and Xuehai Qian and Xue Lin and Kaisheng Ma},
  title = {{Non-structured DNN Weight Pruning Considered Harmful}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2021.3063265},
}
Figure