sTiles
This talk is not public yet.
Not that one.

Breaking the 2009 Rules:
sTiles and the New INLA

Esmail Abdul Fattah

King Abdullah University of Science and Technology
Seminar, University of Glasgow, Scotland
8.9seconds
What the literature already measured

Not only him

5,695open-access papers use INLA
→
1,071say how long it took, or compare it
→
168print the benchmark table

Open-access full text only, screened for papers that genuinely use INLA, so every count here is a floor.

Nearly one in five raises the time it takes.

Why it is fast, and why it spread

Sparsity
Generality
Portability
Fewer than 1 in 1,000 entries of is non-zero, so the factorization never touches the rest.
One latent field, any likelihood, and the same call shape over the lot of them.
The model is one line of R, and it runs on whatever the room happens to own.
n = 1,174
n = 14,401
n = 26,113
114likelihood families, 52 latent models, 48 priors
157,092models with two f() terms, and 5,928 with one
Linux·macOS·Windows
binaries ship in the package, nothing to compile

Since 2009, and 186 papers that extend the method rather than just use it.

What the data is made of

data Poisson binomial Gaussian gamma beta Weibull negative binomial Student-t … and more covariate a straight effect + iid unstructured + time a smooth trend + space a smooth field + interaction the field moves + … more effects as needed no hyperparameter hyperparameters how strong, how smooth, how far each effect reaches a handful of numbers, and they set everything above link function

The same model, written down

hyperparameters
a handful of numbers: how strong, how smooth, how far each effect reaches
↓
latent field
x is the latent field: every effect from the slide before, stacked into one vector. Gaussian, and sparse.
↓
the data
conditionally independent, each through its own likelihood
what you get: marginal posteriors that help us understand the effects and the hyperparameters
What the method was built on

The assumptions of 2009

1Q is sparse
2A handful of hyperparameters
3The latent field is Gaussian
What the method was built on

The assumptions of 2009

Q is sparse?
Y ~ 1
+ f(region, "iid")
Y ~ 1
+ f(region, "besag", graph = germany)
Y ~ 1
+ f(region, "besag", graph = germany)
+ f(year, "rw2")
Y ~ 1
+ f(region, "besag", graph = germany,
group = period,
control.group = list(model = "rw1"))
Y ~ 1 + x1 + ... + x40
+ f(region, "besag", graph = germany,
group = period,
control.group = list(model = "rw1"))
y ~ 1
+ f(animal, "generic0", Cmatrix = A)
y ~ 1
+ f(subject, "iid")
+ f(item, "iid")
Germany, 544 districts · one effect per district
545unknowns
Q, as INLA assembled it
What the literature already measured

Why INLA needs HPC

Practice has outgrown the assumptions of 2009.

620,000 inla() calls for one trial design, took 20 days!1
2.4 days for one model, on 10 threads and 64 GB2
1 million latent parameters in one model, and 2 million observations3

1 Hosseini et al., Contemp. Clin. Trials 142, 2024 · 2 Quijal-Zamorano et al., Int. J. Epidemiol. 54(4), 2025 · 3 Gaedke-Merzhäuser et al., SIAM J. Sci. Comput. 46(4), 2024

What those seconds are

1ordering
41evaluations
11selected inverses
8,705posterior marginals
Q(θ) x = b a factorization, then a solve · every evaluation
diag Q(θ)−1 a selected inverse · every configuration
Not one of these is the model. All of it is linear algebra on .
Where the engine has to get better

To make it faster

1 A faster solve , which is the factorization under it
2 A faster selected inverse , once per configuration
3 Memory known, and more of the machine what the factor will cost, and how the parallelism should be tuned
sTiles
A high-performance framework for structured matrices
The first solver that covers the full range,
from very sparse to fully dense
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%
all pairs of points
kriging · dense precision
different sparsity patterns
fully dense
One methodology, a few lines of R. Underneath it the matrix goes from banded to graph to mesh to block to fully dense, and no single representation is right for all of them.
Abdul Fattah, Ltaief, Rue & Keyes, ISC High Performance 2025  ·  GMRF models: Rue & Held, Gaussian Markov Random Fields, Chapman & Hall/CRC, 2005
Tiling strategies used in sTiles
stored, nonzero stored, zero a scattered matrix, 36 × 36, tiles of 6
the matrix
before any tiling decision
every tile
dense solvers
666 cells
sTiles
dense tiling
non-empty tiles only
450 cells
sTiles
semi-sparse tiling
active columns only
196 cells
supernodal tiling
sparse solvers
78 cells
which one is right depends on the matrix · that is the routing decision
Whatever the pattern, the inverse is full
a smooth in time
· 1.4%
→
· 100%
rw2 · n = 366
a map of districts
· 0.6%
→
· 100%
bym2 · Germany · n = 1,174
a lattice field
· 1.6%
→
· 100%
rw2d · 40 × 40 · n = 1,601
Sparsity is a property of the model. Density is a property of the answer.
The selected inverse in sTiles
an entry of the inverse carried by the tiling the same matrix, 36 × 36, tiles of 6
the matrix
Q, a precision
77 entries
the inverse
dense, every entry
666 cells
the selected inverse
the pattern of L
78 cells
sTiles
what sTiles does
rounded up to tiles
196 cells
the full inverse is never formed · the tiling is what keeps the kernels dense
Sparse Cholesky, sixty matrices

Against the other solvers

sTiles 73s –
CHOLMOD 131s 1.8×
MUMPS 136s 1.9×
PARDISO 338s 4.6×
PaStiX 497s 6.8×
symPACK 905s 12×
total factorization time, 60 matrices · KAUST Ibex, two 20-core Intel Xeon Gold (40 cores) · each solver at its own best core count
Abdul Fattah, Ltaief, Rue & Keyes, sTiles 3.0, Table 6, submitted · the five other solvers are cited there, and PARDISO throughout is Intel oneMKL PARDISO 2025.3
What the method rests on now

The assumptions, revisited

1 Q is sparse
2 A handful of hyperparameters
More than a handful, and each one multiplies the solves
the design table runs out at 52 of them, 4,201 points, and after that the points have to be your own.
3 The latent field is Gaussian
It still is, and the extensions need it to be
Where the method ends and the machine begins

What limits it now

the hyperparameters
how many evaluations the integration asks for
the parallel scheme
how many of them you hold at once
the structure of Q
how big one factor is, after fill-in
↓
Does it fit in memory? memory grows with evaluations in flight × nnz(L)
Not one of the three is a property of the method.
The limit moved from INLA to the machine you run it on.
One hyperparameter, one input changed per row

What moves the cost, and what does not

every evaluation of
a factorization, then a solve
and a selected inverse for each configuration kept
one hyperparameter
the runlatent ndensity of Qsize of Qobservationsevaluationstime
base1,0003.25%254 KB1,000273.32 s
20× the data1,0003.25%254 KB20,000253.04 s
twice the n2,0003.10%971 KB2,0002715.77 s
dense Q1,000100%7.6 MB1,000273.65 s
dense, twice the n2,000100%30.5 MB2,0002715.41 s
the same model, as n grows
the matrixpattern latent nmemory
sparse 10,000 859 KB
sparse 100,000 8.4 MB
dense 10,000 763 MB
dense 100,000 74.5 GB
Integration points, by how many hyperparameters

How many can run at once

How many you run at once is not what the table allows.
It is what your machine has, divided by what one evaluation needs. one factor in memory per evaluation in flight
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
55.9% of the whole 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, and the weather on top of it
the normal for 15 February and 16 August
the same two days, as departures from those normals
Climate is what we expect; weather is what we get.
The model on the slides before

What one fit costs

1 h 19 mone fit of the global temperature model
460,008unknowns
4,234,989observations
776evaluations
6.09 seach
Every one of the 776 is a factorization and a solve. That is where the hour and nineteen minutes went.
To use it

Three modes, one option

Spy plot of a bym2 precision matrix, an irregular scatter
                about the diagonal
sparse
few nonzeros, irregular pattern
Spy plot of a space time matrix with covariates, a banded
                body with its last rows and columns full
semisparse
sparse body with dense rows and columns
A solid square: every entry stored
dense
nearly all entries nonzero
auto: the solver reads the matrix and picks one
control.stiles = list(tile.type = "auto")
www.r-inla.org/sTiles/
Where the engine is going

What is running next

running INLA on a GPU
next across multiple nodes work in progress
If you have an application that would push this, I would like to hear about it. esmail.abdulfattah@kaust.edu.sa
Thank you
QR code for esmail-abdulfattah.github.io esmail-abdulfattah.github.io