Skip to main content
QUICK REVIEW

[Paper Review] Escoin: Efficient Sparse Convolutional Neural Network Inference on GPUs

Xuhao Chen|arXiv (Cornell University)|Feb 28, 2018
Advanced Neural Network ApplicationsComputer Science45 references20 citations
TL;DR

This paper proposes Escort, a direct sparse convolution method for GPUs that bypasses matrix-multiplication lowering to improve inference speed. By optimizing parallelism and data locality for irregular sparse computations, Escort achieves 3.07× speedup over CUSPARSE and 1.60× over CUBLAS on NVIDIA GPUs, turning sparsity into performance gains without hardware or framework changes.

ABSTRACT

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.43x and 1.69x, compared to CUBLAS and CUSPARSE respectively.

Motivation & Objective

  • To address the performance degradation in sparse convolutional neural network inference on GPUs caused by weight pruning.
  • To overcome the inefficiencies of lowering sparse convolutions to matrix multiplication, which wastes memory bandwidth and reduces data reuse.
  • To improve performance on GPUs by directly computing sparse convolutions with optimized parallelism and memory access patterns.
  • To demonstrate that sparsity can be leveraged for speedup rather than performance loss on modern GPU architectures.
  • To provide a pure software solution that requires no changes to model training, pruning, or underlying hardware.

Proposed method

  • Proposes a direct sparse convolution kernel that computes convolutions without lowering to matrix multiplication, avoiding redundant data duplication and memory bandwidth waste.
  • Orchestrates thread-level and data-level parallelism to maximize GPU occupancy and hide memory latency.
  • Exploits data locality by coalescing memory accesses and organizing thread blocks to access contiguous data segments.
  • Uses a custom kernel layout that aligns with the sparse weight structure to minimize irregular memory access patterns.
  • Applies loop tiling and register blocking to improve arithmetic intensity and reduce global memory transactions.
  • Implements the solution in CUDA and evaluates it on Tesla P100 and GTX 1080Ti GPUs using standard CNNs like AlexNet, GoogLeNet, and ResNet.

Experimental results

Research questions

  • RQ1Can direct sparse convolution outperform matrix-multiplication-based approaches on GPUs for pruned DNNs?
  • RQ2Does avoiding the lowering step reduce memory bandwidth pressure and improve data reuse in sparse convolutions?
  • RQ3Can irregular sparse computations be efficiently mapped to GPU’s data-parallel architecture through custom kernel design?
  • RQ4To what extent can sparsity be leveraged to improve inference speed rather than degrade it on GPUs?
  • RQ5Is it possible to achieve significant speedup on sparse CNNs without modifying hardware or high-level frameworks?

Key findings

  • Escort achieves a geometric mean speedup of 1.38× over CUBLAS and 1.60× over CUSPARSE on NVIDIA GPUs for sparse inference.
  • On Tesla P100, Escort improves sparse convolution speed by 2.63× and 3.07× compared to CUBLAS and CUSPARSE, respectively.
  • On GTX 1080Ti, Escort achieves 1.74×, 1.34×, and 1.43× speedup for AlexNet, GoogLeNet, and ResNet, respectively, over CUBLAS.
  • The performance gain is consistent across models, with the largest speedup observed on AlexNet due to higher sparsity in its convolutional layers.
  • Even when other layers are excluded, Escort maintains a 1.47× speedup over CUBLAS on Tesla P100, confirming its effectiveness on sparse convolutions alone.
  • The method requires no changes to model training, pruning, or hardware, making it a practical and portable optimization for existing deep learning pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.