Learning to Select Sparse Linear Solvers with Convolutional Neural Networks

Pados, Artemis, Edelman, Alan, Lujan, Emmanuel, Pickard, Daniel, Tome, Felipe, Rackauckas, Christopher

–arXiv.org Artificial Intelligence 

Abstract--We investigate convolutional-neural-network (CNN) and the broader SMARTSOLVE effort [5] at the MITJulia Lab, based automatic solver selection for sparse linear systems, aexposing solver recommendations via a single function call problem of practical importance where solver performance varieswith no benchmarking or domain expertise required. ACNN is trained to regress log timing ratios between candidate solvers using spy II. RELATEDWORK plot images of matrix nonzero structure as input, achieving strong prediction accuracy on both held-out SuiteSparse matrices and Direct sparse linear solvers have been extensively studied, real-world matrices from high-performance simulation codes. Davis [6] provides a comprehensive overview of solvers including those that we consider: UMFPACK imple-I. INTRODUCTION Sparse linear systems of the form Ax = b where A ments multifrontal LU and is Julia's default, KLU uses a leftRn n is a large sparse matrix arise throughout scientificlooking sparse LU optimized for nearly-triangular matrices, and MKLPardiso is Intel's parallel supernodal direct solver.