Does this matrix need a sparse solver or a dense solver?
sparse solver
dense solver
?
A high-performance framework for structured matrices
sTiles targets the full
Cholesky → solve → selected inverse pipeline on a single
shared-memory node, using tile-based parallelism.
Today’s release handles symmetric
positive-definite matrices across the entire spectrum, from
very sparse to fully dense, with one
unified solver.
Distributed-memory support is on
the roadmap.
Abdul Fattah, Ltaief, Rue & Keyes, ISC High Performance 2025
Which tiles do you keep?
stored, nonzerostored, zeroan arrowhead, 36 × 36, tiles of 6
the matrix
a hub joined to every unknown
every tile
what a dense solver keeps
sTiles
dense tiling
ten empty tiles dropped
10 of 21 tiles hold nothing at all · dropping them costs nothing
and the eleven that stay are still mostly grey
The tiles are not alike
stored, nonzerostored, zeroanother matrix, 36 × 36, tiles of 6
the matrix
groups, and a few lone couplings
tiled
15 tiles kept, 6 dropped
31 of 36
13 of 36
6 of 36
1 of 36
four of the kept tiles
same size, same dense kernel
Why store a column that is empty?
stored, nonzerostored, zeroone tile of 6 × 6, from the matrix before
dense tiling keeps the tile
36 cells stored, 13 of them used
but look at the columns
3 of 6 hold every entry
active columns only
18 cells stored, still a rectangle
half this tile was empty columns ·
and it is still a rectangle a dense kernel can be called on
The same rule, on every tile
stored, nonzerostored, zerothe same matrix, 36 × 36, tiles of 6
dense tiling
every kept tile, whole · 450 cells
→
active column tiling
columns, bands on the diagonal · 255 cells
43% of the storage goes ·
and every piece left is still a rectangle
When is it still a GEMM?
read off the tile’s
column pattern, analysed once and cached, never re-tested per call
active columns contiguous, output tile full width
GEMM straight into the tile one dgemm at the tile’s own leading dimension ·
nothing is copied, nothing is placed afterwards
at most 16 active columns on both operands
by hand, no BLAS call at all on an update this small the call costs more than the update is
worth · SIMD dot products, each written straight to its slot
anything else
GEMM into a buffer, then scatter one dgemm, plus a temporary and a second pass to
place the result · the only path that pays both
and if at most 5 columns are inactive the tile is promoted to full
width · those zeros cost less than the scatter would
which one is right depends on the matrix ·
that is the routing decision
Measured,
not labelled
fill
how much the factor grew,
tile occupancy
how full a kept tile is, averaged over the factor
tallest column
the biggest column of the factor, against the average
one
border
how many columns are dense, and the drop just after
them
and the four together choose the route
supernodal tilingsemi-sparse tilingdense tiling
dense tiling keeps whole tiles and skips the empty
ones · when every tile is full, that same path is simply a dense
solve
Where the sixty come from
26
INLA precision graphs
latent Gaussian models, Bayesian inference
34
SuiteSparse
structural, mechanical, thermal, mesh, grids chosen without reference to how sTiles routes them
order3.9 k → 1.6 M
nonzeros per row3.6 → 10,031
fill1.0× → 78×
all symmetric positive definite · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores)
· against MUMPS, CHOLMOD, PaStiX, PARDISO, symPACK
MUMPS: Amestoy et al., SIAM J. Matrix Anal. Appl. 23(1), 2001 ·
CHOLMOD: Chen et al., ACM Trans. Math. Softw. 35(3), 2008 ·
PaStiX: Hénon et al., Parallel Comput. 28(2), 2002 ·
PARDISO: Intel oneMKL PARDISO 2025.3, Intel Corporation ·
symPACK: Jacquelin et al., arXiv:1608.00044, 2016
Sixty matrices, six solvers
horizontal axis: matrix index, sorted by sTiles factorization time
sparse Cholesky, 60 matrices · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) ·
each solver at its own best core count
PARDISO throughout is Intel oneMKL PARDISO 2025.3 · the other four solvers are cited on the suite slide · sTiles: Abdul Fattah et al., ISC High Performance 2025
Where the router sends them
factorization time, relative to sTiles
sparse47 matrices
sTiles1×
MUMPS1.7×
CHOLMOD1.8×
PARDISO2.1×
PaStiX7.8×
symPACK8.7×
semi-sparse7 matrices
sTiles1×
PARDISO2.4×
MUMPS12.6×
CHOLMOD15.8×
PaStiX16.2×
symPACK25×
dense6 matrices
sTiles1×
CHOLMOD1.6×
MUMPS2.2×
PaStiX4.5×
PARDISO10.9×
symPACK21.6×
best competitorMUMPSPARDISOCHOLMOD
sparse Cholesky, 60 matrices ·
KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) ·
each solver at its own best core count
No fixed mode comes close
total factorization time, all 60 matrices forced through one mode
per-matrix selector73.1s–
all sparse115.6s1.58×
all semi-sparse151.5s2.07×
all dense191.4s2.62×
sparse Cholesky, 60 matrices ·
KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) ·
summed best over cores
Against PARDISO, matrix by matrix
sparse Cholesky, 60 matrices · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) ·
both solvers at their own best core count
one latent-Gaussian fit factorizes the same pattern
thousands of times
The same answer on other hardware
AMD EPYC128 cores
identicalrouting, matrix for matrix
firstin every regime, again
2.6 – 3.4×over the direct solvers
NVIDIA A100one GPU
1.2 – 6.3×faster on the dense route
measured against the faster of the two CPU nodes
The motivation
One method, and never one solve
Our motivation is
INLA, and people
use it everywhere
works citing INLA, OpenAlex, 2009 to 2026
5,325papers
4,322institutions
151countries
18years
INLA: Rue, Martino & Chopin, J. R. Stat. Soc. B 71, 2009
Same methodology,
a different structure every time
a smooth in time
rw2 · Tokyo · n = 366
a map of districts
bym2 · Germany · n = 1,174
continuous space
spde mesh · n = 24,455
space times time
48 periods · n = 26,113
a pedigree of animals
animal1 · n = 5,126 · 20%
One methodology, a few lines of R. Underneath it the matrix goes from
banded to graph to mesh to block to nearly dense, and
no single representation is right for all of them.
GMRF models: Rue & Held, Gaussian Markov Random Fields: Theory and Applications, Chapman & Hall/CRC, 2005
INLA is not one solve
factor
the pattern never moves, only the numbers
→
log determinant
nearly free, once the factor exists
→
selected inverse
the marginal variances. about 2× the cost of
the factorization
→
solves
Selected inversion: Takahashi, Fagan & Chin, Proc. 8th PICA Conf., 1973 · Lin et al., ACM Trans. Math. Softw. 37(4), 2011
And never just
one of them
is as small as a handful of rows, and as
large as a couple of million
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
AX = B
…
One for every hyperparameter configuration, because
is integrated over, not fitted:
thousands of them in a single fit.
An application
Modelling global temperature data for one year
A global temperature model
is what one station
s should read on one day t:
the average of that day’s low and high
one average for the globe, and how much colder per km of height
2numbers
how it varies with latitude, and through the year
6basis columns
how one place departs from that pattern
3,7503 fields on the mesh
the weather: space and time, coupled
456,2501,250 nodes × 365 days
climate
what a place is normally like at this time of year
weather
how one particular day differed from that
460,008 unknowns, from 4,234,989 daily observations
The spatial mesh, and where the data actually is
1,250mesh nodes, 2,496 triangles median edge 584 km
13,579stations, 2022 4,234,989 daily observations
77.5%of stations lie between 30°N and 60°N
0.2%lie south of 60°S 30 stations
55.9% of the whole global network is in the United States
Six numbers the fit has to
find
1the noise sd
a station’s actual reading,
the predictor plus noise
↑the linear predictor is its mean
none
none
2a range and an sd
3a range in space, one in time, and an sd
Priors and the count of six: Lindgren, Bakka, Bolin, Krainski & Rue, A diffusion-based spatio-temporal extension of Gaussian Matérn fields, SORT, §5.2.2, p. 32
What the engine does with those six
optimize
a gradient search for the mode of θ,
27 iterations in two passes
87.9%of the run, 4,157 s
curvature
a dense 6 × 6 Hessian by central differences,
then a corrected sd per θ
7.2%of the run, 339 s
integrate
combine the densities over
. This run was empirical Bayes,
so that is the mode alone
2.3%of the run, 111 s
776 evaluations at 6.09 s each. The same matrix, assembled
and factorized every single time.
Model 102 as run here, 64 threads: 6.09 s per evaluation with sTiles, 1 h 19 m end to end. The paper’s own run of this model: 52.94 s per evaluation, on a 52-core node with R-INLA’s PARDISO.
Climate: what a place is normally like
The normal temperature for that date, with the weather
averaged out. North and south swap: winter in one is summer in
the other
Warm at the equator, cold at the poles, and colder the higher you
go: the model loses 4.9 °C per kilometre of altitude
Land only, as the published figures draw it. The grey is sea:
a network of land stations never sees it
Weather: how one day differed from that
The same two days, now as the difference from those normals.
Red was warmer than usual for the date, blue was colder
Most places are close to normal: on 15 February 68% of the
land was within 2 °C of it. The colour is mostly in the far north
But not everywhere. The same day, parts of Russia ran nearly
9 °C above normal and others nearly 12 °C below.
Weather is local; climate is not
The same fit, two ways
SPDE, sparse
dense, latent field
matrix
460,008
460,008
evaluations
776
776
memory
6.3 GB
1.7 TB
energy
0.63 kWh
95 kWh
What that would have cost
Majdal Anjar · 27 January 2022 ·
one of 4,234,989
the whole village, half a day
dense, over the observations
0
kWh, one fit of 776 factorizations
SPDE, sparse, with sTiles
0.63
kWh, 1 h 19 m on one node
117,806×
Green500, June 2026 · node power at the
PDU, ServeTheHome · Lebanon per capita 2023, IEA ·
generator share 2023, LCEC · Majdal Anjar population,
2006 census
When you take a side:
dense vs. sparse
1
Sparse matrix, one solve: use the native sparse solver your platform already ships. A one-off solve never repays a heavy analysis.
“Don't use a sledgehammer to crack a nut.”
2
Don't use a sparse solver on a dense matrix. Once the pattern is nearly full, the indexing costs more than the sparsity saves.
“You can't get blood from a stone.”
3
Small sparse matrix: a dense solver is fine. Memory will be happy either way.
“Don't sweat the small stuff.”
4
Know your sparsity pattern. No fixed mode wins everywhere, and which one is right changes with the regime.
“Dense matrices are all alike; every sparse matrix is sparse in its own way.”
When you take a side:
dense vs. sparse
5
Order matters. The wrong ordering turns a sparse matrix into a dense factor.
“Don't put the cart before the horse.”
6
Speed is satisfying, but efficiency is what scales. We can be slower on the small matrices and faster on the ones that cost real time.
“Lose the battle, win the war.”
7
Invest once, reuse a thousand times. The analysis is the heaviest of any solver, but it pays for itself in a handful of factorizations, and the same pattern is factorized again and again.
“Measure twice, cut once.”
8
Not every matrix belongs on a GPU. The A100 is at parity on the two smallest dense matrices and 6.3× faster on the largest.
“Horses for courses.”
The best side is not to take one. Let the matrix decide.
Where it runs, and what is in flight
in usetoday
R-INLAthe default solver
PyINLAthe default solver
DALIAone of its backends
one library, called from
C++, R, Python and
Julia
papers
sTiles: An Accelerated Computational Framework for
Sparse Factorizations of Structured Matrices
Abdul Fattah, Ltaief, Rue, Keyes ·
published in ISC High Performance 2025
GPU-Accelerated Parallel Selected Inversion for
Structured Matrices
Abdul Fattah, Ltaief, Rue, Keyes ·
submitted to HPC Asia ·
arXiv:2504.19171
Dense Matrices Are Alike; Sparse Matrices Are Sparse
in Their Own Way: A Structure-Adaptive Tile Cholesky Factorization
Abdul Fattah, Ltaief, Rue, Keyes ·
submitted to SIAM Journal on Scientific
Computing
examples in all four languages, the benchmarks,
and the papers
DALIA: Gaedke-Merzhäuser et al., Proc. SC ’25, ACM · doi 10.1145/3712285.3759832
Thank you
esmail-abdulfattah.github.io
Selected inversion
The same tiles, the other way up the matrix
A selected
inverse, not the inverse
the matrix
46 entries of 144
its inverse
full, 144 of 144
the selected inverse
the factor's pattern, 82 entries,
36 of them fill-in
The inverse of a sparse matrix is full. INLA never wants it: it wants the
diagonal and the pattern entries. On a precision matrix with
688,632 unknowns the factor holds 83 million entries and the
full inverse would hold 474 billion, about 3.8 TB.
The same four lines, backwards
factorization
1234
first column to last
selected inversion
1234
last column to first
the same , the same pattern ·
every entry it reads has already been computed, so the sweep runs the
other way
The same tiles,
the same routes
↘factorization
j = 1 … n
↖selected inversion
j = n … 1
Same tiles, same skipped tiles, same task graph, and the same three
routes: dense, semi-sparse, supernodal. The router
measures the matrix once and both phases run on its answer.
What it costs, what it buys
costagainst the factorization
about 2×one selected inverse, on a
precision matrix with 688k unknowns
oneper hyperparameter configuration, so
1,073 of them in that fit
what it buysmeasured
13×over PARDISO, dual-socket
26-core Xeon
5×again on one A100, over that CPU
version
“GPU-Accelerated Parallel
Selected Inversion for Structured Matrices” · under
review
PARDISO on this slide is Panua-PARDISO 8.2: Schenk, Gärtner, Fichtner & Stricker,
Future Gener. Comput. Syst. 18(1), 2001 · the selected-inversion baseline, a different library
from the oneMKL PARDISO the Cholesky results use