Blocking Techniques for Sparse Matrix Multiplication on Tensor Accelerators

Paolo Sylos Labini, Massimo Bernaschi, Francesco Silvestri, Flavio Vella
2/11/2022
cs.DC

Official code: HicrestLaboratory/SPARTA (19 stars, Emacs Lisp, last commit 2026-04-15).

Abstract

Tensor accelerators have gained popularity because they provide a cheap and efficient solution for speeding up computational-expensive tasks in Deep Learning and, more recently, in other Scientific Computing applications. However, since their features are specifically designed for tensor algebra (typically dense matrix-product), it is commonly assumed that they are not suitable for applications with sparse data.

Show full abstract

To challenge this viewpoint, we discuss methods and present solutions for accelerating sparse matrix multiplication on such architectures. In particular, we present a 1-dimensional blocking algorithm with theoretical guarantees on the density, which builds dense blocks from arbitrary sparse matrices. Experimental results show that, even for unstructured and highly-sparse matrices, our block-based solution which exploits Nvidia Tensor Cores is faster than its sparse counterpart. We observed significant speed-ups of up to two orders of magnitude on real-world sparse matrices.

View on arXivView PDF

Code Implementations(1)

SParse AcceleRation on Tensor Architecture

197Emacs Lisp, C++Oct 28, 20197 months ago
aicudagpu-computingmatrix-multiplicationreorder+2 more

Similar Papers

Cite this paper

@article{labini2022blocking,
  title  = {Blocking Techniques for Sparse Matrix Multiplication on Tensor Accelerators},
  author = {Paolo Sylos Labini and Massimo Bernaschi and Francesco Silvestri and Flavio Vella},
  year   = {2022},
  eprint = {2202.05868},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05868}
}

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

Discussion