sTiles
This talk is not public yet.
Not that one.
sparse  ·  smart  ·  structured  ·  scalable
Solvers That Don't
Choose Sides
sTiles: faster linear algebra for the computations that run underneath your models
Esmail Abdul Fattah
with Hatem Ltaief, Håvard Rue and David E. Keyes
King Abdullah University of Science and Technology
factor forward solve back solve
5−2−3 −280 −306
dense
all 9 entries stored
5−2−3 −28 −36
sparse
only the 7 nonzeros stored
123456789101112 14−100−10000000 2−14−100−1000000 30−14−100−100000 400−14000−10000 5−10004−100−1000 60−100−14−100−100 700−100−14−100−10 8000−100−14000−1 90000−10004−100 1000000−100−14−10 11000000−100−14−1 120000000−100−14
the matrix
12×12 · 46 nonzeros of 144
the pattern
the only part the solver has to respect
Cholesky, in four lines
dense
1 2 3 4
every row below the diagonal, and every k before j
sparse
1 2 3 4
: the nodes joined to j in the graph of L, not of A
Dense solvers
Every entry stored, every entry worked on
The same four lines, on blocks
element by element
1 2 3 4
128.6seconds
in tiles
1 2 3 4
0.82seconds
architecture
  • Element-by-element computation is inefficient
  • Design must account for architecture and memory hierarchy
  • Shift from element-wise to block-wise operations
  • Blocks fit in cache: less data movement, faster computation
instead of
aij
←
aij
−
lik
×
ljk
we do
AIJ
←
AIJ
−
LIK
×
LJKT
5000 × 5000 dense, single core · identical flop count
158× faster, with the same arithmetic and the same answer
The same four lines, as tasks
in tiles
1 2 3 4
1 2 3 4
task graph
In tiles, written out
in tiles
1 2 3 4
in parallel
1 2 3 4 5 6
the pairs are dealt round-robin to the workers, so every tile belongs to exactly one of them and no two ever write the same tile
the four kernels
Tile algorithms: Buttari, Langou, Kurzak & Dongarra, Parallel Comput. 35(1), 2009 · PLASMA: Agullo et al., PLASMA Users Guide, ICL, Univ. of Tennessee, 2009; YarKhan et al., Int. J. Parallel Program. 45(3), 2017
One core, then all of them
element by element
128.6s
one core
158×faster
in tiles
0.82s
one core
3.2×faster
in tiles
0.26s
10 cores
more cores →GPU →multiple GPUs
5,000 × 5,000needs200 MB
none solve 10 in parallel
5,000200 MB 2 GB
20,0003.2 GB 32 GB
50,00020 GB 200 GB
100,00080 GB 800 GB
large-memory nodes →distributed memory →out-of-core
Sparse solvers
Most of those entries are zero
The same four lines, over
1 2 3 4
: the nodes joined to j in the graph of L, not of A
a zero that does not survive
if and then so
fill-in
Cholesky, and what it costs
dense
A
→
L
78 → 78 · nothing new to form
sparse
A
→
L
29 → 47 · 18 fill-ins
goalminimizing fill-in
The same matrix, ordered two ways
hub eliminated first
A
→
L
17 → 45 · 28 filled in
a full matrix
hub eliminated last
A
→
L
17 → 17 · no fill-in at all
the pattern of A, kept
same matrix, same answer, same 17 stored entries to start · only the order of the unknowns changed
Who picks the order?
the matrix itself, numbered arbitrarily: scattered entries, no structure
A
4,992 in A
factor of that matrix with no reordering: fill almost everywhere
as given
91,167 in L
factor after reverse Cuthill-McKee: a narrower band
RCM
23,344 in L
factor after METIS: nested blocks with separator bars the same factor coloured by subdomain: two teal blocks down
                    the diagonal that share no entry, joined only by the gold
                    separator band
METIS
13,297 in L
2 independent blocks
What a supernode is
the ordering found the structure: this is how a solver uses it
S1S2S3S4S51122334455667788991010
columns whose patterns nest, stored as one dense block
S1columns 1, 2rows below: 4, 9
S2column 3rows below: 4, 6
S3columns 4, 5, 6rows below: 9
S4columns 7, 8rows below: 9, 10
S5columns 9, 10none
Same arithmetic, different route
supernodal · left-looking
tree of fronts
S5 S3 S4 S1 S2
multifrontal
Two families, one trade-off
EXPLOITS SPARSITY REGULAR WORK, NEAR PEAK dense LAPACK · MAGMA · SLATE stores and factors every zero sparse PARDISO · MUMPS · CHOLMOD small blocks, far from peak
Every application, its own pattern
every one symmetric positive definite, every one factorized by the same four lines
esmail-abdulfattah.github.io/sTiles/suits
six questions
1

How large is your solve?

2

How many times do you solve?

3

How much memory do you have?

4

What fraction of your runtime is the solve?

5

What hardware do you have access to?

6

Does it need to be fast on all of them?

Does this matrix need a sparse solver or a dense solver?
sparse solver
dense solver
?
sTiles
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, nonzero stored, zero an 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, nonzero stored, zero another 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, nonzero stored, zero one 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, nonzero stored, zero the 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
How much of the tile do you keep?
stored, nonzero stored, zero a scattered matrix, 36 × 36, tiles of 6
the matrix
scattered, four column groups
every tile
what a dense solver keeps
sTiles
dense tiling
non-empty tiles only
sTiles
semi-sparse tiling
active columns only
supernodal tiling
four wide, rest single columns
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 tiling semi-sparse tiling dense 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
order 3.9 k → 1.6 M
nonzeros per row 3.6 → 10,031
fill 1.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
factorization time per matrix for 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
sTiles 1×
MUMPS 1.7×
CHOLMOD 1.8×
PARDISO 2.1×
PaStiX 7.8×
symPACK 8.7×
semi-sparse7 matrices
sTiles 1×
PARDISO 2.4×
MUMPS 12.6×
CHOLMOD 15.8×
PaStiX 16.2×
symPACK 25×
dense6 matrices
sTiles 1×
CHOLMOD 1.6×
MUMPS 2.2×
PaStiX 4.5×
PARDISO 10.9×
symPACK 21.6×
best competitor MUMPSPARDISOCHOLMOD
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 selector 73.1s –
all sparse 115.6s 1.58×
all semi-sparse 151.5s 2.07×
all dense 191.4s 2.62×
sparse Cholesky, 60 matrices · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) · summed best over cores
Against PARDISO, matrix by matrix
per-matrix speedup over PARDISO against matrix cost
sparse Cholesky, 60 matrices · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) · both solvers at their own best core count
PARDISO: Intel oneMKL PARDISO 2025.3, Intel Corporation, oneMKL Developer Reference
Paying for the analysis once
60 matrices at 40 cores, summed over the suite
analysisonce factorizationevery time pays for itselffactorizations
sTiles787 s 73 s –
symPACK160 s 905 s <1
PaStiX206 s 497 s 1.5
PARDISO195 s 338 s 2
MUMPS154 s 136 s 10
CHOLMOD158 s 131 s 11
the heaviest analysis of any solver here
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
Mollweide map of the 1,250 node spherical mesh with the 13,579
              station locations in green
1,250 mesh nodes, 2,496 triangles
median edge 584 km
13,579 stations, 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
1 the noise sd
a station’s actual reading, the predictor plus noise
↑ the linear predictor is its mean
none
none
2 a range
and an sd
3 a 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
Fitted climate on 15 February and 16 August, Mollweide maps
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
Fitted weather anomaly on 15 February and 16 August
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
QR code linking to esmail-abdulfattah.github.io/sTiles
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
QR code for esmail-abdulfattah.github.io 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
1 2 3 4
first column to last
selected inversion
1 2 3 4
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