Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Choosing the solver, preconditioner and log-determinant

Open In Colab

A GPPrior makes three linear-algebra choices: the solver that applies A−1\mathbf{A}^{-1}, the preconditioner that speeds it up, and the log-determinant that estimates log⁡det⁡A\log \det \mathbf{A}. The docstrings list a dozen valid combinations; this page says which one to pick for a size, a kernel and a likelihood, and what error and cost to expect. The advice comes from a benchmark, scripts/bench_gp_solvers.py, whose results are saved next to this notebook as gp_solver_choices.csv, one row per combination. Every claim below names the rows it rests on, as likelihood-kernel-N-configuration, and the cell after it prints them. The cells that run live use N=1000N = 1000 or less, so the page executes in a few minutes; the saved table goes up to N=8000N = 8000.

What you’ll learn:

  1. What the three choices of a GPPrior are, and which quantity uses each.

  2. Which combination to pick for a size, a kernel and a likelihood, and what error and cost to expect.

  3. How noisy the evidence gradient is, and what the preconditioner and the control variate do to that noise.

  4. What a stochastic evidence means inside NUTS and SVI, and how to check whether its noise matters.

Python implementation: CPython
Python version       : 3.13.12
IPython version      : 9.13.0

jax       : 0.10.2
equinox   : 0.13.8
numpyro   : 0.21.0
gaussx    : 0.8.4
kernellib : 0.0.22
pyrox_gp  : 0.3.2
matplotlib: 3.10.9
pandas    : 3.0.3

Compiler    : Clang 21.1.4 
OS          : Linux
Release     : 6.8.0-1044-azure
Machine     : x86_64
Processor   : x86_64
CPU cores   : 16
Architecture: 64bit

1. The three choices

With NN training points, the kernel matrix KXX∈RN×N\mathbf{K}_{XX} \in \mathbb{R}^{N \times N} (jitter included) and the noise or site variances d∈RN\mathbf{d} \in \mathbb{R}^N, every quantity of a GP solves against one system,

A=KXX+diag(d)∈RN×N.\mathbf{A} = \mathbf{K}_{XX} + \mathrm{diag}(\mathbf{d}) \in \mathbb{R}^{N \times N}.

For Gaussian noise d=σ21\mathbf{d} = \sigma^2 \mathbf{1}; inside a Laplace fit dn=1/λnd_n = 1 / \lambda_n, the inverse site precision of point nn, and A\mathbf{A} changes at every Newton step. The Gaussian evidence, with r=y−μf∈RN\mathbf{r} = \mathbf{y} - \boldsymbol{\mu}_f \in \mathbb{R}^N the residual of the prior mean, uses both maps:

log⁡p(y)=−12r⊤A−1r−12log⁡det⁡A−N2log⁡2π.\log p(\mathbf{y}) = -\tfrac12 \mathbf{r}^\top \mathbf{A}^{-1} \mathbf{r} - \tfrac12 \log \det \mathbf{A} - \tfrac{N}{2} \log 2 \pi.
ChoiceGPPrior fieldComputesShapeUsed by
solversolverA−1b\mathbf{A}^{-1} \mathbf{b}b∈RN\mathbf{b} \in \mathbb{R}^N, or N×MN \times M for MM test pointsthe quadratic term, condition and predict, every Newton step
preconditionerpreconditionerP−1v\mathbf{P}^{-1} \mathbf{v} inside CG, P≈A\mathbf{P} \approx \mathbf{A} of rank RR plus diag(d)\mathrm{diag}(\mathbf{d})U∈RN×R\mathbf{U} \in \mathbb{R}^{N \times R}the number of CG steps, and the variance of a stochastic log-determinant
log-determinantlogdetlog⁡det⁡A\log \det \mathbf{A}scalarthe evidence (log_marginal, gp_factor, the Laplace evidence) and its gradient

A dense solver factorises A\mathbf{A} once, at O(N3)O(N^3) time and O(N2)O(N^2) memory, and gives both maps exactly. An iterative one never forms KXX\mathbf{K}_{XX} (GPPrior(..., matrix_free=True) evaluates it block by block in each product) and estimates the log-determinant by stochastic Lanczos quadrature (SLQ) over NprobeN_\text{probe} random probes z(i)∈RN\mathbf{z}^{(i)} \in \mathbb{R}^N, with T(i)\mathbf{T}^{(i)} the Lanczos tridiagonal of probe ii:

log⁡det⁡A≈1Nprobe∑i=1Nprobe∥z(i)∥22 e1⊤log⁡(T(i))e1.\log \det \mathbf{A} \approx \frac{1}{N_\text{probe}} \sum_{i=1}^{N_\text{probe}} \Vert \mathbf{z}^{(i)} \Vert_2^2 \, \mathbf{e}_1^\top \log(\mathbf{T}^{(i)}) \mathbf{e}_1.

With a preconditioner the estimate splits as log⁡det⁡A=log⁡det⁡P+log⁡det⁡(P−1/2AP−1/2)\log \det \mathbf{A} = \log \det \mathbf{P} + \log \det(\mathbf{P}^{-1/2} \mathbf{A} \mathbf{P}^{-1/2}), the first term exact and the second near zero, so its probe noise is smaller. The benchmark compares these configurations, all on matrix_free=True except dense, and all built with throw=False so a solve that misses its tolerance is reported rather than raised:

NameSolverPreconditionerLog-determinant
denseDenseSolver (Cholesky)noneexact
cgCGSolver(rtol=1e-4)noneCG’s own SLQ, 20 probes, 30 Lanczos steps
cg-nystromCGSolver(rtol=1e-4)NystromPreconditioner.lazy(200)SLQLogdet(num_probes=50), preconditioned, gradient with the control variate of gaussx#826
cg-nystrom-fixedPCGSolver(rtol=1e-4)the same Nyström, built once at the evaluation pointthe same SLQ; P\mathbf{P} has no gradient, so the control variate adds nothing
matfreepx.matfree_solver(rank=200)Nyström, rebuilt from A\mathbf{A}NystromLogdet: exact log⁡det⁡P\log \det \mathbf{P} plus SLQ of the remainder, 50 probes, 30 steps
matfree-fitc, matfree-r50, matfree-r800, matfree-lanczos60matfree_solver with preconditioner="fitc", rank 50, rank 800, or 60 Lanczos steps
bbmmpx.bbmm_solver(rank=200)lazy NyströmBBMM’s shared pass, 50 probes drawn from P\mathbf{P}, gradient with the control variate

The two presets are one call each and return an ordinary gaussx strategy, as the cell below shows.

CG + Nyström + SLQ   -> ComposedSolver
matfree_solver       -> ComposedSolver
bbmm_solver          -> KeyedSolver

The saved results

The benchmark draws NN inputs uniformly on the unit square, sets the latent function to f(x)=sin⁡(6x1)+cos⁡(4x2)f(\mathbf{x}) = \sin(6 x_1) + \cos(4 x_2), and observes it with Gaussian noise of variance σ2=0.01\sigma^2 = 0.01 or as Bernoulli labels with probability sigmoid(2f)\mathrm{sigmoid}(2 f). The kernel is a Matérn-3/2 of unit variance with a smooth (ℓ=0.3\ell = 0.3) or a rough (ℓ=0.03\ell = 0.03) lengthscale, and each evidence is evaluated at those hyperparameters. The sizes are N∈{500,2000}N \in \{500, 2000\} for both likelihoods and N=8000N = 8000 for the Gaussian one, with three keys per stochastic configuration below 8000 and one at 8000. The run had to fit a shared VM (it took about 46 minutes), so 8000 is the largest size, the Bernoulli likelihood stops at 2000, and the rough kernel at 8000 has dense and matfree only. The dense reference is exact at every size measured, so every error is against it; at N=8000N = 8000, with one key, the RMS error is the error of that key.

The timings are on the CPU of the VM, four cores (taskset -c 0-3), in float64, after ahead-of-time compilation, with jax.block_until_ready, and the median over the keys. There is no GPU on the VM, so no row is a GPU timing. passes_evidence counts the calls of the kernel operator’s matvec in one evidence: each call evaluates KXX\mathbf{K}_{XX} once, block by block, and applies it to one vector or to a batch of probes, so it is the unit of cost of a matrix-free GP. mem_evidence_mb and mem_grad_mb are XLA’s temporary allocation of the compiled executable. logz_bias, logz_std and logz_rms are in nats against the dense evidence, with RMS2=bias2+var\mathrm{RMS}^2 = \mathrm{bias}^2 + \mathrm{var} over the keys, and grad_rel_rms_* is the RMS error of each component of the gradient over the keys, divided by the dense component. The effective dimension

deff=tr(KXXA−1)∈[0,N]d_\text{eff} = \mathrm{tr}\big(\mathbf{K}_{XX} \mathbf{A}^{-1}\big) \in [0, N]

counts the eigen-directions of KXX\mathbf{K}_{XX} that stand above the noise; it is what a preconditioner’s rank has to cover, and the cell below prints it for each data set.

53 rows: N in [500, 2000, 8000], device cpu:x86_64
Loading...

2. The decision table

What to use, filled from the saved rows. “Larger” means beyond the sizes measured here: on this CPU the dense solver gave the fastest evidence at every size up to N=8000N = 8000, so the iterative rows are for a problem whose dense factor no longer fits in memory.

SituationSolverPreconditionerLog-determinant
N≤8000N \le 8000 (the largest measured), memory permittingDenseSolver (the default)nonedense
larger, Gaussian noise, smooth kernelbbmm_solver for training (the cheapest gradient and memory), matfree_solver for single evidencesNyström, rank R≳2deffR \gtrsim 2 d_\text{eff}BBMM’s shared pass, or NystromLogdet
larger, non-Gaussianthe same, on LaplaceInferenceNyström, scaled per point by the presets; rank 200 gave 0.010 nats at deff=27d_\text{eff} = 27 and 0.47 to 0.78 nats at deff=221d_\text{eff} = 221the same
very rough kernel (deffd_\text{eff} near NN)dense, or inducing pointsnonedense
NUTSdense, or a preset with a fixed key whose logz_std is well below one natas aboveas above

The rows behind each line, in order:

  • Dense is the fastest evidence at every size: 3.64 s at N=8000N = 8000 on the smooth kernel against 25.0 s for matfree and 40.7 s for bbmm, and its gradient (47.7 s) is level with bbmm’s (48.3 s) and half of matfree’s (88.7 s); the price is memory, 4.9 GB of temporaries for the dense gradient against 742 MB for bbmm (rows gaussian-smooth-8000-dense, -matfree, -bbmm).

  • On the smooth kernel bbmm has the cheaper gradient of the two presets at every size, and at every size the smaller gradient memory (113 MB against 1028 MB for matfree at N=2000N = 2000, rows gaussian-smooth-2000-bbmm, -matfree), and matfree the cheaper evidence at N=8000N = 8000 (25.0 against 40.7 s).

  • The rank: on the smooth kernel at N=2000N = 2000, deff=355d_\text{eff} = 355, and only rank 800 brings the evidence error from 1.3 to 0.18 nats (rows gaussian-smooth-2000-dense, -matfree, -matfree-r800).

  • Non-Gaussian: the Laplace evidence errors of the presets at N=2000N = 2000 are 0.010 to 0.011 nats on the smooth kernel and 0.47 to 0.78 nats on the rough one (rows bernoulli-*-2000-matfree, -bbmm, bernoulli-*-2000-dense for deffd_\text{eff}).

  • Rough: deff=1778d_\text{eff} = 1778 of 2000 and 5572 of 8000, an evidence error of 6.6 to 9.9 nats for every preconditioned configuration at 2000 and 78 nats for matfree at 8000, which also takes 85.7 s against 3.8 s dense (rows gaussian-rough-2000-*, gaussian-rough-8000-dense, -matfree).

  • NUTS: see section 6.

Loading...

3. The Gaussian GP

The same Matérn-3/2 problem at N=1000N = 1000, smooth kernel, run live: the dense reference, unpreconditioned CG and the two presets, each compiled once and then timed. The error columns compare the log marginal and the predictive mean and variance at 64 test points with the dense ones. These numbers illustrate the code; the claims below rest on the saved rows, which use three keys and more sizes.

Loading...

The saved rows extend this to N=2000N = 2000 and 8000 and to the rough kernel. Four things stand out.

  • Time. The dense evidence is the fastest at every size: 0.13 s at N=2000N = 2000 and 3.6 s at N=8000N = 8000 on the smooth kernel, against 1.7 s and 25.0 s for matfree and 2.0 s and 40.7 s for bbmm (rows gaussian-smooth-2000-*, gaussian-smooth-8000-*). For the gradient the gap closes: at N=8000N = 8000 dense takes 47.7 s, bbmm 48.3 s and matfree 88.7 s.

  • Memory. XLA’s temporary allocation for the dense gradient grows from 275 MB at N=2000N = 2000 to 4.9 GB at N=8000N = 8000, while bbmm needs 113 MB and 742 MB; the matfree gradient is the large one among the presets, 1.0 GB and 4.4 GB (same rows).

  • Error. On the smooth kernel the presets’ RMS evidence error is 1.3 nats (matfree) and 0.78 nats (bbmm) at N=2000N = 2000 over three keys, and 2.0 and 2.6 nats at N=8000N = 8000 with one key, a relative error of 3⋅10−43 \cdot 10^{-4} to 4⋅10−44 \cdot 10^{-4}. Unpreconditioned cg is at 26.7 nats on the same problem at N=2000N = 2000, with 370 kernel passes against 55 for matfree (row gaussian-smooth-2000-cg). The predictions are accurate everywhere: the relative error of the predictive mean is at most 2.5⋅10−52.5 \cdot 10^{-5} in every row (largest in gaussian-rough-2000-bbmm) and of the predictive variance at most 1.6⋅10−31.6 \cdot 10^{-3} (gaussian-smooth-2000-cg), so the evidence’s error comes from the log-determinant, not from the solves.

  • The rough kernel. With deff=1778d_\text{eff} = 1778 of 2000 points, every iterative configuration is off by 6.6 to 22 nats at N=2000N = 2000, and bbmm needs 431 kernel passes and 11.0 s per evidence (rows gaussian-rough-2000-*); at N=8000N = 8000 matfree is 78 nats off and takes 85.7 s (row gaussian-rough-8000-matfree).

<Figure size 1800x500 with 3 Axes>
Loading...

4. The Bernoulli Laplace fit

The Bernoulli labels on the same inputs, fitted by LaplaceInference. The strategy takes the solver from the prior, so the presets go on GPPrior as before; inside the fit d\mathbf{d} is the vector of inverse site precisions, which the presets read from the system at every Newton step. The tolerance of the Newton loop is 10-3, ten times looser than the CG tolerance, as the LaplaceInference docstring asks for an iterative solver.

Loading...

The Laplace system is much better conditioned than the Gaussian one: a Bernoulli site has λn=pn(1−pn)≤1/4\lambda_n = p_n (1 - p_n) \le 1/4, so dn≥4d_n \ge 4, against σ2=0.01\sigma^2 = 0.01 for the Gaussian noise. The effective dimension drops accordingly, to 26.8 on the smooth kernel and 220.6 on the rough one at N=2000N = 2000 (rows bernoulli-smooth-2000-dense, bernoulli-rough-2000-dense, against 355 and 1778 for the Gaussian rows), and the errors of the presets drop with it. On the smooth kernel the RMS error of the Laplace evidence at N=2000N = 2000 is 0.010 nats for matfree and 0.011 nats for bbmm, against 1.41 nats for unpreconditioned cg (rows bernoulli-smooth-2000-matfree, -bbmm, -cg); on the rough kernel the presets are at 0.78 and 0.47 nats and cg at 2.95 (rows bernoulli-rough-2000-*). The dense fit is still the fastest at this size: 1.06 s for the whole fit against 3.02 s and 2.59 s for the presets on the smooth kernel, and 0.87 s against 3.21 s and 2.87 s on the rough one. The gradient follows the same order, with bbmm the cheapest iterative one (3.87 s against 4.67 s dense on the smooth kernel), and the unpreconditioned cg gradient is the outlier, 60 % off in its lengthscale component on the smooth kernel (row bernoulli-smooth-2000-cg).

<Figure size 1800x500 with 3 Axes>
Loading...

5. Gradients

Training or sampling needs the gradient of the evidence, ∇θlog⁡p(y)\nabla_{\boldsymbol{\theta}} \log p(\mathbf{y}) with θ=(log⁡ℓ,log⁡s2,log⁡σ2)\boldsymbol{\theta} = (\log \ell, \log s^2, \log \sigma^2), whose log-determinant part is a Hutchinson estimate with one sample per probe, (A−1z(i))⊤(∂A/∂θ)P−1z(i)(\mathbf{A}^{-1} \mathbf{z}^{(i)})^\top (\partial \mathbf{A} / \partial \theta) \mathbf{P}^{-1} \mathbf{z}^{(i)}. A preconditioner changes where the probes come from but, on its own, leaves the variance of that sample; the control variate of gaussx#826 subtracts (P−1z(i))⊤(∂P/∂θ)P−1z(i)(\mathbf{P}^{-1} \mathbf{z}^{(i)})^\top (\partial \mathbf{P} / \partial \theta) \mathbf{P}^{-1} \mathbf{z}^{(i)}, whose mean ∂log⁡det⁡P/∂θ\partial \log \det \mathbf{P} / \partial \theta is known, so the noise falls as P\mathbf{P} approaches A\mathbf{A}. gaussx v0.8.4 has no switch that turns the control variate off, so the benchmark gets “the preconditioner alone” from cg-nystrom-fixedP: the same Nyström preconditioner, built once at the evaluation point, has no gradient, so its control variate contributes none.

At N=2000N = 2000 on the smooth kernel (rows gaussian-smooth-2000-*), the relative RMS error of the three gradient components is 26 to 59 % without a preconditioner (cg, whose own SLQ uses 20 probes, against 50 for the others), 1.4 to 2.3 % with the preconditioner alone, 1.0 to 1.6 % with the preconditioner and the control variate, 0.45 to 0.76 % for bbmm and 0.84 to 1.3 % for matfree. The control variate therefore divides the error by 1.2 to 1.4 on this kernel. On the rough kernel (rows gaussian-rough-2000-*) the noise component dominates for every configuration, at 1.7 to 2.5 % for the four preconditioned ones and 6.1 % for cg; the control variate moves it from 1.69 to 1.67 %, and the lengthscale component from 0.30 to 0.20 %. The pattern measured at N=150N = 150 in the issue (4 % with or without the preconditioner, 0.1 to 0.3 % with the control variate) does not reappear here: at N=2000N = 2000 most of the gain comes from the preconditioned estimator itself.

<Figure size 1200x500 with 2 Axes>
Loading...

The rank. The preconditioner’s rank RR has to cover the effective dimension. On the smooth kernel at N=2000N = 2000, deff=355d_\text{eff} = 355 (row gaussian-smooth-2000-dense); rank 50, 200 and 800 give an RMS evidence error of 1.08, 1.30 and 0.18 nats and a largest gradient error of 1.6, 1.3 and 0.24 %, for 2.05, 1.71 and 3.95 s per evidence (rows gaussian-smooth-2000-matfree-r50, -matfree, -matfree-r800). Only the rank above 2deff2 d_\text{eff} moves the error. On the rough kernel deff=1778d_\text{eff} = 1778 of 2000 (row gaussian-rough-2000-dense), and no rank up to 800 helps (6.6, 6.7 and 8.2 nats, rows gaussian-rough-2000-matfree-r50, -matfree, -matfree-r800): that kernel is a case for the dense solver. The FITC preconditioner gives the same evidence as Nyström in matfree_solver, whose NystromLogdet builds its own sketch, and costs more CG steps (79 against 55 passes on the smooth kernel, 200 against 174 on the rough one, rows gaussian-*-2000-matfree-fitc).

The Lanczos order. A preconditioner lowers the variance of the evidence but not the bias of truncated Lanczos, which the Lanczos order sets. With the same probes, 60 steps instead of 30 leave the mean evidence unchanged on the smooth kernel (a difference of 0.0 nats) and move it by 0.94 nats on the rough one at N=2000N = 2000 (bias 2.99 against 3.93 nats, rows gaussian-rough-2000-matfree, -matfree-lanczos60), against a standard deviation over keys of 7.3 nats. The truncation bias exists on the rough kernel, but at this size the probe noise is about eight times larger.

Loading...

6. Inside NUTS and SVI

A stochastic log-determinant makes the evidence a random function of the hyperparameters. With a fixed key the probes are the same at every call (common random numbers): the evidence is then a smooth, deterministic function, and an optimiser or a sampler sees a fixed approximation of the exact one. SVI and gradient-based fits want exactly that. NUTS also runs on it, but it samples the posterior of that fixed approximation, not the exact posterior, and a longer chain does not remove the difference. With a fresh key per call (gaussx.KeyedSolver(solver, key); the key is a pytree leaf, so it can change under jit without recompiling) the error is different at every call, which a stochastic-gradient method averages out but which breaks the detailed balance of a Metropolis or NUTS step.

The cell below evaluates the log marginal at 25 lengthscales on N=500N = 500 points with the matfree preset, once with one fixed key and once with a fresh key per lengthscale, against the dense curve.

<Figure size 1200x500 with 2 Axes>
fixed key: error spread 0.779 nats; fresh keys: 2.302 nats
dense evidence range over the grid: 195.7 nats

To see whether the noise matters, compare the spread of the error over keys with the differences of the evidence that the fit or the sampler has to resolve. Above, the dense evidence moves by many nats across the grid, while the fixed-key error is a smooth offset and the fresh-key error jumps from point to point. A NUTS step compares log densities that differ by about one nat, so an evidence whose standard deviation over keys (logz_std in the saved rows) is near one nat or more changes the answer. At N=2000N = 2000 it is 1.4 nats for matfree and 0.51 nats for bbmm on the smooth Gaussian problem and 7.3 and 8.0 nats on the rough one (rows gaussian-*-2000-matfree, gaussian-*-2000-bbmm), while the Bernoulli Laplace evidence on the smooth kernel is at 0.012 and 0.013 nats (rows bernoulli-smooth-2000-matfree, -bbmm). For NUTS, then, use the exact solver where it fits, and otherwise a fixed key with a rank high enough that logz_std is well below one nat, checked with a few keys as this benchmark does. Inside a NumPyro model a fixed key is the preset’s own key; a fresh key per step, for SVI, is a KeyedSolver around it:

import numpyro
import numpyro.distributions as dist

base = px.matfree_solver(rank=800, key=jr.key(0))  # fixed key: one fixed approximation


def model(X, y):
    lengthscale = numpyro.sample("lengthscale", dist.LogNormal(0.0, 1.0))
    kernel = kl.Matern(nu=1.5, lengthscale=lengthscale)
    # for SVI only: fresh probes at every step
    solver = gx.KeyedSolver(base, numpyro.prng_key())
    prior = px.GPPrior(kernel, X, solver=solver, matrix_free=True)
    px.gp_factor("y", prior, y, jnp.asarray(0.01))

7. When not to

Exact below a few thousand, and here up to 8000. On the measured CPU the dense solver gives the exact evidence faster than any iterative one at every size up to N=8000N = 8000, and its gradient as fast as bbmm’s at 8000 (the rows printed below). Switch when the dense factor and its gradient no longer fit: their temporaries were 977 MB and 4.9 GB at N=8000N = 8000 (row gaussian-smooth-8000-dense) and grew 18-fold from N=2000N = 2000 to N=8000N = 8000 (rows gaussian-smooth-2000-dense, gaussian-smooth-8000-dense). No GPU was measured, since the VM has none.

Rough kernels. When deffd_\text{eff} is close to NN, no low-rank preconditioner captures KXX\mathbf{K}_{XX}, and the stochastic log-determinant stays several nats off at every rank tried (section 5). Use the dense solver while it fits; beyond, an approximation that does not need a low-rank KXX\mathbf{K}_{XX} to be accurate, such as inducing points (SparseGPPrior) or, on a time axis, a Markov GP (pyrox_ssm.MarkovGPPrior). Those were not part of this benchmark.

Sparse, Markov and structured kernels. A Markov GP on a 1-D time grid runs a Kalman filter in O(N)O(N), and kernels with grid or Kronecker structure have exact structured solves in gaussx. This page measures only the unstructured exact GP, so it does not compare them.

Loading...

Summary

  • Up to N=8000N = 8000 on a CPU, keep the default DenseSolver: it was the fastest evidence at every size and level with bbmm on the gradient at 8000 (rows gaussian-smooth-8000-*).

  • Beyond that, on a smooth kernel, bbmm_solver gave the cheapest gradient and the least memory of the presets, and matfree_solver the cheaper single evidence; both are accurate to 3⋅10−43 \cdot 10^{-4} to 4⋅10−44 \cdot 10^{-4} relative at N=8000N = 8000 (rows gaussian-smooth-8000-matfree, -bbmm).

  • Set the rank from deffd_\text{eff}, not from NN: rank 800 at deff=355d_\text{eff} = 355 cut the evidence error from 1.3 to 0.18 nats, and no rank up to 800 helped at deff=1778d_\text{eff} = 1778 (rows gaussian-*-2000-matfree-r800).

  • The Laplace evidence of a Bernoulli GP is far easier, 0.010 nats with either preset at N=2000N = 2000 on the smooth kernel (rows bernoulli-smooth-2000-*).

  • Under NUTS, compare logz_std with one nat before trusting a stochastic evidence; with a fixed key the chain targets a fixed approximation of the posterior.

  • The defaults of the presets (rank 200, 50 probes, 30 or 100 Lanczos steps) are left as they are: no single rank was better across the problems measured, since the rank that works follows deffd_\text{eff}.