AD-EnKF with Adaptive Inflation for Data-Driven State Estimation

Jordan Ramassamy, Sixin Zhang, Selime Gürol, Serge GrattonarXiv 2026

TL;DR

When tracking hidden states (like weather) from noisy observations, the Auto-Differentiable Ensemble Kalman Filter (AD-EnKF) can learn system dynamics directly from data. However, in large systems where we can only afford small ensembles, it relies on a sensitive "inflation" hyperparameter that is slow and painful to tune by hand. This paper extends AD-EnKF to learn the inflation parameter jointly with the system dynamics—achieving better or comparable state estimation accuracy than hand-tuned grid search while running 5x faster.

What Problem Does This Paper Address?

In fields like geosciences and engineering, we often want to estimate the hidden state $x_k$ of a dynamical system (e.g., atmospheric temperature) from a sequence of partial, noisy observations $y_{1:T}$. A workhorse for this task is the Ensemble Kalman Filter (EnKF), which tracks the state's probability distribution using a Monte Carlo ensemble of $N$ particles.

Recently, the AD-EnKF framework made EnKF differentiable, allowing researchers to learn unknown system dynamics $\theta$ directly from observations by maximizing an approximate log-likelihood.

Here is the catch: for high-dimensional systems (dimension $n$), running a massive ensemble ($N \gg n$) is computationally out of the question. In the realistic "small ensemble" regime ($N \ll n$), EnKF suffers from sampling errors that cause the ensemble variance to collapse. To prevent this, practitioners use inflation ($\lambda$), which artificially spreads the ensemble apart. Tuning $\lambda$ via grid search is computationally expensive and problem-dependent. The authors ask: Can we just learn $\lambda$ automatically alongside $\theta$?

Methods

The authors extend the AD-EnKF objective function $\mathcal{L}_N^{1:T}(\theta, \lambda)$ to treat the inflation parameter $\lambda \in \mathbb{R}_+^*$ as a learnable parameter alongside the dynamical model parameters $\theta = (\alpha, \beta)$.

  • Differentiable Training: Using the reparametrization trick and Truncated Backpropagation Through Time (TBPTT), they differentiate through the stochastic EnKF steps—forecast, inflation, localization, and analysis—to jointly optimize $(\theta, \lambda)$ with Adam.
Parametric stochastic EnKF algorithm with inflation and localization
  • Theoretical Analysis: Adding $\lambda$ breaks the direct mathematical link between the AD-EnKF objective and the exact log-likelihood $\log p_\theta(y_{1:T})$. To check if the new objective still makes sense, the authors use a mean-field analysis ($N \to \infty$) in Linear-Gaussian systems to prove that $\mathcal{L}_N^{1:T}(\theta, \lambda)$ converges almost surely to a well-defined limit $\mathcal{L}^{1:T}(\theta, \lambda)$. They then analyze its global optima in a simplified 1D setting as $T \to \infty$.

Datasets

No external real-world datasets are used. All experiments are conducted on synthetic benchmarks generated from known ground-truth State-Space Models:

  1. 80D Linear-Gaussian SSM ([80D-LG]): An 80-dimensional linear system with tridiagonal dynamics and exponentially decaying model error covariance.
  2. 40D Lorenz 96 ([L96]): A classic 40-dimensional non-linear, chaotic dynamical system integrated using fourth-order Runge-Kutta (RK4).
  3. 1D Linear-Gaussian SSM ([1D-LG]): A scalar system with exact observations ($H=1, R=0$) used to validate the asymptotic theoretical results.

Key Insights and Ideas

  • The Coupling Effect: In the 1D asymptotic analysis ($N \to \infty, T \to \infty$), the authors uncover a multiplicative coupling between the inflation $\lambda$ and the model error parameter $\beta$. Specifically, the global optima satisfy $\hat{\alpha} = \alpha^*$ and $\hat{\lambda}\hat{\beta} = \beta^*$.
  • State Estimation Survives, Dynamics Identification Doesn't: Because of this coupling, $\hat{\beta}$ does not necessarily recover the true $\beta^*$. However, because their product $\hat{\lambda}\hat{\beta}$ recovers $\beta^*$, the learned filter's conditional state distributions still match the true Bayesian posterior $p_{\theta^*}(x_k|y_{1:k})$ for $k \ge 2$. In short: you can't trust $\hat{\beta}$ alone to tell you the true physics, but you can trust the filter to estimate the states accurately.
  • Escaping the Grid: On [80D-LG], adaptive inflation naturally discovers optimal $\lambda$ values between $1.74$ and $1.87$—well above the upper bound ($1.2$) of a typical hand-tuned grid search, explaining why it outperforms the grid.

Key Results

  • Better Accuracy in Small Ensembles ($N=10 \ll n$): Across localization radii $r \in \{1, 3, 5, 7, 9\}$, adaptive inflation consistently achieves the lowest test RMSE (for both forecast and analysis) on [80D-LG]. On [L96], it substantially beats no-inflation and matches or slightly improves upon grid search.
  • 5x Speedup: Adaptive inflation adds virtually zero overhead compared to no inflation—2,151s vs. 2,175s on [80D-LG], and 11,238s vs. 11,533s on [L96]. That makes it 5x faster than a 5-point grid search (11,416s and 57,080s, respectively).
  • Asymptotic Validation: On [1D-LG], as the time window $T$ grows from 200 to 20,000, the relative error between the learned and true forecast distributions drops steadily ($\delta^b$ falls from 0.2043 to 0.0167), and $\hat{\lambda}\hat{\beta}$ converges to $\beta^*$ even when $\hat{\beta}$ does not.

Limitations and Future Work

  • Not for Dynamics Recovery: Because of the $\lambda$-$\beta$ coupling, this approach is designed for state estimation rather than recovering the exact true noise parameters $\beta^*$ of the underlying dynamical model.
  • Constant Inflation: Unlike some Bayesian adaptive inflation methods, $\lambda$ is assumed to be spatially and temporally constant, which the authors note is more reasonable when learning from a single observation sequence of unknown dynamics.
  • Small-Ensemble Limits & Localization: Even with adaptive inflation, a noticeable accuracy gap remains on [80D-LG] compared to the exact $\theta^*$-Kalman Filter due to the $N=10$ ensemble size. Additionally, the localization radius $r$ is still hand-tuned; learning it jointly alongside $\lambda$ and $\theta$ is a natural next step.

Summary updated

BibTeX
@misc{ramassamy2026ad,
  author = {Jordan Ramassamy and Sixin Zhang and Selime Gürol and Serge Gratton},
  title = {{AD-EnKF with Adaptive Inflation for Data-Driven State Estimation}},
  year = {2026},
  eprint = {2612.01935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01935},
}
Figure