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
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 understandthe effectsandthe 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,000inla() calls for one trial
design, took 20 days!1
2.4 daysfor one model, on 10 threads and 64 GB2
1 millionlatent parameters in one model, and 2 million
observations3
1 Hosseini et al., Contemp. Clin. Trials142, 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 = ba factorization, then a solve · every evaluation
diag Q(θ)−1a 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
1A faster solve
, which is the factorization
under it
2A faster selected inverse
, once per
configuration
3Memory known, and more of the machine
what the factor will cost, and how the parallelism should be
tuned
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
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 inversecarried by the tilingthe 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
sTiles73s–
CHOLMOD131s1.8×
MUMPS136s1.9×
PARDISO338s4.6×
PaStiX497s6.8×
symPACK905s12×
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
1Q is sparse
2A 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.
3The 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 run
latent n
density of Q
size of Q
observations
evaluations
time
base
1,000
3.25%
254 KB
1,000
27
3.32 s
20× the data
1,000
3.25%
254 KB
20,000
25
3.04 s
twice the n
2,000
3.10%
971 KB
2,000
27
15.77 s
dense Q
1,000
100%
7.6 MB
1,000
27
3.65 s
dense, twice the n
2,000
100%
30.5 MB
2,000
27
15.41 s
the same model, as n grows
the matrix
pattern
latent n
memory
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
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
55.9%of the whole 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, 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
sparse
few nonzeros, irregular pattern
semisparse
sparse body with dense rows and columns
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
runningINLA on a GPU
nextacross multiple nodeswork in progress
If you have an application that would push this, I would like
to hear about it.
esmail.abdulfattah@kaust.edu.sa