SparseDNN: Fast Sparse Deep Learning Inference on CPUs

Ziheng Wang
1/20/2021
cs.LG

Official code: marsupialtail/sparsednn (56 stars, Python, Apache-2.0, last commit 2022-09-28).

Abstract

The last few years have seen gigantic leaps in algorithms and systems to support efficient deep learning inference. Pruning and quantization algorithms can now consistently compress neural networks by an order of magnitude.

Show full abstract

For a compressed neural network, a multitude of inference frameworks have been designed to maximize the performance of the target hardware. While we find mature support for quantized neural networks in production frameworks such as OpenVINO and MNN, support for pruned sparse neural networks is still lacking. To tackle this challenge, we present SparseDNN, a sparse deep learning inference engine targeting CPUs. We present both kernel-level optimizations with a sparse code generator to accelerate sparse operators and novel network-level optimizations catering to sparse networks. We show that our sparse code generator can achieve significant speedups over state-of-the-art sparse and dense libraries. On end-to-end benchmarks such as Huggingface pruneBERT, SparseDNN achieves up to 5x throughput improvement over dense inference with state-of-the-art OpenVINO. Open source library at: https://github.com/marsupialtail/sparsednn.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Fast sparse deep learning on CPUs

568Python, C++Jul 7, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2021sparsednn,
  title  = {SparseDNN: Fast Sparse Deep Learning Inference on CPUs},
  author = {Ziheng Wang},
  year   = {2021},
  eprint = {2101.07948},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.07948}
}

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/2101.07948.svg)](https://codeofpaper.com/paper/2101.07948)

Discussion