Manuscript Offprint
arXiv:2610.17333Accounting for model error in ensemble variational data assimilation through learned generative dynamics
ABSTRACT
Many approaches have recently been proposed to combine data assimilation with machine learning for improved forecasts with geophysical models. Here, we focus on combining advanced sequential data assimilation schemes with a generative forecasting model which accounts for complex model errors. This generative model provides a stochastic approximation of the conditional distribution of the successor state given the current state. The proposed variational formulation is a novel one-step weak-constraint 4D-Var scheme in which a learned conditional stochastic forecast replaces the prescribed additive Gaussian model error representation. We derive and implement this formulation as an ensemble variational algorithm, the generative iterative ensemble Kalman filter (IEnKF-G), which generalises the iterative ensemble Kalman filter with additive Gaussian model error (IEnKF-Q). We extend the method to a smoother with an assimilation window spanning multiple time steps and propose a simplified variant.
The IEnKF-G is evaluated on a stochastic variant of the Lorenz 1963 model to assess its robustness. It is then tested on a multi-scale variant of the one-dimensional Lorenz 1996 model, in which the resolved variables are affected by model error originating from the hidden small-scale variables. The algorithm is then compared to an ensemble Kalman filter that adaptively mitigates model and sampling errors, and to the IEnKF-Q. The IEnKF-G is generally more accurate in the tested configurations, with substantial gains under partial observations and significant model error. This demonstrates the potential of generative data-driven models when paired with classical data assimilation methods, particularly when model error is substantial.
, v:0–36
1 of 36
1 | Introduction
Nowadays, machine learning enhances data assimilation (DA) in many ways to improve state estimation and forecasting within geophysical models (Cheng et al. 2023). One of the most straightforward approaches consists in using a deep learning surrogate of the dynamics within a classical data assimilation scheme. This can accelerate forecasts and provide tangent linear and adjoint models for variational DA (e.g., Farchi et al. 2021 2025, Durand et al. 2025, Solvik et al. 2025). In this context, these emulators are usually deterministic, needing external methods to quantify their uncertainty. In contrast, generative emulators (Finn et al. 2024, Price et al. 2025) offer a probabilistic representation of the forecast dynamics. Recently, they have been incorporated into sequential DA through particle filtering (Savary et al. 2026).
Here, we investigate their integration into iterative ensemble variational DA which may be scaled up to high-dimensional systems. Our approach treats the initial state and a set of parameters driving the generative forecast model as joint control variables, which are inferred from observations. This yields the generative iterative ensemble Kalman filter (IEnKF-G), which uses the learned stochastic dynamics to represent model uncertainty and which relies on observations to constrain its realisation within the assimilation window of each DA cycle. Towards that goal, we first briefly describe state-of-the-art sequential DA methods that can handle model error, possibly relying on machine learning to do so.
A more explicit approach is to augment the forecast model with an additive controllable error term, whose statistics are described by a model error covariance matrix Q. Weak-constraint 4D-Var does this by relaxing the perfect-model constraint and estimating, jointly with the state, a sequence of model error forcings (e.g., Sasaki 1970, Derber 1989, Zupanski 1997, Trémolet 2006 2007). In the ensemble variational setting, the iterative ensemble Kalman filter and smoother with additive Gaussian noise (IEnKF-Q and IEnKS-Q, respectively) extend those methods to additive model noise by augmenting propagated analysis anomalies with model-noise anomalies in the ensemble subspace (Sakov et al. 2018, Fillion et al. 2020).
Instead of prescribing a stochastic additive error, hybrid correction methods seek to learn a statistical closure term that corrects the physical model tendencies (e.g., Brajard et al. 2020, Bocquet et al. 2020, Farchi et al. 2023). In neural network 4D-Var formulations, the correction is embedded in the forecast model and trained either offline from analysis trajectories
2 of 36
, or online within the variational assimilation cycle, so that the DA system supplies both state estimates and model error information (e.g., Farchi et al. 2025). This strategy is attractive because it links model error correction to model development, but it also raises identifiability issues, since analysis increments can mix model error, observation bias, representativeness error, and DA-system deficiencies.
Score-based DA uses a neural network to represent the score, i.e. the gradient of the log-density of state or trajectory distributions, and then conditions the reverse generative process on observations. In contrast to Gaussian-based ensemble Kalman filters (EnKFs) or quadratic variational formulations, this offers a route to nonlinear and non-Gaussian posterior sampling, with the observation model possibly imposed only at inference time (Rozet and Louppe 2023a). Recent developments include applications to geophysical trajectories and quasi-geostrophic models (Rozet and Louppe 2023b), as well as ensemble score filters and latent score filters for high-dimensional or sparsely observed systems (Bao et al. 2024, Si and Chen 2025). Since the learned trajectory prior implicitly encodes the stochastic dynamics, score-based DA also partially replaces model error statistics with a learned distribution. In contrast to score-based DA, which conditions the generative model by guiding its reverse sampling dynamics, the IEnKF-G retains a classical ensemble variational scheme and exerts some control over the generative forecast model from the observations.
1.2 | Outline
In Sect. 2, we first recall the Bayesian principles of the iterative ensemble Kalman filters (IEnKFs), then discuss the introduction of a probabilistic forecast model. On these grounds, we develop the IEnKF-G, which generalises the IEnKFs to this probabilistic forecast model with the aim of estimating and counteracting model error. A smoother derived from the IEnKF-G is also introduced. In Section 3, we numerically evaluate the IEnKF-G with low-order chaotic dynamics using a forecast model with model error. The IEnKF-G is compared against state-of-the-art DA methods which mitigate or combat model error. Section 4 adds further discussion and concludes.
2 | Theory
In this theoretical section, we first formulate sequential DA in a Bayesian framework and recall the principles of iterative ensemble Kalman filters (IEnKFs). We then introduce a generative approximation of the conditional transition law of the assimilated state, allowing for uncertainty associated with unresolved variables or stochastic dynamics. On this basis, we derive the IEnKF-G, describe its ensemble implementation, and discuss its longer time window counterpart.
The DA problem is formulated from the forecast and observation equations:
3 of 36 respectively. In Eq. (1a), is an autonomous chaotic evolution model that depends on the state vector at time . The vector parametrises model error at and will hereafter be called the seed. In Eq. (1b), is the observation vector whose size may depend on , and is the observation operator. The observation errors are simply assumed to be additive, unbiased, white in time, and Gaussian with covariance matrix , since observation errors are not the focus of this work. Moreover, the sequences and are assumed independent of each other. For simplicity, we assume a constant duration between observation times.
2.1 | Bayesian sequential data assimilation
Our primary objective is to estimate the conditional filtering probability density function (pdf) , where is the state vector at time , and is the collection of observation vectors up to . Sequential DA seeks a recursion in time for this conditional pdf. We first write the marginalisation identity
Assuming Markovian state dynamics and conditionally independent observations given the states, Bayes' rule yields the recursion
This recursion is exact for the assumed probabilistic model. When the resolved reference dynamics are not Markovian, using a transition density conditioned only on the current state constitutes a Markov approximation. Later on, it will be convenient to work on the integrand of Eq. (2), and to focus on the one-step conditional pdf:
with an implicit dependence on for the sake of brevity. Focusing hereafter on the generic interval to avoid handling the subscripts, Eq. (4) equivalently reads
2.2 | Iterative ensemble Kalman filters
The factorisation (5) for the conditional pdf is suitable for sequential filtering. Yet, it can alternatively be written
so as to emphasise the smoothing pdf . This is leveraged in the following.
4 of 36
2.2.1 | Perfect model assumption
First, let us assume that the forecast model is perfectly known and deterministic so that the transition pdf from to reads . Hence, appearing as the first pdf on the right-hand side of Eq. (6) we have
and, for the second pdf on the right-hand side of Eq. (6), we have
Equation (8) suggests first solving the smoothing problem (before the filtering one) based on the cost function
so as to estimate a mode of the smoothing posterior. In the ensemble implementation, a smoothing ensemble is constructed around this estimate and propagated through ; the filtering estimate is then given by the mean of the propagated ensemble. This is the Bayesian rationale of the iterative ensemble Kalman filter (IEnKF, Sakov et al. 2012), whose detailed Bayesian derivation can be found in Bocquet and Sakov (2014). Under the idealised perfect model assumption, and applied to chaotic dynamics, it improves both smoothing and filtering accuracy as compared to the ensemble Kalman filter or smoother (Bocquet and Sakov 2013).
Assuming the prior and observation error distributions are Gaussian, i.e.
where , is the (positive definite) observation error covariance matrix at , and is the (positive definite) background error covariance matrix at . The IEnKF cost function associated with Eq. (9) then becomes
which coincides with a one-step cost function of strong-constraint 4D-Var. The vanilla IEnKF's analysis then relies on an ensemble implementation of a Gauss–Newton minimisation of Eq. (11).
5 of 36
2.2.2 | Imperfect model with Gaussian noise
Second, assume instead that the model is imperfect with Gaussian model noise. Accordingly, the cost associated with the transition pdf reads
with Q the (positive definite) Gaussian model error covariance matrix. In that case, the associated cost function can be obtained from Eq. (5) and the error statistics assumptions Eqs. (10) and (12):
which coincides with the cost function of a one-step weak-constraint 4D-Var. This cost function is the backbone of the IEnKF-Q (Sakov et al. 2018). Alternatively, especially when the observation operator is linear, it can be more efficient to rely on the alternative expression Eq. (6). Detailed derivations, including ensemble-based Gauss–Newton implementations of Eq. (13), are given in Sakov et al. (2018), Sakov and Bocquet (2018), Fillion et al. (2020).
2.3 | The generative iterative ensemble Kalman filter
2.3.1 | Imperfect model
Now, let us consider more general transition pdfs for and discuss the core of the main proposal of this paper. Let us assume that the transition pdf can be written as
where is the standard Gaussian pdf, and is the generative forecast map over . In particular, for a fixed initial state, varying the seed generates different possible successor states. In the subsequent section, we discuss how to define and obtain such a generative map.
2.3.2 | A probabilistic surrogate for the transition probability density
The transition pdf, , or more precisely a numerically efficient procedure to sample from it, can be obtained with a generative machine learning model trained on successive-state pairs of the dynamics. The samples in such a dataset can be collected from a long trajectory assuming ergodicity or from a batch of shorter trajectories.
Suitable generative methods include denoising diffusion (Ho et al. 2020, Karras et al. 2022), flow-matching (Lipman et al. 2023), or stochastic interpolants (Chen et al. 2024), in order to learn the stochastic dynamics that allow us to sample from the transition pdf . Irrespective of the details of their implementation, these methods can be seen as yielding a
6 of 36 map M,
which is related to through Eq. (14). Note that this definition of also matches the training of stochastic surrogate dynamics using loss functions based on ensemble scores such as the continuous ranked probability score (CRPS) or the energy score (Gneiting and Raftery 2007, Gneiting et al. 2008, Pacchiardi et al. 2024, Lang et al. 2026). Such a map has also been called engression by Shen and Meinshausen (2025). Marginalised over the seed , can be understood as stochastic dynamics, the many images of being parametrised by . We include the seed among the DA control variables and optimise it jointly with the initial state. This requires suitable smoothness of with respect to both arguments.
The particle filter approach of Savary et al. (2026) also exploits a learned transition distribution, but performs inference through observation-conditioned proposals and particle weighting. Here, inference is formulated as an optimisation problem in the augmented state–seed ensemble space.
The seed parametrises variability in the learned conditional distribution of the successor state given the current state. This variability can have different origins. If the tracked state omits dynamically relevant variables, its successor need not be uniquely determined by its current value, even when the full dynamics are deterministic. Intrinsically stochastic dynamics also generate conditional variability, including when their transition law is known exactly. For fully resolved deterministic Markov dynamics, however, the true conditional transition law is a Dirac measure. Moreover, finite training data, limited model capacity and imperfect optimisation can lead to a learned transition law that differs from this target, possibly including a non-zero spread. Such spread should not automatically be interpreted as calibrated uncertainty about the unknown dynamics (Chan et al. 2024). More generally, variability generated by a fixed trained model does not by itself quantify uncertainty in the learned transition law.
The seed can be defined in the ad hoc parameter space . Note that is often defined in state space, i.e. . Nonetheless, can be made to span a subspace of , and would hence be represented by fewer degrees of freedom than .
For what follows, the most important assumption is that, in those schemes, the training assumes that is independently sampled from the standard Gaussian distribution: , with the corresponding pdf
where is the Gaussian pdf and hereafter stands for the identity matrix in . This Gaussian distribution is a natural prior for and will be leveraged in the description of the IEnKF-G.
7 of 36
2.3.3 | Bayesian rationale and cost function
Since is represented by Eq. (14), we could use Eq. (5) and its negative logarithm to obtain a cost function. However, Eq. (14) involves an integral which is inconvenient to evaluate. That is why we will describe the DA problem in terms of the variables rather than and work with the associated one-step conditional pdf, rather than Eq. (5):
where is assumed a priori independent from and past observations. Equation (17) offers the Bayesian rationale for the IEnKF-G. With the aforementioned Gaussian assumptions on the errors and the seed , its associated cost function is defined by up to terms independent of and and reads
In the case where , the model error is Gaussian, i.e. , and , the (positive definite) model error covariance matrix has no dependence on , the latent representation is not needed to evaluate this transition density since Eq. (14) can be straightforwardly integrated out:
This leads back to the Bayesian foundation of the IEnKF-Q; hence, the IEnKF-G is a generalisation of the IEnKF-Q.
2.3.4 | Ensemble subspace
Following the derivations of, e.g., Sakov et al. (2018) for the IEnKF-Q, we now develop an ensemble method for the IEnKF-G from the cost function Eq. (18). We use an ensemble-based reduction strategy of the error covariances similar to that of the IEnKF and IEnKF-Q, with an ensemble size . As usual in ensemble methods, the empirical Gaussian prior is understood as a measure supported on the affine ensemble subspace and represented through standard ensemble coordinates (denoted hereafter), so that the possibly singular state-space covariance need not be inverted (Hunt et al. 2007). We assume the ensemble parametrisation:
for the state vectors where . The matrix is assumed to satisfy and , which is traditional for ensemble transform-based filters. Hence, is a matrix of normalised centred anomalies. For the seed, we
8 of 36 assume
where and is a centred matrix of seed anomalies, , whose normalisation is specified below. Hence, the seed has up to degrees of freedom at each time step.
2.3.5 | Seed subsampling, cycling, and statistical consistency
For , assume the rank of is . We normalise such that
where is the orthogonal projector onto the column space of . The orientation of this -dimensional subspace is drawn isotropically at random and will be redrawn independently at every assimilation cycle (relying on Algorithm 5 in Appendix D). Equation (22) fixes the total seed variance to in every cycle. Since the orientation is isotropic, is proportional to , and the trace constraint then yields : the construction is an unbiased, randomised low-rank representation of the seed prior covariance. Within one cycle, the seed is confined to an -dimensional subspace with variance per direction. Over the cycles, the successive subspaces sweep the whole seed space, and the average of builds up to .
By contrast, restricting the seed prior to unit variance within the subspace, , would underestimate this contribution by a factor in every cycle. Let us remark that, for , the seed members have squared norm (Algorithm 5), of the order of the typical value for seeds drawn from . This scaling keeps the initial seed-varying perturbations at a radius comparable to the typical training seeds.
As a consequence of the statistical assumption Eq. (22), the seed penalty term in the cost function Eq. (18) is modified to
where denotes the pseudo-inverse operator.
For , the cost function reduces to that of the IEnKF driven by . Yet, the augmented transform implementations differ and may yield a different finite-ensemble mean. Also note that is itself atypical under the training distribution (see Sect. 3.3).
2.3.6 | Implementation
Denoting and , we obtain the parametrised state at as
9 of 36 and the cost function Eq. (18) with the modification Eq. (23) now compactly reads
Define the tangent linear operators (Jacobians), , , and . The tangent linear of is given by with
where (augmented space). The smoothing state analysis is parametrised by . The analysis error covariance matrix for can be estimated via the inverse Hessian of approximated by first-order derivatives only:
Since
we obtain the updated smoothing normalised anomalies at :
corresponds to updated anomalies in the space . Its update Eq. (29) is used for smoothing but, critically, in the Gauss–Newton loop of the IEnKF-G’s algorithm as well. Note that each member of the ensemble has its own perturbed initial state and paired model error seed.
Further, using Eq. (25b), we obtain the filtering analysis normalised anomalies at :
10 of 36


FIGURE 1 | Schematic of the IEnKF-G/IEnKS-G cycling, characterised by a data assimilation window of time steps , and shifting the window by time steps between analyses. The left panel corresponds to the IEnKF-G with , ; the right panel corresponds to the IEnKS-G with , .
This linearised forecast Eq. (30) actually parallels the probabilistic result:
Equation (31) gives the exact filtering distribution as the pushforward of the augmented posterior. In the ensemble implementation, this posterior is approximated locally in the control coordinates and propagated to obtain a filtering estimate and its uncertainty; the resulting estimate need not coincide with the mode of the exact filtering distribution. encapsulates updated anomalies. Since the next cycle requires anomalies, is downsampled from to anomalies (see Algorithm 6). Alternatively we could compute the marginal so as to get an estimate of the anomalies which would specify a new subspace for , which could then be used to define the seed subspace of the subsequent analysis.
The main algorithm for the IEnKF-G implementing the aforementioned equations is given in Appendix A, Algorithm 2 for the transform variant, and Algorithm 3 for the bundle one. The cycling of the IEnKF-G is illustrated by the schematic in the left panel in Fig. 1. For the sake of comparison, the algorithm of the IEnKF-Q is also given in Appendix A, Algorithm 1 (adapted from Sakov et al. 2018).
The ensembles used to estimate sensitivities do not need to have the spread prescribed by the approximate posterior covariance. For example, setting in the transform variant as defined in Algorithm 2 gives the sensitivity anomalies , whereas an -member ensemble representing covariance requires anomalies . Algorithm 2 retains the mean of the last propagated sensitivities and reconstructs the analysis anomalies. Algorithm 3 instead performs
11 of 36 a final propagation with the posterior spread. For nonlinear dynamics, these constructions may yield different filtering means.
As in the IEnKF and the IEnKF-Q, the ensemble circumvents the use of the model adjoint, through either the bundle (finite differences) or the ensemble transform (secant) approaches (Sakov et al. 2012, Bocquet and Sakov 2012), both of which allow us to estimate the sensitivity matrix HMX. If the adjoint of the transition model and that of the observation operator are available, they can be used to compute the cost function gradients rather than computing the sensitivities with an ensemble. The ensemble sensitivity computation within the optimisation loop in the bundle variant, Algorithm 3, can then be replaced by the explicit computation of the gradient. In the absence of a sensitivity ensemble, the computation of the updated ensemble would then require estimating the Hessian or its action through tangent linear and adjoint products, or any ad hoc sampling method (e.g., Solvik et al. 2025).
The computational cost depends on the combined ensemble size : dense matrix factorisations cost , while each iteration requires a number of surrogate evaluations proportional to . Increasing therefore trades computational cost against a richer representation of the seed variability.
Finally, note that the method also relies on a local Gaussian approximation of the augmented smoothing posterior, which cannot represent distinct posterior modes, although nonlinear ensemble propagation can produce non-Gaussian forecast distributions.
2.4 | The simplified generative iterative ensemble Kalman smoother
We now consider -long data assimilation windows (DAWs) with observation batches, in contrast to the -long DAW considered so far. The goal is to extend the IEnKF-G to longer DAWs, which would yield the generative iterative ensemble Kalman smoother (IEnKS-G), following how the IEnKF was extended to the iterative ensemble Kalman smoother (IEnKS, Bocquet and Sakov 2014). Similarly to the weak-constraint 4D-Var, the associated cost function reads:
under the constraints, for :
The number of seed control variables grows linearly with , which may become numerically prohibitive. To reduce this cost, we use a single seed for all transitions within the DAW (e.g., Appendix B in Fillion et al. 2020), with prior . This replaces independent seeds by perfectly correlated seeds within the window and therefore changes the assumed joint law of the trajectory. The resulting optimisation problem is:
12 of 36 under the constraints, for :
The shared seed has unit prior variance in each component, giving the single penalty . By contrast, substituting into the sum of independent-seed penalties would give , corresponding to prior covariance for the shared seed. Lifting the constraints, the cost function can be written in the compact constraint-free form:
where denotes successive applications of with the same seed. When the DAW is shifted by observation intervals ( ), successive windows overlap and, if all the observation vectors within the window are assimilated, each one of them is assimilated times (assuming is a multiple of ). To avoid over-counting, the observation error covariance matrices in Eq. (33c) are then inflated, , with weights chosen such that, for each observation vector, the weights applied over its successive assimilations sum to one, e.g., . Following Bocquet and Sakov (2014), the resulting algorithm is called the (simplified) multiple data assimilation IEnKS-G (MDA IEnKS-G). At the end of a cycle, the most recent observation batches have only been partially assimilated. Filtering estimates, e.g., of , therefore require an additional, non-cycled balancing analysis in which these batches are assimilated with their complementary weights. When and only the latest observation vector is assimilated, the cost function becomes
In this case, the DAWs virtually overlap, but the observation batches are assimilated once and only once. The algorithm is called the (simplified) single data assimilation IEnKS-G (SDA IEnKS-G) following Bocquet and Sakov (2014). The cycling of the IEnKS-G is illustrated by the schematic in the right panel in Fig. 1. Seed persistence is assumed throughout the DAW but changes from one DA cycle to the next. The algorithm pseudocode of the simplified transform SDA IEnKS-G, i.e. in the case , can be found in Appendix A, Algorithm 4. For simplicity, only this variant of the IEnKS-G will be numerically evaluated.
3 | Numerical experiments
We evaluate the methods in the framework of DA twin experiments using two low-order chaotic models from which the true trajectories to compare to are generated. The first model is based on a stochastic variant of the three-variable Lorenz chaotic model (L63; Lorenz 1963). It provides an inexpensive test of IEnKF-G implementations but in challenging nonlinear and sparse conditions, although it may not be representative of realistic configurations. It is directly inspired by Chekroun et al. (2011), Savary et al. (2026).
13 of 36
The second model is the Grooms-Lee 2015 model (GL15; Grooms and Lee 2015). It can be seen as an idealised one-dimensional high-resolution model whose fine-scale and large-scale dynamics are both based on the Lorenz 1996 (L96) chaotic model (Lorenz and Emanuel 1998). Unlike the two-scale Lorenz 1996 model (L96-2s) introduced by Lorenz in his ECMWF predictability seminar paper, Predictability: A Problem Partly Solved (Lorenz 1996), which relies on an explicit time-scale ratio (parameter ), GL15 has no time-scale separation parameter; its scales are separated in space only. The reference trajectories used in the DA experiments consist of the large-scale variables of GL15. Although the full model is Markovian, these resolved variables need not be: the unresolved variables can introduce dependence on the past. We approximate their evolution by a transition model conditioned only on the current resolved state. However, learning this one-step conditional law does not explicitly recover the dependence on earlier resolved states.
We have also applied the IEnKF-G and competing DA methods to the more common L96-2s model to the same extent as the GL15 experiments. However, the results are qualitatively very similar to those obtained for GL15, so that we omit them to avoid repetition. The model parameters are consolidated in Table 1, along with the observational parameters that will be used in the DA experiments. The configurations and the model parameters of GL15 that are chosen result from a compromise between maintaining the typical chaotic behaviour of a one-dimensional L96 model (Lyapunov spectrum, autocorrelation) and a significant impact of model error on the dynamics forecasts.
TABLE 1 | Models' specifications. The Lyapunov time of L63 is for our stochastic L63. The Lyapunov time of the large-scale GL15 is estimated using the approximate tangent dynamics in Appendix C.
| Model | (full dim.) | Parameters | Lyap. time | H | ||
|---|---|---|---|---|---|---|
| L63 | 3 (3) | 1.17 | 0.10, 0.25, 0.50 | xyz, xz | 2 | |
| GL15 | 40 (160) | 1.14 | 0.05 | all var. | 1 |
3.1 | A stochastic Lorenz 1963 model
The L63 variant we consider incorporates model noise which multiplicatively depends on the state variables (Chekroun et al. 2011, Savary et al. 2026):
where , , . Each equation is perturbed by linearly multiplicative noise in the Itô interpretation, with its own independent Wiener process , which is scaled with noise amplitude . Owing to its state-dependent stochastic model error, the model is integrated using a Milstein scheme with an integration time step of .
14 of 36
3.2 | The Grooms-Lee 2015 model
The GL15 model evolves a single fine-grid prognostic vector of dimension , where is the number of large-scale grid points and is the scale-separation factor. The governing equation is
where is a linear projection from the fine grid to the large-scale, coarse grid, is its transpose, is the forcing scale, and controls the strength of the small-scale nonlinear dynamics. The fine-scale nonlinear operator is defined component-wise by
with periodic indexing. The large-scale variable is obtained by projection:
and the large-scale nonlinear operator is
again with periodic indexing. Thus the model can be written component-wise as
The large-scale component of v on the fine grid is , and the corresponding small-scale residual is . Following Grooms and Lee (2015), Grooms (2021) we choose for a projection onto the first Fourier modes followed by an inverse Fourier transform to the -dimensional state space. For even and , we retain the fine-grid cosine component at the coarse-grid Nyquist wavenumber , divide its amplitude by , and discard the corresponding sine component. This extends the construction of Grooms and Lee (2015) to even while preserving the normalisation
As a result, when , the large-scale variable obeys the single-scale L96 equation
The true dynamics will be defined by the sequence of the large-scale state vectors .
15 of 36
In the experiments, we choose , , , . The model is integrated using a fourth-order Runge–Kutta scheme with an integration time step of . A trajectory of the large-scale model together with the corresponding fine-scale trajectory (Hovmöller plots) is illustrated in Appendix C. Estimated global characteristics of the dynamics are also reported.
3.3 | Training the surrogate models
The L63 neural network is based on a simple dense architecture, whereas the large-scale GL15 neural network adopts a simple convolutional architecture. For both dynamics, we have trained probabilistic surrogate models using (i) a stochastic model trained with an ensemble score-based loss function, (ii) a flow-matching model based on the formulation of interpolants (Lipman et al. 2023, Chen et al. 2024, Albergo et al. 2025). These variants of trained generative surrogate models were assessed using their forecast skill. The two approaches gave similar forecast root-mean-square errors (RMSEs). In our tests, flow-matching models trained faster but had slower inference. We therefore use the ensemble score-trained models for the repeated ensemble forecasts required in our DA experiments.
The surrogates used in the reported DA experiments were trained with the fair energy score based on the Euclidean norm, as detailed in Appendix B. In the GL15 case, a training based on the fair CRPS was also tested. Yet, the large-scale GL15 surrogates trained with the fair CRPS and the fair energy score yielded indistinguishable forecast performance in the tested configurations. This similarity may reflect the short-range correlations in GL15 and the spatial inductive bias of the convolutional architecture. Hence, ensemble score-trained is how we will qualify those surrogates. This is detailed in Appendix B.
For comparison we also trained deterministic models. One particular deterministic model is the stochastic surrogate but specialised to the case . We empirically found that its forecast skill is at least as good as that of the deterministic surrogates. Nonetheless, if is nonlinear, generally departs from or from the conditional mode at . Moreover, in high dimension, is atypical, and its neighbourhood is rarely sampled during training, because the Gaussian seed distribution concentrates near radius .
Finally note that the training, validation, test, and DA datasets are mutually independent.
3.4 | Baseline data assimilation methods, hyperparameter tuning, and scores
The IEnKF-G's performance is compared to three state-of-the-art DA methods.
The EnKF-AdInf method (Raanes et al. 2019), as defined in their Section 5, is a well-tuned EnKF which accounts for both sampling and model error via an adaptive multiplicative inflation of the prior. As a result, the EnKF-AdInf does not require any hyperparameter tuning, and is hence very fast to evaluate with little overhead computational cost. The EnKF-AdInf is representative of the mitigation strategy that accounts for model errors without correcting them.
16 of 36
The IEnKF-Q (Sakov et al. 2018) is based on the IEnKF. It handles nonlinearity over one time step like the IEnKF-G, but assumes that model error is additive and Gaussian. As explained earlier, the Bayesian formulations of the IEnKF-Q and IEnKF-G coincide for additive Gaussian model error with state-independent covariance . Their ensemble implementations may nevertheless differ for nonlinear operators, since they use different ensembles to estimate sensitivities. However, it is not adaptive in its basic design. Hence, both the multiplicative prior inflation and the magnitude of the additive Gaussian noise are tuned. The selected values of the hyperparameters are chosen to maximise the filtering accuracy. As a result of those explicit parameters, the IEnKF-Q is numerically costly to evaluate. The target model error covariance is . It is represented by a centred ensemble of perturbations (obtained from Algorithm 5). For the L63 experiments, , so that the seed space is the full state space. For the GL15 experiments, , so that empirical covariance matches the targeted .
Since we will test the simplified SDA IEnKS-G with , we choose to use the SDA IEnKS as defined by Bocquet and Sakov (2014) as another baseline with a similar -long DAW. With the IEnKS, model error is only mitigated through multiplicative inflation . The selected is chosen to maximise the filtering accuracy. We need to specify the forecast model used by these three advanced but classical DA methods. In the case of the L63 model, the EnKF-AdInf, the IEnKF-Q and the IEnKS rely on the exact L63 drift without the stochastic perturbations. In the case of the GL15 model, these methods rely on the deterministic model which results from the learned stochastic model by setting the seed to . We found this model to be the most accurate of all the deterministic models we experimented with. In particular, we checked that it is at least as accurate as a second-order and a third-order polynomial Wilks statistical correction to the L96 model (Wilks 2005).
For the IEnKF-G and IEnKS-G, the retained multiplicative inflation parameter maximises the filtering accuracy. However, we found that with our low-order models, this just offers a slight refinement over the case without inflation (see Table 2). The exception is the case which amounts to using a deterministic model and where some small but non-negligible multiplicative inflation is expected (). In all the experiments, we report the results of their transform variants.
In all DA methods using multiplicative inflation, the state ensemble anomalies are multiplied by immediately before each analysis. The seed anomalies are unchanged. Table 2 compares the hyperparameters of the DA methods.
TABLE 2 | Comparison of hyperparameters for the DA methods. is the amplitude of Gaussian additive noise, is the multiplicative inflation parameter. opt. means optimised, mult. infl. means multiplicative inflation, add. err. means additive error.
| Method | DAW | Addressing model error | Parameter range | ||
|---|---|---|---|---|---|
| Coping mechanism | Further tuning | L63 | GL15 | ||
| EnKF-AdInf | adaptive mult. infl. | ||||
| IEnKF-Q | opt. Gaussian add. err. | ||||
| - | |||||
| SDA IEnKS | |||||
| IEnKF-G | opt. generative seed | ||||
| SDA IEnKS-G | opt. generative seed | ||||
17 of 36
The runs of all DA methods are -time steps long after a burn-in of 1024 time steps. All DA method runs are replicated 10 times except for the IEnKF-Q runs which are replicated 5 times, each run with a full set of independent random seeds. The RMSE is used as the main statistical indicator. Assuming is the analysis ensemble at , its mean, and the truth at , the RMSE is defined here by
where is the coordinate-averaged Euclidean norm. The (coordinate-averaged) fair CRPS is also used and defined here by
where
and where is the coordinate-averaged norm. Because the runs are replicated, both the mean and the standard deviation across the replicated time-averaged scores are provided.
3.5 | Data assimilation experiments with the Lorenz 1963 model
The DA experiments with the stochastic L63 model explore the applicability of the IEnKF-G under increasingly nonlinear conditions. We consider three observation intervals, , corresponding to weakly, mildly, and strongly nonlinear regimes, respectively. Two observation configurations are studied: xyz, where all three variables are observed, and xz, where only the first and last variables are observed. The observation errors are all independent, unbiased and Gaussian, with standard deviation . Those values of and are taken from the DA literature (e.g., Bocquet 2011).
We choose for the IEnKF-G so as to span the full seed space. The RMSEs are reported in Fig. 2 as a function of the ensemble size ranging from 2 to 6. For the IEnKF-Q, we choose , in accordance with the choice . Both the filtering RMSE (at present time) and the smoothing RMSE ( in the past) for the IEnKF-G and the IEnKF-Q are displayed.
Note that in the case multimodality can often emerge in the cost functions. As a result, the Gauss–Newton scheme of the IEnKF-Q and the IEnKF-G may occasionally fail. That is why we used variants in the implementation of both the IEnKF-Q and the IEnKF-G where the Gauss–Newton optimisation loop is replaced with a trust-region method that improves robustness in these significantly nonlinear cases. We used the trust-region reflective method implemented in SciPy's least_squares solver (method='trf'). This is only helpful in the case and it is not leveraged in the GL15 set of experiments.
18 of 36
Observation configuration xyz

Observation configuration xz

(c)
(d)
(e)
(f)
IEnKF-G (smoothing)
IEnKF-G (filtering)
EnKF-AdInf (filtering)
IEnKF-Q (smoothing)
IEnKF-Q (filtering)
FIGURE 2 | Data assimilation methods comparison using the stochastic L63 model, in two observation configurations (xyz, xz) and three time intervals between observations. Solid and dotted curves denote filtering and one-step smoothing RMSEs, respectively. The shaded areas around the curves indicate plus or minus twice the standard deviation across replicates. Missing RMSE values indicate divergence of the DA runs.
Figure 2 shows that the IEnKF-G reaches nearly constant RMSEs from , whereas the EnKF-AdInf remains strongly sensitive to ensemble size, particularly at longer observation intervals. The IEnKF-Q also shows relatively little sensitivity to . This behaviour is consistent with the control over the seed and the Gaussian perturbation in both iterative methods: increasing the state ensemble alone is less consequential when directions of model error are already represented.
For , the IEnKF-G improves on the IEnKF-Q in both filtering and smoothing across all six configurations, but the magnitude of the improvement depends strongly on the observation setup. With full observations and , the filtering scores become comparable, and the EnKF-AdInf is competitive at the largest ensemble sizes. With partial observations at the same interval, however, the IEnKF-G maintains filtering and smoothing RMSEs near 2.5 and 2.3, compared with approximately 3.2 and 3.4 for the IEnKF-Q. This contrast suggests that the learned transition model is especially valuable when observations leave part of the state to be constrained indirectly through the dynamics.
The smoothing results further distinguish the methods. The IEnKF-G consistently benefits from the additional observation batch, whereas the IEnKF-Q obtains little benefit, and sometimes deteriorates, at the longest observation
19 of 36

FIGURE 3 | Data assimilation methods comparison using the large-scale GL15 model: forecast RMSEs of the IEnKF-G, IEnKF-Q and EnKF-AdInf, as a function of the forecast lead time in units of . The shaded areas around the curves indicate plus or minus twice the standard deviation across replicates. Note that the RMSEs at time 0 are the filtering RMSEs.
interval. Thus, the generative formulation improves not only the current-state estimate but also the use of observations to reconstruct the preceding state.
3.6 | Data assimilation experiments with the Grooms-Lee 2015 model
The GL15 experiments extend the assessment to a spatially distributed system with resolved variables.
In the first experiment, we compare the IEnKF-G to the baselines when the system is fully observed every with statistically independent unbiased Gaussian observation errors of standard deviation . The ensemble size for the three ensemble DA methods is , which avoids the need for localisation. We compute the forecast RMSEs as a function of the forecast lead time. They are displayed in Fig. 3. The IEnKF-G is run with , spanning the full seed space, and with . We forecast the ensembles for 64 time steps starting from the filtering ensemble and holding the seed to ; this corresponds to Lyapunov times. The filtering ensembles of the EnKF-AdInf are forecasted over the same lead time. The IEnKF-Q is run with , spanning the full perturbation space. Its filtering ensemble is propagated over the same lead time using the deterministic model with seed .
The IEnKF-G with yields the lowest RMSE throughout the lead times shown in Fig. 3, followed by the IEnKF-Q, the IEnKF-G with , and the EnKF-AdInf. At zero lead time, controlling the seed reduces the RMSE from approximately 0.20 to 0.17, and its advantage persists to . The IEnKF-Q also improves on the deterministic configuration of the IEnKF-G, confirming the benefit of explicitly accounting for model error. The further improvement with supports the use of the learned conditional variability in the analysis.
20 of 36


FIGURE 4 | Averaged RMSEs (a) and averaged CRPS (b) of the IEnKF-G as a function of , applied to the large-scale GL15 model. The shaded areas around the curves indicate plus or minus twice the standard deviation across replicates.
In the second experiment, we vary the seed ensemble size while keeping and the same observation setup. For , this provides independent seed perturbation directions, with the same trace-preserving normalisation and resampling of their orientation as above. The filtering and one-step smoothing RMSEs are shown in Fig. 4a, and the corresponding ensemble CRPS values in Fig. 4b. The smoothing CRPS is computed from the -member smoothing ensemble of the IEnKF-G, i.e. using Eq. (29); Eq. (41b) must be adapted accordingly, in particular .
Most of the RMSE reduction occurs between and , with diminishing gains thereafter for both filtering and smoothing. Thus, a small seed ensemble already captures much of the benefit of model error control in this configuration; because its orientation is resampled, this does not imply that a fixed low-dimensional seed subspace would suffice. The filtering CRPS follows the same overall improvement. By contrast, the smoothing CRPS reaches its minimum around and then increases, eventually exceeding the filtering CRPS at , despite consistently lower smoothing RMSEs. The smoothing ensemble is underdispersive at , with a spreadskill ratio of approximately 0.77. This is consistent with its poorer CRPS despite a lower ensemble-mean RMSE. The increasingly wide seed representation and ensemble approximations may contribute to this difference.
In the third experiment, we evaluate the simplified SDA IEnKS-G with , and in the range 1–41. Figure 5 reports the RMSE as a function of the lag : denotes filtering, and denotes estimation of the state in the past. Whenever , the lag- state estimates for are not prescribed by Algorithm 4; they are taken as the successive means of the sensitivity ensemble propagated through the entire DAW (other choices are possible). Each SDA update assimilates only the latest observation batch, with earlier observations accounted for through the cycled prior, and uses a single shared seed within the window. The baseline is the SDA IEnKS with the deterministic surrogate and tuned multiplicative inflation, but no explicit model error control.
Figure 5 shows that seed control strengthens the benefit of smoothing. For , the IEnKS-G and the IEnKS perform equally within the error margin. This is expected since both methods coincide in their cost function, being both
21 of 36

FIGURE 5 | Averaged RMSEs of the SDA IEnKS-G and of the SDA IEnKS applied to the large-scale GL15 model, for several values of , as a function of the lag with . The shaded areas around the curves indicate plus or minus twice the standard deviation across replicates.
deterministic and relying on the surrogate generative model with seed . Yet, again, their ensemble implementations differ slightly: for , the IEnKS-G retains one additional central column in its sensitivity ensemble used in the Gauss–Newton solver.
For , the IEnKS-G outperforms the IEnKS at every displayed lag, with little additional improvement from to 41. At , the RMSE decreases from approximately 0.175 at to 0.13 at , about 20% below the IEnKS at the latter lag. These results show that the shared-seed approximation can improve both filtering and retrospective state estimation, provided enough seed directions are controlled. Comparing to the IEnKF-G, i.e. for , one notices that the IEnKS-G is less accurate at , . This degradation increases with (not shown): the shared-seed approximation over the DAW likely costs accuracy at short lags. For longer (not shown), the skill of the IEnKS-G keeps improving at a slow pace, while the IEnKS skill significantly degrades. The IEnKS-G skill eventually degrades beyond (not shown), presumably due to the loss of numerical accuracy and the shared-seed approximation.
4 | Discussion and conclusion
In this paper, we have introduced the generative iterative ensemble Kalman filter (IEnKF-G), which combines a learned generative transition model with iterative ensemble variational DA. The initial state and the Gaussian seed driving the surrogate are jointly inferred from observations, allowing for state-dependent, non-Gaussian model uncertainty without evaluating the transition density. The IEnKF-G method generalises the IEnKF-Q, while retaining a local Gaussian approximation of the augmented posterior. We have also proposed a simplified variant of the generative iterative ensemble Kalman smoother (IEnKS-G), in which a single shared seed is controlled across a multi-step DAW.
22 of 36
The experiments with stochastic L63 and the resolved GL15 dynamics demonstrate the benefit of correcting model error through the seed. The IEnKF-G generally improves on the IEnKF-Q and the EnKF-AdInf, with substantial gains in partially observed, strongly nonlinear L63 configurations and sustained forecast improvements for GL15. In the latter, a small seed ensemble with resampled perturbation directions captures most of the benefit, and the IEnKS-G further improves retrospective state estimation. However, lower smoothing RMSEs do not always translate into lower CRPS values. These results encourage further investigation of the ensemble reliability alongside the state estimation accuracy.
Several theoretical extensions could be considered. In a correlated-prior variant, the updated seed would be retained across cycles, together with its correlations with the state. A single ensemble of state–seed pairs would then avoid the ensemble reduction required by the IEnKF-G. Such persistence would introduce temporal memory, but also an additional modelling assumption that is not determined by learning a one-step transition law. Another extension would supplement the generative forecast with independent additive Gaussian noise of covariance Q. This could account for residual errors not adequately represented by the surrogate. Formally, this noise could be absorbed into an enlarged seed, so this extension would remain a particular case of the generative framework. Its interest would lie in separating learned conditional variability from a prescribed residual error component.
The same variational formulation could also underpin an ensemble of data assimilations (EDA, e.g., Bonavita et al. 2012). Each member would solve a weak-constraint 4D-Var problem in which the learned transition surrogate replaces the additive Gaussian model error representation. The control variables would be the initial state and the seed, or a sequence of seeds for a multi-step window. Perturbing the observations and the centres of both the state and seed prior penalties according to their prescribed covariances would generate an ensemble of optimised trajectories. Automatic differentiation through the surrogate could supply the gradients required by these generalised weak-constraint 4D-Var problems. The ensemble of solutions would provide a way to estimate analysis uncertainty, although the ensemble would not generally constitute exact posterior samples for nonlinear dynamics. Within each EDA member, a single seed shared across the time steps of the assimilation window could reduce the control dimension, with the same temporal modelling qualification as for the simplified IEnKS-G. This scheme would generalise the bias-correcting weak-constraint 4D-Var currently implemented in the Integrated Forecasting System (Laloyaux et al. 2020).
Finally, scaling up the IEnKF-G and IEnKS-G would require controlling sampling errors and computational cost. Localisation of state covariances is a natural starting point, but the seed representation also deserves attention. Its prescribed prior covariance is already the identity; localisation would concern its finite-ensemble approximation and the seed and state–seed correlations induced by assimilation. If seed components have a spatially local influence through the surrogate, joint local analyses could constrain both state and seed using nearby observations. For a non-local latent representation, a possible alternative would be to localise the covariances of the propagated seed perturbations in physical space (Malar-tic et al. 2022). Either way, localisation should treat the state–seed coupling consistently and, for the smoother, account
23 of 36 for propagation across the DAW. Assessing these choices with calibrated surrogates in higher-dimensional systems is a necessary next step.
Author Contributions
MB performed the mathematical, algorithmic, and numerical analysis. MB and TF discussed the theory and numerical results. All the authors worked on the structure of the manuscript. All the authors reviewed and edited the manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
Declaration of Generative AI and AI-assisted technologies in the writing process
No AI was used in the ideas, concepts, mathematical derivations, algorithmic developments. AI was used to find typos and inconsistencies in the notation. It was used to check the correctness and consistency of the algorithms. It was used to suggest rephrasing several paragraphs of the main text. The AI tools used for the reviews are GPT-6 and Opus 5.5. After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
Code availability
The key algorithmic pieces of code will be made publicly available upon acceptance of the manuscript.
Acknowledgments
The authors are grateful to Alban Farchi for an in-depth review of the manuscript and for his suggestions. Tobias S. Finn and Marc Bocquet acknowledge the support of France 2030 PEPR Maths-Vives, grant ANR-23-EXMA-0003, project Climaths/GenClimEx. Tobias S. Finn, Sibo Cheng, and Marc Bocquet acknowledge the support of France 2030 PEPR Maths-Vives, grant ANR-24-EXMA-0002, project DRUIDS. Sibo Cheng acknowledges the support of the French Agence Nationale de la Recherche (ANR) under reference ANR-22-CPJ2-0143-01. This work has also benefited from the project Learning efficient Data Assimilation from Artificial Intelligence (DAbyAI) supported by NVIDIA and their Academic Grant Program through the grant of two RTX 6000 Ada GPUs that were intensively used in the numerical experiments of this work. CEREA is a member of Institut Pierre-Simon Laplace (IPSL).
References
Albergo MS, Boffi NM, Vanden-Eijnden E. 2025. Stochastic interpolants: A unifying framework for flows and diffusions. J. Mach. Learn. Res. 26(209): 1–80, URL http://jmlr.org/papers/v26/23-1605.html.
Anderson JL. 2007. An adaptive covariance inflation error correction algorithm for ensemble filters. Tellus A 59: 210–224, doi:10.1111/j.1600-0870.2006.00216.x.
Anderson JL, Anderson SL. 1999. A Monte Carlo implementation of the nonlinear filtering problem to produce ensemble assimilations and forecasts. Mon. Wea. Rev. 127: 2741–2758, doi:10.1175/1520-0493(1999)127<2741:AMCIOT>2.0.CO;2.
24 of 36
,
Bao F, Zhang Z, Zhang G. 2024. An ensemble score filter for tracking high-dimensional nonlinear dynamical systems. Comput. Methods Appl. Mech. Eng. 432: 117 447, doi:10.1016/j.cma.2024.117447, URL https://www.sciencedirect.com/science/article/pii/S0045782524007023.
Bocquet M. 2011. Ensemble Kalman filtering without the intrinsic need for inflation. Nonlin. Processes Geophys. 18: 735–750, doi:10.5194/npg-18-735-2011.
Bocquet M, Brajard J, Carrassi A, Bertino L. 2020. Bayesian inference of chaotic dynamics by merging data assimilation, machine learning and expectation-maximization. Found. Data Sci. 2: 55–80, doi:10.3934/fods.2020004.
Bocquet M, Sakov P. 2012. Combining inflation-free and iterative ensemble Kalman filters for strongly nonlinear systems. Nonlin. Processes Geophys. 19: 383–399, doi:10.5194/npg-19-383-2012.
Bocquet M, Sakov P. 2013. Joint state and parameter estimation with an iterative ensemble Kalman smoother. Nonlin. Processes Geophys. 20: 803–818, doi:10.5194/npg-20-803-2013.
Bocquet M, Sakov P. 2014. An iterative ensemble Kalman smoother. Q. J. R. Meteorol. Soc. 140: 1521–1535, doi:10.1002/qj.2236.
Bonavita M, Isaksen L, Hölm E. 2012. On the use of EDA background error variances in the ECMWF 4D-Var. Q. J. R. Meteorol. Soc. 138: 1540–1559, doi:10.1002/qj.1899.
Brajard J, Carrassi A, Bocquet M, Bertino L. 2020. Combining data assimilation and machine learning to emulate a dynamical model from sparse and noisy observations: a case study with the Lorenz 96 model. J. Comput. Sci. 44: 101 171, doi:10.1016/j.jocs.2020.101171.
Chan MA, Molina MJ, Metzler CA. 2024. Estimating epistemic and aleatoric uncertainty with a single model. In: Advances in Neural Information Processing Systems, vol. 37, Globerson A, Mackey L, Belgrave D, Fan A, Paquet U, Tomczak J, Zhang C (eds). Curran Associates, Inc., pp. 109 845–109 870, doi:10.52202/079017-3485, URL https://proceedings.neurips.cc/paper_files/paper/2024/file/c693c3ff83259aebcd55a41ab19a5d84-Paper-Conference.pdf.
Chekroun MD, Simonnet E, Ghil M. 2011. Stochastic climate dynamics: Random attractors and time-dependent invariant measures. Physica D 240: 1685–1700, doi:10.1016/j.physd.2011.06.005.
Chen Y, Goldstein M, Hua M, Albergo MS, Boffi NM, Vanden-Eijnden E. 2024. Probabilistic forecasting with stochastic interpolants and Föllmer processes. In: Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research, vol. 235, Salakhutdinov R, Kolter Z, Heller K, Weller A, Oliver N, Scarlett J, Berkenkamp F (eds). PMLR, pp. 6728–6756, URL https://proceedings.mlr.press/v235/chen24n.html.
Cheng S, Quilodran-Casas C, Ouala S, Farchi A, Liu C, Tandeo P, Fablet R, Lucor D, Iooss B, Brajard J, Xiao D, Janjic T, Ding W, Guo Y, Carrassi A, Bocquet M, Arcucci R. 2023. Machine learning with data assimilation and uncertainty quantification for dynamical systems: a review. IEEE/CAA J. Autom. Sin. 10: 1361–1387, doi:10.1109/JAS.2023.123537.
Derber JC. 1989. A variational continuous assimilation technique. Mon. Wea. Rev. 117: 2437–2446, doi:10.1175/1520-0493(1989)117<2437:AVCAT>2.0.CO;2.
Durand C, Finn TS, Farchi A, Bocquet M, Brajard J, Bertino L. 2025. Four-dimensional variational data assimilation with a sea-ice thickness emulator. The Cryosphere 19: 5613–5637, doi:10.5194/tc-19-5613-2025, URL https://tc.copernicus.org/articles/19/5613/2025/.
Farchi A, Chrust M, Bocquet M, Bonavita M. 2025. Development of an offline and online hybrid model for the integrated forecasting system. Q. J. R. Meteorol. Soc. 151: e4934, doi:10.1002/qj.4934, URL https://rmets.onlinelibrary.wiley.com/doi/abs/10.1002/qj.4934.
Farchi A, Chrust M, Bocquet M, Laloyaux P, Bonavita M. 2023. Online model error correction with neural networks in the incremental 4D-Var framework. J. Adv. Model. Earth Syst. 15: e2022MS003474, doi:10.1029/2022MS003474.
Farchi A, Laloyaux P, Bonavita M, Bocquet M. 2021. Using machine learning to correct model error in data assimilation and forecast applications. Q. J. R. Meteorol. Soc. 147: 3067–3084, doi:10.1002/qj.4116.
Ferro CAT. 2014. Fair scores for ensemble forecasts. Q. J. R. Meteorol. Soc. 140: 1917–1923, doi:10.1002/qj.2270.
Fillion A, Bocquet M, Gratton S, Gürol S, Sakov P. 2020. An iterative ensemble Kalman smoother in presence of additive model error. SIAM/ASA J. Uncertain. Quantif. 8: 198–228, doi:10.1137/19M1244147.
Finn TS, Durand C, Farchi A, Bocquet M, Rampal P, Carrassi A. 2024. Generative diffusion for regional surrogate models from sea-ice simulations. J. Adv. Model. Earth Syst. 16: e2024MS004395, doi:10.1029/2024MS004395.
Gneiting T, Raftery AE. 2007. Strictly proper scoring rules, prediction, and estimation. J. Am. Stat. Assoc. 102: 359–378, doi:10.1198/016214506000001437.
Gneiting T, Stanberry LI, Grimit EP, Held L, Johnson NA. 2008. Assessing probabilistic forecasts of multivariate quantities, with an application to ensemble predictions of surface winds. TEST 17(2): 211–235, doi:10.1007/s11749-008-0114-x.
Grooms I. 2021. Analog ensemble data assimilation and a method for constructing analogs with variational autoencoders. Q. J. R. Meteorol. Soc. 147: 139–149, doi:10.1002/qj.3910.
Grooms I, Lee Y. 2015. A framework for variational data assimilation with superparameterization. Nonlin. Processes Geophys. 22: 601–611, doi:10.5194/npg-22-601-2015, URL https://npg.copernicus.org/articles/22/601/2015/.
He K, Zhang X, Ren S, Sun J. 2016. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. pp. 770–778, doi:10.1109/CVPR.2016.90.
Ho J, Jain A, Abbeel P. 2020. Denoising diffusion probabilistic models. In: Advances in Neural Information Processing Systems, vol. 33, Larochelle H, Ranzato M, Hadsell R, Balcan M, Lin H (eds). Curran Associates, Inc., pp. 6840–6851, URL https://proceedings.neurips.cc/paper_files/paper/2020/file/4c5bcfec8584af0d967f1ab10179ca4b-Paper.pdf.
Hunt BR, Kostelich EJ, Szunyogh I. 2007. Efficient data assimilation for spatiotemporal chaos: A local ensemble transform Kalman filter. Physica D 230: 112–126, doi:10.1016/j.physd.2006.11.008.
25 of 36
Karras T, Aittala M, Aila T, Laine S. 2022. Elucidating the design space of diffusion-based generative models. In: Advances in Neural Information Processing Systems, vol. 35, Koyejo S, Mohamed S, Agarwal A, Belgrave D, Cho K, Oh A (eds). Curran Associates, Inc., pp. 26 565–26 577, URL https://proceedings.neurips.cc/paper_files/paper/2022/file/a98846e9d9cc01cfb87eb694d946ce6b-Paper-Conference.pdf.
Laloyaux P, Bonavita M, Dahoui M, Farnan J, Healy S, Hólm E, Lang STK. 2020. Towards an unbiased stratospheric analysis. Q. J. R. Meteorol. Soc. 146: 2392–2409, doi:10.1002/qj.3798.
Lang S, Alexe M, Clare MCA, Roberts C, Adewoyin R, Ben Bouallègue Z, Chantry M, Dramsch J, Dueben PD, Hahner S, Maciel P, Prieto-Nemesio A, O'Brien C, Pinault F, Polster J, Raoult B, Tietsche S, Leutbecher M. 2026. AIFS-CRPS: ensemble forecasting using a model trained with a loss function based on the continuous ranked probability score. npj Artif. Intell. 2: 18, doi:10.1038/s44387-026-00073-7, URL https://doi.org/10.1038/s44387-026-00073-7.
Lipman Y, Chen RTQ, Ben-Hamu H, Nickel M, Le M. 2023. Flow matching for generative modeling. In: The Eleventh International Conference on Learning Representations. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Lorenz EN. 1963. Deterministic nonperiodic flow. J. Atmos. Sci. 20: 130–141, doi:10.1175/1520-0469(1963)020<0130:DNF>2.0.CO;2.
Lorenz EN. 1996. Predictability: A Problem Partly Solved. In: Proceedings of the Seminar on Predictability, 4–8 September 1995, vol. 1. European Centre for Medium-Range Weather Forecasts: Reading, United Kingdom, pp. 1–18.
Lorenz EN, Emanuel KA. 1998. Optimal sites for supplementary weather observations: simulation with a small model. J. Atmos. Sci. 55: 399–414, doi:10.1175/1520-0469(1998)055<0399:OSFSWO>2.0.CO;2.
Malartic Q, Farchi A, Bocquet M. 2022. State, global, and local parameter estimation using local ensemble Kalman filters: Applications to online machine learning of chaotic dynamics. Q. J. R. Meteorol. Soc. 148: 2167–2193, doi:10.1002/qj.4297.
Pacchiardi L, Adewoyin RA, Dueben P, Dutta R. 2024. Probabilistic forecasting with generative networks via scoring rule minimization. J. Mach. Learn. Res. 25(45): 1–64, URL http://jmlr.org/papers/v25/23-0038.html.
Price I, Sanchez-Gonzalez A, Alet F, Andersson TR, El-Kadi A, Ewalds T, Stott J, Mohamed S, Battaglia P, Lam R, Willson M. 2025. Probabilistic weather forecasting with machine learning. Nature 637: 84–90, doi:10.1038/s41586-024-08252-9.
Raanes PN, Bocquet M, Carrassi A. 2019. Adaptive covariance inflation in the ensemble Kalman filter by Gaussian scale mixtures. Q. J. R. Meteorol. Soc. 145: 53–75, doi:10.1002/qj.3386.
Rozet F, Louppe G. 2023a. Score-based data assimilation. In: Advances in Neural Information Processing Systems, vol. 36, Oh A, Naumann T, Globerson A, Saenko K, Hardt M, Levine S (eds). Curran Associates, Inc., pp. 40 521–40 541, URL https://proceedings.neurips.cc/paper_files/paper/2023/file/7f7fa581cc8a1970a4332920cdf87395-Paper-Conference.pdf.
Rozet F, Louppe G. 2023b. Score-based data assimilation for a two-layer quasi-geostrophic model. In: Machine Learning and the Physical Sciences Workshop, NeurIPS 2023. doi:10.48550/arXiv.2310.01853.
Sakov P, Bocquet M. 2018. Asynchronous data assimilation with the EnKF in presence of additive model error. Tellus A 70: 1414 545, doi:10.1080/16000870.2017.1414545, URL http://www.tandfonline.com/doi/full/10.1080/16000870.2017.1414545.
Sakov P, Hausaire JM, Bocquet M. 2018. An iterative ensemble Kalman filter in the presence of additive model error. Q. J. R. Meteorol. Soc. 144: 1297–1309, doi:10.1002/qj.3213, URL http://arxiv.org/pdf/1711.06110v2.pdf.
Sakov P, Oliver DS, Bertino L. 2012. An iterative EnKF for strongly nonlinear systems. Mon. Wea. Rev. 140: 1988–2004, doi:10.1175/MWR-D-11-00176.1.
Sasaki Y. 1970. Some basic formalisms in numerical variational analysis. Mon. Wea. Rev. 98: 875–883, doi:10.1175/1520-0493(1970)098<0875:SBFINV>2.3.CO;2.
Savary T, Rozet F, Louppe G. 2026. Training-free Bayesian filtering with generative emulators. In: Proceedings of the 43rd International Conference on Machine Learning, Proceedings of Machine Learning Research, vol. 306, Zhang T, Dudik M, Jaggi M, Agarwal A, Li S, Schuurmans D, Zhu J, Berkenkamp F, Dong H, Bietti A (eds). PMLR, pp. 107 889–107 912, URL https://proceedings.mlr.press/v306/savary26a.html.
Shen X, Meinshausen N. 2025. Engression: extrapolation through the lens of distributional regression. J. R. Stat. Soc. Series B Stat. Methodol. 87: 653–677, doi:10.1093/jrsssb/qkae108, URL https://doi.org/10.1093/jrsssb/qkae108.
Si P, Chen P. 2025. Latent-EnSF: A latent ensemble score filter for high-dimensional data assimilation with sparse observation data. In: The Thirteenth International Conference on Learning Representations. URL https://openreview.net/forum?id=urcEYsZOBz.
Solvik K, Penny SG, Hoyer S. 2025. 4D-Var using Hessian approximation and backpropagation applied to automatically differentiable numerical and machine learning models. J. Adv. Model. Earth Syst. 17: e2024MS004 608, doi:10.1029/2024MS004608.
Trémolet Y. 2006. Accounting for an imperfect model in 4D-Var. Q. J. R. Meteorol. Soc. 132: 2483–2504, doi:10.1256/qj.05.224.
Trémolet Y. 2007. Model-error estimation in 4D-Var. Q. J. R. Meteorol. Soc. 133: 1267–1280, doi:10.1002/qj.94.
Whitaker JS, Hamill TM. 2012. Evaluating methods to account for system errors in ensemble data assimilation. Mon. Wea. Rev. 140: 3078–3089, doi:10.1175/MWR-D-11-00276.1.
Wilks DS. 2005. Effects of stochastic parametrizations in the Lorenz 96 system. Q. J. R. Meteorol. Soc. 131: 389–407, doi:10.1256/qj.04.03.
Zupanski D. 1997. A general weak constraint applicable to operational 4DVAR data assimilation systems. Mon. Wea. Rev. 125: 2274–2292, doi:10.1175/1520-0493(1997)125<2274:AGWCAT>2.0.CO;2.
26 of 36
,
APPENDIX
A | Algorithms
In the following pseudocodes, the convergence criterion of optimisation loops is set by the tolerance which applies to the non-dimensional and is chosen to be . The maximum number of Gauss–Newton iterations is set to 40 (not shown in the pseudocodes). The symbols and in these pseudocodes typically denote normalised anomaly matrices while usually denotes an unnormalised anomaly matrix. The pieces of pseudocode highlighted in red show changes relative to the IEnKF algorithm in the absence of model error. (size reduction/augmentation) denotes ensemble size reduction and potentially augmentation from or to , as described in Appendix D, Algorithm 6. is a flag indicating whether the function applies to normalised (true) or unnormalised anomalies (false). is the ensemble matrix which serves as the state ensemble prior in all those schemes. and are normalised and centred anomaly matrices of model error or seed perturbations. In particular and . Note that all matrix square roots are symmetric positive-definite square roots.
Throughout the pseudocodes, model and observation operators act columnwise on ensemble matrices. When an operator takes two ensemble arguments, corresponding columns are paired. For any matrix , the notation denotes rows to , inclusive, with all columns retained. More generally, the vector and matrix indices are one-based and slice endpoints are inclusive; : denotes all rows or columns. denotes the mean over the columns of the matrix.
For the IEnKF-G and IEnKS-G, analysed ensembles and mean states within the DAW can be obtained by propagating the state components of the joint N-member posterior smoothing ensemble, before ensemble size reduction. Each state member is propagated with its paired diagnosed seed, which is held fixed throughout the DAW. After ensemble size reduction, the filtering ensembles have members. Forecasts beyond the DAW are initialised from these filtering ensembles and can use either the deterministic model with , as in the forecast experiment reported in Fig. 3, or independent Gaussian seeds drawn for each member at each forecast step.
A.1 | Algorithm of the transform IEnKF-Q
Algorithm 1 presents the pseudocode of the transform variant of the IEnKF-Q. It follows Algorithm 1 of Sakov et al. (2018), with two modifications. First, the ensembles used to estimate observation sensitivities include the current inferred model error increment in their centres. This ensures that the sensitivities with respect to both control blocks are evaluated consistently with the current forecast estimate. This modification has no effect for linear observation operators, as used in the numerical experiments of Sakov et al. (2018). Second, after termination, the forecast mean is updated using the final control increment and the last secant approximation, without an additional model propagation. This correction
27 of 36 is exact for an affine model; for a nonlinear model, it does not recompute changes in the forecast mean caused by the updated ensemble spread.
Algorithm 1 The transform variant of the IEnKF-Q, adapted from Sakov et al. (2018).
Require: Prior ensemble , ; normalised and centred , ; observation , positive-definite ; operators , ; tolerance .
Ensure: Analysis ensemble .
1: function
2: , ,
3: ,
4: ,
5: repeat
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19: until
20:
21:
22:
23:
24:
25: return
26: end function
A.2 | Algorithm of the transform IEnKF-G
Algorithm 2 gives the pseudocode of the transform variant of the IEnKF-G. Let , where , and for ; for , allow . In our experiments, we choose , but identity scaling is also admissible. With , the state perturbations keep the spread of the prior ensemble, as in the standard transform IEnKF. With , the seed members fed to the surrogate have Euclidean norms comparable
28 of 36 to those of the training seeds drawn from , which concentrate around . Define the block-centring projection and the pseudo-inverse by
where if , and otherwise. The projection enforces zero sensitivities along the redundant block-constant control directions and preserves ensemble centring under unequal block scalings. It leaves the sensitivities unchanged for affine operators but modifies their finite-ensemble approximation for nonlinear operators.
Algorithm 2 The transform variant of the IEnKF-G.
Require: Prior ensemble , ; normalised and centred , ; observation , positive-definite ; operators , ; tolerance ; block scaling as defined above.
Ensure: Analysis ensemble .
1: function
2: ,
3: ; compute as above.
4: ,
5: ,
6: ,
7: repeat
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19: until
20:
21:
22:
23: return
24: end function
29 of 36
A.3 | Algorithm of the bundle IEnKF-G
Algorithm 3 gives the pseudocode of the -bundle variant of the IEnKF-G, where is the finite-difference parameter. Clearly, can be absorbed into , so that only the choice of matters.
Algorithm 3 The bundle variant of the IEnKF-G.
Require: Prior ensemble , ; normalised and centred , ; observation , positive-definite ; operators , ; finite-difference step ; tolerance ; block scaling as defined above.
Ensure: Analysis ensemble .
1: function , , , , ,
2: , ,
3: ; compute as above.
4: ,
5: ,
6:
7: repeat
8:
9:
10:
11:
12:
13:
14:
15:
16:
17: until
18:
19:
20:
21: ,
22:
23:
24: return
25: end function
A.4 | Algorithm of the simplified transform SDA IEnKS-G
Algorithm 4 gives the pseudocode of the transform variant of the simplified SDA IEnKS-G, i.e. in the case where . The algorithm assimilates the observation at the end of the window and returns an ensemble at , incorporating this observation together with the information already contained in the prior ensemble. For , this is a smoothed ensemble,
30 of 36 which is used to initialise the next window after shifting it by time step. For , it is a filtering analysis ensemble.
Notation-wise, performs forecast steps, reusing the same seed matrix, with the identity.
Algorithm 4 The transform variant of the simplified SDA IEnKS-G with .
Require: Prior ensemble , ; normalised and centred , ; observation , positive-definite ; operators , ; DAW length ; tolerance ; block scaling as defined above.
Ensure: Ensemble at , updated using .
1: function
2: ,
3: ; compute as above.
4: ,
5: ,
6: ,
7: repeat
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: until
21:
22:
23:
24:
25: return
26: end function
B | Ensemble score-trained stochastic surrogate models
B.1 | Conditional transition model
For each model, the surrogate approximates the one-step conditional law of the current state rather than a deterministic flow map. Let denote the current state and its increment over the surrogate time step . An
31 of 36 ensemble member indexed by is generated as
where is a neural network and the four scalar normalisation statistics and are estimated from the training dataset.
To sample trajectories from the learned transition model, independent seeds are drawn for each member and at each . Repeated draws at a fixed instead provide samples from its one-step transition kernel. The IEnKS-G, however, uses different temporal seed assumptions. Note that for GL15, this construction provides a Markov approximation to the projected reference dynamics: even an exact match to their one-step conditional law would not, in general, reproduce their full temporal dependence.
The network architecture is adapted to the geometry of each state space (Table B1). L63 uses a fully connected network: the normalised three-component state and a three-component Gaussian vector are flattened, projected to width 8, passed through 16 residual blocks, and mapped to a three-component increment. Each block comprises 2 affine layers of width 8, layer normalisation after each layer, a Mish activation after the first layer, and a skip connection followed by a second Mish activation. A distinct surrogate is trained for each of the three time steps .
GL15 is defined on a periodic one-dimensional grid and therefore uses translation-equivariant circular convolutions. Its two input channels are the normalised state and the Gaussian seed. A width-5 input convolution lifts these channels to feature channels; 8 residual blocks then apply two width-3 circular convolutions, with batch normalisation and Mish activations, before a pointwise output convolution returns the increment. Thus, the same local rule is applied at every grid point and the periodic boundary condition is built into the network. The residual constructions follow the general principle of He et al. (2016).
TABLE B1 | Architectures used for the stochastic transition model. Here is the number of ensemble members generated per training pair, and are the input and residual-block kernel widths, respectively, and denotes the number of trainable parameters.
| Original model | Blocks | Channels | Core | ||||
|---|---|---|---|---|---|---|---|
| L63 | dense, | ||||||
| GL15 | conv., , |
B.2 | Training data and objective
Training samples are pairs produced by the corresponding reference dynamics after a spin-up of 2048 time steps . L63 data contain the complete three-dimensional state of the stochastic L63 system with componentwise multiplicative noise of amplitude . For GL15, the 160-dimensional high-resolution field is spectrally projected onto its resolved large-scale variables. In each case 1024 independent trajectories are used for the training dataset and another
32 of 36
1024 but 5 times shorter are used for the validation dataset. Successive initial states are thinned by a factor of 6, although every target remains one ahead. This gives 524 288 training and 104 448 validation pairs for L63, and 262 144 training and 52 224 validation pairs for GL15. The state and increment are standardised separately using global scalar means and standard deviations computed from the training pairs.
For each training pair , we define the normalised target increment as
We sample independent Gaussian seed vectors and obtain the corresponding normalised increment forecasts
The training ensemble size is distinct from the DA ensemble size and need not have the same value. The network parameters minimise the (coordinate-averaged) fair finite-ensemble score:
averaged over the mini-batch. The first term measures agreement with the normalised target increment, whereas the second rewards an appropriate ensemble spread; their proper-score balance penalises both collapse and excessive dispersion (Gneiting and Raftery 2007, Ferro 2014). The models used for the results reported in the experiments use . Yet, in the GL15 case, was also tested, for which Eq. (B3) is the (coordinate-averaged) fair CRPS. However we did not find any meaningful departure between surrogates trained with both ensemble scores, including in their power spectral density.
All networks are trained with mini-batches of 2048 examples, freshly sampled Gaussian seeds, validation-based checkpointing and early stopping. GL15 uses Adamax with an initial learning rate of ; the rate is multiplied by 0.8 after 80 validation epochs without a relative improvement of , down to , and training stops after 240 unimproved epochs. L63 uses AdamW with learning rate , weight decay , gradient-norm clipping at one, a 2% linear warm-up followed by cosine decay to , and a patience of 512 epochs. In all training experiments, the checkpoint attaining the lowest validation score is used.
C | Supplements on the GL15 model
Figure C1 shows a trajectory of the GL15 model, along with the corresponding trajectory of its large-scale variables. Moreover, we have assessed the Lyapunov spectrum of the large-scale GL15 dynamics. To that end, we have computed a (high-resolution ) GL15 trajectory along with its (low-resolution ) large-scale variables trajectory.
33 of 36

FIGURE C1 | Hovmöller plots of the large-scale variables of a GL15 trajectory (top) and the fine-scale field (bottom) from which they are obtained by projection.
With the approximation that , the tangent linear dynamics projected onto the large-scale variables is the tangent linear of the large-scale dynamics with , i.e. the tangent linear of Eq. (39). We compute a Lyapunov spectrum from this approximate tangent linear dynamics, driven by the large-scale variables of the reference trajectory. This is equivalent to computing the Lyapunov spectrum of the large scale dynamics under the assumption that the fine-scale feedback onto the large scales is held fixed. Its largest Lyapunov exponent is 0.88 corresponding to a Lyapunov time of . There are 9 positive exponents and one near-zero exponent. The approximate Kaplan–Yorke dimension is .
D | Perturbation sampling routines
D.1 | Generating simplex ensembles
Algorithm 5 constructs a centred ensemble of vectors in , stored as the columns of . For , it first obtains an orthonormal basis of the subspace perpendicular to in by a reduced QR decomposition. The columns of are the vertices of a regular simplex: each has unit norm and any two distinct columns have inner product . If , a second QR decomposition, applied to a Gaussian matrix, embeds this simplex isometrically into a random -dimensional subspace of . Otherwise, the simplex is orthogonally projected onto a random -dimensional subspace of and expressed in an orthonormal basis of that subspace; equal vertex norms and pairwise distances are then generally lost. The final scaling sets the trace of the unbiased empirical covariance to . The output is centred and has rank , with all nonzero covariance eigenvalues equal to , so it is isotropic on its span. Whenever , in exact arithmetic. These properties hold almost surely for the Gaussian draws and up to roundoff in computation. For , the function instead
34 of 36 returns a single zero vector. When used to generate the seed ensemble, the output is later converted to normalised anomalies by setting for .
Algorithm 5 Centred simplex ensemble with prescribed total variance. returns the orthonormal factor of a reduced QR decomposition. Indices start at 1.
Require: Integers , .
Ensure: for , or for .
1: function
2: if then
3: return
4: end if
5: ,
6:
7:
8:
9: if then
10: Draw with
11: ,
12: else
13: Draw with
14: ,
15: end if
16:
17:
18: return
19: end function
D.2 | Ensemble reduction and augmentation
The resampling procedure in Algorithm 6 resizes a centred ensemble from to members by retaining its dominant covariance modes and randomly embedding them in the new ensemble space. Members occupy the columns of the anomaly matrix , with . A thin singular value decomposition identifies the numerical rank from the singular values . The value of is assessed through:
with the machine numerical precision. Then, only the leading modes are retained. An orthonormal basis of the subspace perpendicular to is rotated using the orthogonal factor of a Gaussian matrix, and its first columns embed the retained modes. The output is therefore centred. For ordinary anomalies ( ), a scale factor
35 of 36 ensures that is the rank-q spectral truncation of , a best rank-at-most-q approximation in both the spectral and Frobenius norms. For normalised covariance factors ( ), no scaling is needed and the same statement holds for the unscaled Gram matrices. Thus, the reduction retains the maximum variance among orthogonal projections of the input anomalies onto subspaces of dimension at most q, whereas augmentation preserves the covariance without introducing new state-space directions, up to the numerical-rank truncation and roundoff. Adding the original ensemble mean to the output ordinary anomalies yields a resized ensemble with the same mean.
Algorithm 6 Ensemble reduction or augmentation with random rotation. returns the orthonormal factor of a reduced QR decomposition. Indices start at 1; a slice 1 : 0 is empty.
Require: Centred ; ; normalisation flag .
Ensure: Centred in the input normalisation convention.
1: function
2:
3:
4: , as defined in Eq. (D4).
5:
6:
7: if then
8:
9:
10: with
11: ,
12: else
13:
14: end if
15:
16:
17: return
18: end function
36 of 36