Sparse GPU Kernels for Deep Learning

Trevor Gale, Matei Zaharia, Cliff Young, Erich Elsen
6/18/2020
cs.LGcs.DCstat.ML

Official code: google-research/sputnik (289 stars, C++, Apache-2.0, last commit 2020-11-24).

Abstract

Scientific workloads have traditionally exploited high levels of sparsity to accelerate computation and reduce memory requirements. While deep neural networks can be made sparse, achieving practical speedups on GPUs is difficult because these applications have relatively moderate levels of sparsity that are not sufficient for existing sparse kernels to outperform their dense counterparts.

Show full abstract

In this work, we study sparse matrices from deep learning applications and identify favorable properties that can be exploited to accelerate computation. Based on these insights, we develop high-performance GPU kernels for two sparse matrix operations widely applicable in neural networks: sparse matrix-dense matrix multiplication and sampled dense-dense matrix multiplication. Our kernels reach 27% of single-precision peak on Nvidia V100 GPUs. Using our kernels, we demonstrate sparse Transformer and MobileNet models that achieve 1.2-2.1x speedups and up to 12.8x memory savings without sacrificing accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A library of GPU kernels for sparse matrix operations.

28953C++, CMakeJul 23, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{gale2020sparse,
  title  = {Sparse GPU Kernels for Deep Learning},
  author = {Trevor Gale and Matei Zaharia and Cliff Young and Erich Elsen},
  year   = {2020},
  eprint = {2006.10901},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.10901}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.10901.svg)](https://codeofpaper.com/paper/2006.10901)

Discussion