Probing the Efficacy of Hardware-Aware Weight Pruning to Optimize the SpMM Routine on Ampere GPUs
Authors:
Open Access
- 8 October 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 135-147
Abstract
The Deep Learning (DL) community found in pruning techniques a good way to reduce the models' resource and energy consumption. These techniques lead to smaller sparse models, but sparse computations in GPUs only outperform their dense counterparts for extremely high levels of sparsity. However, pruning up to such sparsity levels can seriously harm the accuracy of the Neural Networks (NNs). To alleviate this, novel performance-aware pruning techniques favor the generation of more regular sparse matrices that can improve the exploitation of the underlying hardware. Nevertheless, an important drawback is that these techniques heavily condition the location of the non-pruned values, which can strongly degrade the accuracy of the models. This paper focuses on improving the performance of the SpMM routine on DL workloads by combining performance-aware pruning with pruning-independent SpMM kernels to relax input-format constraints. We start with a microarchitecture-level performance study of SOTA SpMM implementations to identify their main bottlenecks and flaws. Then, the paper centers on maximizing the performance of the routine by adjusting the parameters of performance-aware pruning techniques to the hardware properties. This second study explains the intrinsic causes of the observed performance results. We show that, following this approach, a generic SpMM routine can perform up to 49% and 77% better for half and single precision, respectively, than using non-performance-aware pruning, providing speedups over cuBlas of up to 1.87× and 4.20×, respectively. Additionally, the performance achieved on half precision is boosted with a new Ampere-ready specialized implementation for the column-vector sparse format, CLASP, which achieves a 2.42× speedup over cuBlas. Finally, we also introduce ad-colPrune, a novel pruning technique that widens the design space of possible trade-offs between performance and accuracy.Keywords
Funding Information
- Ministerio de Educación y Formación Profesional (FPU19/03974)
- Xunta de Galicia (ED431C 2021/30 and ED431G 2019/01)
- Ministerio de Ciencia e Innovación (PID2019-104184RB-I00)
This publication has 16 references indexed in Scilit:
- Flexible Group-Level Pruning of Deep Neural Networks for On-Device Machine Learning2020
- Optimizing batched winograd convolution on GPUs2020
- Sparse Tensor Core2019
- Cambricon-S: Addressing Irregularity in Sparse Neural Networks through A Cooperative Software/Hardware Approach2018
- Recovering from Random Pruning: On the Plasticity of Deep Convolutional Neural Networks2018
- Channel Pruning for Accelerating Very Deep Neural Networks2017
- Exploring the Granularity of Sparsity in Convolutional Neural Networks2017
- ESE2017
- Structured Pruning of Deep Convolutional Neural NetworksACM Journal on Emerging Technologies in Computing Systems, 2017
- ImageNet: A large-scale hierarchical image database2009