Calibration: exact oracles for the engine
GeoStack · application · 3 December 2026
Abstract¶
Three state-space problems whose answers are known: a linear-Gaussian state space, Lorenz-63 and Lorenz-96. They test the benchmark engine itself, so they are built first.
Problems with known answers¶
Calibration has no domain. Its three problems have posteriors known exactly, or by a long 4D-Var, so any failure is the engine’s, not the science’s. It is the proving ground the other four applications stand on.
A linear-Gaussian state space. With transition , observation operator and both noises Gaussian, the Kalman smoother gives the exact posterior :
Lorenz-63. Three variables and chaos, with the classic constants :
Lorenz-96. variables on a ring, with forcing and indices taken modulo , at and :
Outside the levels¶
Calibration’s problems run state to state: there is no radiance, grid or product, so no level transition. Each card is a cell with the level fixed and the rung free.
| Card | Truth → oracle | Headline scores | Status |
|---|---|---|---|
cal.lgss | a linear-Gaussian state space → the Kalman smoother, exact | SBC, coverage, distance to the posterior | 2a |
cal.l63 | Lorenz-63 → 4D-Var | RMSE(t) over about 9 Lyapunov times | 2a |
cal.l96 | Lorenz-96, 40-D and 72-D → 4D-Var | RMSE per block; forecast RMSE | 2a |
All three are in GeoBench’s first build phase, 2a, before any science card.
The stack¶
| Step | Libraries | Shelf |
|---|---|---|
| Simulators | vardax Lorenz63, Lorenz96, L63Prior, L96Prior; a linear-Gaussian simulator is a few lines | fit |
| Exact oracle | gaussx kalman_filter, rts_smoother | fit |
| 4D-Var oracle | vardax IncrementalFourDVar, GaussNewtonHessian, LaplaceCovariance | fit |
| Ensemble variants | filterax ensemble filters; pipekit_cycle EnsembleDACycle | fit |
| Fast rungs | geonnax emulators; pipekit_cycle DACycle, NeuralForward; vardax AmortizedPosterior | fit |
| Scores | vardax simulation_based_calibration; pipekit_evaluate Task, Oracle, Benchmark, evaluate | orch |
A ladder of difficulty¶
Calibration’s model is always right, so climbing its ladder tests only the inference.
| Problem | Relaxes | Kind |
|---|---|---|
| Linear-Gaussian | the reference: an exact posterior | — |
| Lorenz-63 | linearity: chaos in three dimensions; the posterior is no longer Gaussian | difficulty |
| Lorenz-96, 40-D | dimension: ensembles too small for the state | difficulty |
| Lorenz-96, 72-D | more dimension at the same ensemble size | difficulty |
The cycle¶
| Step | What it is here |
|---|---|
| 1 · Model | the three simulators |
| 2 · Inference | the Kalman smoother (exact); 4D-Var (the Lorenz oracle) |
| 3 · Emulator | a geonnax emulator of the Lorenz step |
| 4 · Emulator inference | DACycle with NeuralForward |
| 5 · Amortized | AmortizedPosterior, tested on Lorenz |
| 6 · Improve | one engine component swapped, scored against the one it replaces |
The suite: three cards¶
Simulation-based calibration¶
A posterior is calibrated when the truth looks like one more draw from it. Draw from the prior, simulate data, run the method for posterior draws, and record the rank of among them. Over many replicates, the rank is uniform on if and only if the method is calibrated (Talts et al., 2018):
A rank histogram that is U-shaped means overconfidence, one that is humped means underconfidence, and a slope means bias. On cal.lgss the exact oracle must pass its own test first: that checks the test before it checks any method.
Calibration goes first. Its oracles are exact, so any failure is the engine’s. Contracts, determinism, the scorers and the reference rules are all exercised before a science card runs.
The Lorenz cards measure predictability, not only fit. RMSE as a function of time over about nine Lyapunov times shows where an analysis stops constraining the forecast.
Every other suite reuses these oracles. Sensor fusion’s temporal card is a linear-Gaussian state space, and the ocean map cards’ 4D-Var is the Lorenz cards’ oracle at a larger size.
Sketch¶
A code sketch of the first card, cal.lgss: the names marked today exist; the arguments are sketched. Nothing here runs yet.
import gaussx
from vardax import simulation_based_calibration
# Shapes: T steps; D_x state dimensions; N_𝓔 posterior draws
# user
# x_t = A x_{t−1} + η_t, y_t = H x_t + ε_t, with (A, H, Σ_η, Σ_ε) known
truth, observations = simulate_lgss(params, key=key) # → (T, D_x), (T, D_y)
# today* (gaussx)
# p(x_t | y_{1:t}), then p(x_t | y_{1:T}): exact
filtered = gaussx.kalman_filter(params, observations)
oracle = gaussx.rts_smoother(params, filtered) # → (T, D_x) means, (T, D_x, D_x) covariances
# user
# the method under test: any engine variant, N_𝓔 draws
draws = method(observations, key=key) # → (N_𝓔, T, D_x)
# today* (vardax)
# the rank of the truth among the draws, per component: uniform if calibrated
ranks = simulation_based_calibration(draws, truth) # (N_𝓔, T, D_x) → (T, D_x)Gaps¶
Where it doesn’t fit¶
[1] The oracle’s name moved. The catalogue names
StrongFourDVaras the Lorenz oracle; today’s vardax hasIncrementalFourDVar,ReducedBasisFourDVarinstead. Proposed: NameIncrementalFourDVarin the cards, with enough outer loops to count as strong-constraint[2] Every oracle is near Gaussian. All three posteriors are Gaussian or close to it, so a method that only ever returns a Gaussian passes them; the flow and amortized posteriors are not stressed. Proposed: A fourth card with a known non-Gaussian posterior, such as a one-dimensional nonlinear state space with a long particle smoother as its oracle
Sources and status
Cards, transitions, tiers and the worked chains from the GeoBench catalogue (7 October 2026), with library names moved to today’s and checked against geostack’s capability indexes on 2 December 2026. How a card is run and scored is GeoBench; what the applications share is the Application stack. Simulation-based calibration follows S. Talts et al., Validating Bayesian inference algorithms with simulation-based calibration (arXiv:1804.06788, 2018).