The New Engine for
Bayesian Inference with INLA

Structure-adaptive solver for the linear algebra inside every INLA fit.

Esmail Abdul Fattah

Joint work with Hatem Ltaief, David E. Keyes and Håvard Rue

King Abdullah University of Science and Technology
STAT Workshop, 2026
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 the precision matrix 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
+ your ownwrite your own likelihood or latent effect and it meets the same call: the catalogue is where you start, not where you stop
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
What the method was built on

The assumptions of 2009

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

The assumptions of 2009

The precision matrix 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.
How much of the tile do you keep?
a nonzero a stored zero one matrix, 36 × 36
The factor, scattered, with four groups of columns alike
the matrix
sTiles
Every tile of the lower triangle, filled
full dense
Only the tiles that hold something, kept whole
dense
Inside each kept tile, only the columns that carry an entry
semisparse
Four wide supernode blocks, every other column on its own
sparse
the matrix decides which one wins · sTiles picks it
What the method rests on now

The assumptions, revisited

1 The precision matrix 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.
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
The widest parallel step INLA has

What runs them at once

4,201
A square field of 4,201 dots, one per integration point
θ = 52 · one dot, one evaluation
DALIA
  • on GPUs, through CuPy
  • across many nodes, through MPI4Py
  • in Python, modular and portable
github.com/dalia-project/DALIA
An application of the new engine
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
460,008 unknowns, from 4,234,989 daily observations

Lindgren, Bakka, Bolin, Krainski and Rue, A diffusion-based spatio-temporal extension of Gaussian Matérn fields, SORT 48(1), 2024

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
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 four models on the slides before

What one fit costs

ModelINLA 2024 · PARDISOINLA 2026 · sTiles
1027 h 07 m1 h 19 m
12121 h 05 m1 h 34 m
2028 h 35 m1 h 38 m
22031 h 27 m4 h 19 m
all four68 h 14 m8 h 50 m
460,008 unknowns, 4,234,989 observations, every evaluation a factorization. Three of the four fit in under two hours.
Beyond INLA itself, on CRAN

55 INLA-based packages can run on sTiles

12Disease mapping

bigDM · diseasemapping · DClusterm · eCAR · GHRmodel · SpatGC · sfclust · bdlnm · climatehealth · MAPCtools · nowcaster · surveillance

11Extensions of INLA

inlabru · INLAjoint · INLABMA · INLAcircular · inlamemi · excursions · rSPDE · MetricGraph · ngme2 · graphpcor · makemyprior

8Geostatistics

geostatsp · bmstdr · mbg · MBGapp · midasINLA · AGPRIS · SpatialGEV · highriskzone

7Trials, health economics

BATSS · CRTspat · meta4diag · nmaINLA · survHE · blendR · voi

5Ecology, genetics

PointedSDMs · intSDM · SimSurvey · phyr · plantmix

5Regression, teaching

qbrms · powerbrmsINLA · gdpar · abn · vibass

4Surveys

SUMMER · surveyPrev · sae4health · jollofR

3Neuroimaging

BayesfMRI · BayesBrainMap · templateICAr

Each of them fits through inla(). A faster engine is faster for all of them.
CRAN, November 2026
Thank you
QR code for the sTiles website
  • Benchmarks
  • ExamplesPython · R · Julia · C++
  • Runs onCPU · GPU
  • InstallLinux · macOS · Windows