[Paper Review] Escort: Efficient Sparse Convolutional Neural Networks on GPUs
Escort proposes a direct sparse convolution kernel for GPUs that bypasses matrix multiplication lowering, optimizing parallelism and data locality to achieve 2.63x–3.07x speedup over CUBLAS and CUSPARSE on sparse convolutions, and 1.38x–1.60x improvement in overall inference speed, overcoming inefficiencies from sparsity-induced irregularity and poor memory reuse.
Deep neural networks have achieved remarkable accuracy in many artificial intelligence applications, e.g. computer vision, at the cost of a large number of parameters and high computational complexity. Weight pruning can compress DNN models by removing redundant parameters in the networks, but it brings sparsity in the weight matrix, and therefore makes the computation inefficient on GPUs. Although pruning can remove more than 80% of the weights, it actually hurts inference performance (speed) when running models on GPUs. Two major problems cause this unsatisfactory performance on GPUs. First, lowering convolution onto matrix multiplication reduces data reuse opportunities and wastes memory bandwidth. Second, the sparsity brought by pruning makes the computation irregular, which leads to inefficiency when running on massively parallel GPUs. To overcome these two limitations, we propose Escort, an efficient sparse convolutional neural networks on GPUs. Instead of using the lowering method, we choose to compute the sparse convolutions directly. We then orchestrate the parallelism and locality for the direct sparse convolution kernel, and apply customized optimization techniques to further improve performance. Evaluation on NVIDIA GPUs show that Escort can improve sparse convolution speed by 2.63x and 3.07x, and inference speed by 1.38x and 1.60x, compared to CUBLAS and CUSPARSE respectively.
Motivation & Objective
- Address the inefficiency of sparse convolution on GPUs caused by sparsity-induced irregularity and poor memory bandwidth utilization.
- Overcome the performance degradation from weight pruning, which reduces model size but harms inference speed on GPUs despite high sparsity.
- Design a GPU-optimized sparse convolution kernel that avoids lowering to matrix multiplication to preserve data reuse and regularity.
- Achieve high performance on sparse convolutions by orchestrating parallelism and locality in a direct sparse computation approach.
Proposed method
- Implement a direct sparse convolution kernel that computes sparse convolutions without lowering to matrix multiplication, preserving data locality and reducing memory bandwidth waste.
- Orchestrate thread-level and data-level parallelism to efficiently map sparse operations onto GPU streaming multiprocessors.
- Apply customized memory access patterns and tiling strategies to maximize data reuse and minimize irregular memory access patterns.
- Optimize kernel launch configurations and memory coalescing to improve occupancy and reduce latency in sparse computation.
- Use a compressed sparse row (CSR)-like format for efficient sparse weight representation and memory access.
- Integrate the kernel into a full inference pipeline to evaluate end-to-end performance on real-world models.
Experimental results
Research questions
- RQ1How does direct sparse convolution compare to matrix multiplication-based approaches in terms of performance on GPUs?
- RQ2To what extent can optimized parallelism and data locality mitigate the inefficiency of sparse operations on massively parallel GPUs?
- RQ3Can a custom sparse convolution kernel outperform highly optimized libraries like CUBLAS and CUSPARSE in sparse inference scenarios?
- RQ4What is the impact of sparsity on inference speed, and how can it be counteracted through algorithmic and architectural optimizations?
Key findings
- Escort improves sparse convolution speed by 2.63x compared to CUBLAS and 3.07x compared to CUSPARSE on NVIDIA GPUs.
- The method achieves 1.38x and 1.60x speedup in overall model inference compared to CUBLAS and CUSPARSE, respectively.
- By avoiding matrix multiplication lowering, Escort reduces memory bandwidth pressure and improves data reuse in sparse operations.
- The direct sparse kernel design effectively mitigates irregular memory access patterns that hinder GPU occupancy and performance.
- Customized optimizations for thread mapping, memory access, and tiling significantly enhance performance on sparse convolution kernels.
- The performance gains are consistent across multiple models and sparsity levels, demonstrating robustness and scalability on modern GPU architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.