DiffDA: a Diffusion model for weather-scale Data Assimilation

Langwen Huang, Lukas Gianinazzi, Yuejiang Yu, Peter Dominik Dueben, Torsten Hoefler

Introduction

Modern weather forecasting is a two-stage process consisting of Data Assimilation (DA) and Simulation. DA acts as a "pull-back" mechanism, aligning previous forecasts with new, sparse observations from weather stations and satellites. This process generates the "initial condition" necessary for the next simulation cycle.

While Machine Learning (ML) has transformed the simulation stage through models like GraphCast and Pangu-Weather, ML-based data assimilation has struggled to reach the high spatial resolutions (0.25° or ~30km) required for global operational use. Traditional methods, such as Variational (4D-Var) or Ensemble Kalman Filters, remain the industry standard but are computationally intensive and mathematically rigid, often requiring complex "linearized" versions of weather models that are difficult to maintain.

Methodology: Diffusion for Assimilation

DiffDA addresses these challenges by treating data assimilation as a conditional sampling problem using a Denoising Diffusion Probabilistic Model (DDPM).

Leveraging Pretrained Backbones

Rather than training a model from scratch, the authors adapt GraphCast, a state-of-the-art Graph Neural Network (GNN) weather forecaster. The rationale is that forecasting (mapping $x_t$ to $x_{t+1}$) and denoising (mapping a noisy state to a clean one) share similar structural requirements. By utilizing pretrained GraphCast weights, the authors significantly accelerated the training process and leveraged existing knowledge of atmospheric dynamics.

Conditioning and the "Softbleed" Technique

The model is conditioned on two primary inputs: a dense 48-hour "predicted state" forecast and sparse, real-world observations. A significant hurdle in high-resolution diffusion is that sparse data points (hard masks) tend to be "smeared" or lost during the network's downsampling and pooling layers.

To mitigate this, the authors developed "Softbleed." This technique applies a Gaussian-like blur to the observation mask and uses Kriging interpolation to fill the surrounding area. This "soft" information is more resilient to the neural network's internal transformations, ensuring the model respects sparse observations. During inference, a resampling technique inspired by the "RePaint" algorithm is used to maintain consistency between the generated fields and known observations.

Data and Experimental Setup

The model was trained and evaluated using the ERA5 Reanalysis dataset, which provides global atmospheric variables at 0.25° resolution. Climatology values and evaluation frameworks were provided by WeatherBench2. Due to the complexity of raw global observation data, the authors simulated sparse observations by randomly sampling grid columns from the ERA5 dataset to establish a controlled baseline for performance.

Results and Impact

DiffDA represents a milestone as the first ML-based DA model to achieve a 0.25° horizontal resolution with 13 vertical levels, proving that ML can handle the scale of professional meteorological data.

Computational Efficiency

One of the most striking results is efficiency. DiffDA can produce an assimilated state in 15–30 minutes on a single NVIDIA A100 GPU. In contrast, traditional numerical methods typically require hundreds or thousands of CPU cores on supercomputer clusters to achieve comparable results in a similar timeframe.

Accuracy and Forecast Quality

The model demonstrates remarkable robustness to data sparsity. With only 4,000 observed columns—representing less than 0.4% of the global grid—DiffDA significantly reduces the error of a 48-hour forecast. When these assimilated states are used to initialize new forecasts, the "loss of lead time" is at most 24 hours compared to starting with a perfect ERA5 state. This suggests that DiffDA's output is nearly as effective as the most expensive human-engineered datasets for downstream forecasting.

Limitations and Future Directions

While DiffDA proves the viability of ML for high-resolution DA, several areas for improvement remain:

  • Observation Diversity: The current model handles point observations (grid columns). Future iterations must incorporate non-linear data types like satellite radiances and radar imagery.
  • Temporal Dynamics: As a 3D spatial model, DiffDA does not yet account for the time dimension during the DA step. A 4D approach could improve stability in autoregressive cycles where the model feeds into itself repeatedly.
  • Quality Control: Real-world sensors are prone to noise and failure. A production-ready system would require a dedicated quality control layer to filter erroneous data, as the current model assumes observations are ground truth.

Summary updated

BibTeX
@inproceedings{huang2024diffda,
  author = {Langwen Huang and Lukas Gianinazzi and Yuejiang Yu and Peter Dominik Dueben and Torsten Hoefler},
  title = {{DiffDA: a Diffusion model for weather-scale Data Assimilation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=vhMq3eAB34},
}
Figure