arXiv:2610.32582stat.MLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.32582

Batched NN 4D-Var: a performant hybrid model framework for the Integrated Forecasting System

Alban Farchi, Marcin Chrust, Massimo Bonavita, Marc Bocquet, Wei Pan, Patrick Laloyaux

PREPRINT

Alban Farchi

ECMWF

Bonn, Germany

alban.farchi@ecmwf.int

Marc Bocquet

CEREA, ENPC, EDF R&D

Institut Polytechnique de Paris

Île-de-France, France

Marcin Chrust

ECMWF

Reading, United Kingdom

Wei Pan

ECMWF

Reading, United Kingdom

Massimo Bonavita

ECMWF

Reading, United Kingdom

Patrick Laloyaux

ECMWF

Reading, United Kingdom

October 26, 2026

Abstract

Hybrid forecasting systems combining machine learning and numerical weather prediction offer a promising route toward improved forecast skill while preserving physical consistency. In this study, we investigate online learning of state-dependent model-error corrections within the Integrated Forecasting System using four-dimensional variational data assimilation (4D-Var). Building on previous work, we represent model error using a neural network embedded within the forecast model and trained from observations through the data assimilation cycle. First, we introduce a targeted variant of neural-network 4D-Var in which only the neural-network parameters are estimated, while the atmospheric state is provided by a precomputed analysis. We then propose a batched extension that processes assimilation windows in random order and averages parameter increments over multiple windows, drawing inspiration from mini-batch stochastic optimization.

Experiments are conducted with the Integrated Forecasting System of the European Centre for Medium-Range Weather Forecasts at an intermediate resolution. Sequential online learning substantially improves forecasts within the training period, with error reductions exceeding 10 % in some cases. However, these improvements fail to generalize to unseen data. In contrast, the proposed batched formulation produces hybrid models that consistently improve forecast skill in out-of-sample experiments. Larger batch sizes accelerate convergence and improve robustness by reducing the noise of parameter updates. Diagnostics further show that the online-trained corrections preserve realistic forecast variability and do not improve skill through artificial smoothing. These results demonstrate that the formulation of the online learning problem is critical for generalisation and establish batched online training as a promising framework for hybrid machine-learning/data-assimilation systems.

Keywords data assimilation · machine learning · model error · surrogate model · neural networks · online learning

1 Introduction

Over the past few years, machine-learning-based weather prediction (MLWP) has transitioned from an emerging to an established and rapidly evolving area of research. Global MLWP systems trained on decades of global reanalysis data are now able to match and even surpass state-of-the-art physics-based numerical weather prediction (NWP) models across a wide range of forecast lead times and large-scale verification metrics, while requiring only a fraction of the computational cost. This technological breakthrough shows that artificial intelligence in general, and machine learning (ML) in particular, introduced a structural shift in how weather prediction systems may be designed in the future. This transition has already moved beyond the research stage, with ECMWF operationalising its Artificial Intelligence Forecasting System (AIFS) in 2025 in both deterministic and ensemble configurations.

The first wave of MLWP models (Pathak et al., 2022; Bi et al., 2023; Lam et al., 2023; Lang et al., 2024a) were by construction deterministic: these models were trained using supervised learning with the ERA5 reanalysis (Hersbach et al., 2020) produced by the European Centre for Medium-Range Weather Forecasts (ECMWF). These models have demonstrated remarkable forecast skill across a broad range of verification measures, including root-mean-squared error (RMSE), anomaly correlation, and mean bias, as well as for high-impact phenomena such as tropical cyclone tracks and weather extremes. Despite these successes, some limitations of this first generation of MLWP models have also been identified (Bocquet, 2023; Bonavita, 2023; Pasquini et al., 2026). First, they show a progressive smoothing of the predictions over the forecast lead time. This issue is now well understood as a consequence of using mean-squared errors (MSE) as loss function: the MLWP models tend to smooth their predictions in order to circumvent the so-called double penalty effect (Lang et al., 2024b). Second, because physical and dynamical constraints are not explicitly imposed during training, maintaining all relevant dynamical balances can remain challenging, despite the excellent forecast skill demonstrated by these models. This aspect becomes particularly important when MLWP models are used within cycled data assimilation systems, where the forecast model is repeatedly coupled to the assimilation process and small inconsistencies may accumulate over successive cycles (Slivinski et al., 2025; Tian et al., 2026).

Consequently, a second wave of MLWP models has emerged, relying on advances in generative ML (Price et al., 2024; Finn et al., 2024; Lang et al., 2024b; Finn et al., 2025). Diffusion models and related probabilistic generative techniques explicitly represent forecast uncertainty and are trained to sample from the full conditional distribution of future atmospheric states. By construction, these models alleviate the symptoms of the smoothing problem associated with deterministic MSE-based training by injecting phase-blind noise at the missing small scales, resulting in more realistic-looking power spectra of the relevant dynamical variables. While generative MLWP models mark a significant conceptual advance, their integration into existing Data Assimilation (DA) infrastructures remains an open research question (Slivinski et al., 2025; Tian et al., 2026).

An alternative and complementary route toward effectively leveraging the capabilities of machine learning for weather prediction is hybrid modelling, in which machine learning components are embedded within, or coupled to, traditional physics-based models (Levine and Stuart, 2022). Rather than replacing NWP systems, hybrid approaches seek to augment them, preserving the capabilities of the physical model while benefiting from data-driven information. A wide range of hybrid strategies has been proposed (see Farchi et al., 2025, and references therein), but two major directions have recently drawn more attention: ML-based model error correction (Farchi et al., 2025) and spectral nudging (Husain et al., 2025).

In spectral nudging methods (Husain et al., 2025; Polichtchouk et al., 2026), the large-scale dynamics of a forecasting system are nudged towards a pre-computed MLWP forecast trajectory, while the small scales are left untouched. These methods have only recently appeared in the literature and their appeal lies in their simplicity and ease of deployment: they can often be implemented with minimal changes to existing forecast systems.

The other main direction, ML-based model error correction is challenging to implement in an operational system but offers the prospect of a fully consistent physical-statistical framework, in which a neural network is explicitly trained to represent the model error of the underlying physical model (Bonavita and Laloyaux, 2020; Wikner et al., 2020; Farchi et al., 2021b,a; Brajard et al., 2021; Chen et al., 2022). The resulting model of model error can then be used to compensate for structural biases and deficiencies of the physical model during a forecast. The present study builds on the recent work of Farchi et al. (2023, 2025), hereafter referred to as F23 and F25, who introduced a new hybrid data assimilation framework for online model error correction. In their approach, a neural network is trained online using a variant of weak-constraint four-dimensional variational (4D-Var) assimilation system, which they called neural network (NN) 4D-Var. While NN 4D-Var represents a significant conceptual advance, it also exhibits important limitations, most notably a poor generalisation to unseen data as will be illustrated here.

In this article, we propose a new batched variant of the NN 4D-Var framework designed to address these shortcomings. By reformulating the training strategy to exploit random batches of assimilation windows in parallel, we aim to improve the statistical robustness and generalisation capability of the neural network, thereby increasing the forecast accuracy of the hybrid model. The article is structured as follows: section 2 presents the methodology, explaining in particular how and why we chose to move from offline- to batched training. In section 3, the new method is applied to the ECMWF Integrated Forecasting System (IFS, Bonavita et al., 2017). The results are discussed in section 4 and conclusions are given in section 5.

References (32)