Optimized Sparse Matrix Operations for Reverse Mode Automatic Differentiation

Nicolas Nytko, Ali Taghibakhshi, Tareq Uz Zaman, Scott MacLachlan, Luke N. Olson +1 more
12/10/2022
cs.LGcs.MSmath.NA

Official code: nicknytko/numml (20 stars, Cuda, MIT, last commit 2026-10-13).

Abstract

Sparse matrix representations are ubiquitous in computational science and machine learning, leading to significant reductions in compute time, in comparison to dense representation, for problems that have local connectivity. The adoption of sparse representation in leading ML frameworks such as PyTorch is incomplete, however, with support for both automatic differentiation and GPU acceleration missing.

Show full abstract

In this work, we present an implementation of a CSR-based sparse matrix wrapper for PyTorch with CUDA acceleration for basic matrix operations, as well as automatic differentiability. We also present several applications of the resulting sparse kernels to optimization problems, demonstrating ease of implementation and performance measurements versus their dense counterparts.

View on arXivView PDF

Code Implementations(1)

nicknytko/nummlOfficial100%
MIT

Sparse, differentiable numerics for PyTorch

202Cuda, PythonAug 11, 20221 months agoMIT

Similar Papers

Cite this paper

@article{nytko2022optimized,
  title  = {Optimized Sparse Matrix Operations for Reverse Mode Automatic Differentiation},
  author = {Nicolas Nytko and Ali Taghibakhshi and Tareq Uz Zaman and Scott MacLachlan and Luke N. Olson and Matt West},
  year   = {2022},
  eprint = {2212.05159},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05159}
}

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

Discussion