Learning to Select Sparse Linear Solvers with Convolutional Neural Networks

cs.LG Artemis Pados, Alan Edelman, Emmanuel Lujan, Daniel Pickard, Felipe Tome, Christopher Rackauckas · Nov 9, 2026
Local to this browser
What it does
The paper tackles automatic selection of direct sparse linear solvers, where wall-clock time can vary by orders of magnitude for the same matrix depending on sparsity structure. The core idea is to train a convolutional neural network on...
Why it matters
The core idea is to train a convolutional neural network on 64x64 binary spy-plot images of matrix nonzero patterns, regressing log timing ratios against a KLU baseline to pick the fastest among UMFPACK, KLU, and Pardiso. It matters...
Main concern
The paper proposes an appealing data-driven approach to an important systems problem, but its empirical validation is too sparse to support the headline claims. The real-world evaluation reports 99% accuracy on an undisclosed number of...
Community signal
0
0 up · 0 down
Sign in to vote with arrows
AI Review AI reviewed
Plain-language introduction

The paper tackles automatic selection of direct sparse linear solvers, where wall-clock time can vary by orders of magnitude for the same matrix depending on sparsity structure. The core idea is to train a convolutional neural network on 64x64 binary spy-plot images of matrix nonzero patterns, regressing log timing ratios against a KLU baseline to pick the fastest among UMFPACK, KLU, and Pardiso. It matters because current tools fix a single default solver regardless of matrix structure, leaving large performance gains unrealized for non-expert users.

Critical review
Verdict
Bottom line

The paper proposes an appealing data-driven approach to an important systems problem, but its empirical validation is too sparse to support the headline claims. The real-world evaluation reports 99% accuracy on an undisclosed number of CHEFSI and ΣMIT matrices without structural analysis, and the paper omits standard training details, baseline comparisons, and regression metrics. The regression formulation is conceptually stronger than classification, yet the reported evidence is almost entirely reduced to a single classification-accuracy percentage and two small confusion matrices.

“Rather than treating solver selection as a three-class classification problem, we formulate it as regression on log timing ratios... This formulation encourages the model to learn the magnitude of performance differences rather than just which solver wins, yielding more robust predictions near decision boundaries.”
Pados et al. · Section III-B
“On this corpus, NeuralLinearSolve.jl achieves 99% prediction accuracy (Fig. 1).”
Pados et al. · Section IV
What holds up

The authors correctly identify that regression on log timing ratios is preferable to multi-class classification, and the open-source release of NeuralLinearSolve.jl is a genuine practical contribution. The formulation explicitly targets relative solver speed rather than a hard winner-take-all label, which is sensible given the continuous nature of wall-clock timings and the ambiguity near decision boundaries.

“Rather than treating solver selection as a three-class classification problem, we formulate it as regression on log timing ratios. KLU serves as the denominator baseline since it is the fastest solver for the majority of matrices in our training dataset, making it the most stable reference point.”
Pados et al. · Section III-B
Main concerns

Several critical gaps undermine the results. First, the 99% accuracy on real-world matrices is suspiciously high and unexplained: the authors report it on a corpus of CHEFSI/ΣMIT matrices without stating how many matrices were evaluated, what their structural properties are, or why accuracy exceeds the 94% achieved on the in-distribution SuiteSparse holdout. If the real-world set is small or structurally homogeneous, the result is far less impressive. Second, the experimental section is extremely thin: there are no regression metrics (MSE, correlation), no confidence intervals, no ablation on the $64 \times 64$ resolution, and no quantification of CNN inference overhead relative to the solver time itself.

Third, fundamental architectural and training details are missing. The CNN is described only as "three convolutional blocks and three fully connected layers with ReLU activations, max pooling, and dropout, yielding two scalar outputs," with no hyperparameters, filter dimensions, parameter counts, random seed, or exact filtering criteria for the approximately 1500 SuiteSparse matrices. The downsampling to a binary image discards numerical values, matrix scale, and fine sparsity structure; the paper asserts coarse features suffice but provides no ablation to justify this design choice.

“On this corpus, NeuralLinearSolve.jl achieves 99% prediction accuracy (Fig. 1).”
Pados et al. · Section IV
“The architecture consists of three convolutional blocks and three fully connected layers with ReLU activations, max pooling, and dropout, yielding two scalar outputs.”
Pados et al. · Section III-B
Evidence and comparison

The evidence does not fully support the practical usefulness claims. The only quantitative results are classification accuracy (94% and 99%) and two normalized confusion matrices; despite framing the task as regression with targets $\hat{y} = [\log\frac{t_{\text{UMFPACK}}}{t_{\text{KLU}}}, \log\frac{t_{\text{Pardiso}}}{t_{\text{KLU}}}]$, no regression-error or ranking metrics are reported. The sole baseline is the constant KLU strategy at 84%, with no comparison to simple structural heuristics (e.g., triangularity checks) or alternative ML approaches such as the CNN-based preconditioner classification of Yamada et al. Fair comparison to related work is therefore absent.

“On the held-out test set (20% of the corpus), the model achieves 94% accuracy in predicting the fastest solver (Fig. 1). The improvement (over 84% that would have been achieved if we fixed KLU as the solver) is concentrated in the minority classes where the performance gap between solvers is largest.”
Pados et al. · Section IV
Reproducibility

Independent reproduction would be blocked by missing experimental details. The CNN architecture is underspecified, training hyperparameters unstated, and the protocol "minimum-over-trials strategy" lacks the number of trials or variance estimates. While the authors release NeuralLinearSolve.jl with frozen weights, the exact SuiteSparse subset, class-imbalance ratios, random seed, and preprocessing pipeline are omitted from the text. The package helps, but the paper alone provides insufficient information to retrain the model from scratch or verify the benchmarking methodology.

“Wall-clock solve times are measured using a minimum-over-trials strategy to reduce sensitivity to OS scheduling noise and transient system load.”
Pados et al. · Section III-A
“The architecture consists of three convolutional blocks and three fully connected layers with ReLU activations, max pooling, and dropout, yielding two scalar outputs.”
Pados et al. · Section III-B
Abstract

We investigate convolutional-neural-network (CNN) based automatic solver selection for sparse linear systems, a problem of practical importance where solver performance varies dramatically with matrix sparsity structure. A CNN is trained to regress log timing ratios between candidate solvers using spy plot images of matrix nonzero structure as input, achieving strong prediction accuracy on both held-out SuiteSparse matrices and real-world matrices from high-performance simulation codes.

Challenge the Review

Pick a starting point or write your own. Challenges run in the background, so you can keep reading while the AI investigates.

No challenges yet. Disagree with the review? Ask the AI to revisit a specific claim.