Optimized Sparse Matrix Operations for Reverse Mode Automatic Differentiation
Preprint
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. 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.Keywords
All Related Versions
This publication has 37 references indexed in Scilit:
- A parallel sparse approximate inverse preconditioning algorithm based on MPI and CUDABenchCouncil Transactions on Benchmarks, Standards and Evaluations, 2021
- A local Fourier analysis of additive Vanka relaxation for the Stokes equationsNumerical Linear Algebra with Applications, 2020
- An introduction to algorithmic differentiationWIREs Data Mining and Knowledge Discovery, 2019
- Node aware sparse matrix–vector multiplicationJournal of Parallel and Distributed Computing, 2019
- Sparse approximate inverse preconditioners on high performance GPU platformsComputers & Mathematics with Applications, 2016
- Domain Decomposition Methods — Algorithms and Theory2005
- Sparse approximate inverse smoothers for geometric and algebraic multigridApplied Numerical Mathematics, 2002
- Achieving finite element mesh quality via optimization of the Jacobian matrix norm and associated quantities. Part I?a framework for surface mesh optimizationInternational Journal for Numerical Methods in Engineering, 2000
- Graph Theory and Sparse Matrix Computation1993
- Some methods of speeding up the convergence of iteration methodsUSSR Computational Mathematics and Mathematical Physics, 1964