CoDiCast: Conditional Diffusion Model for Weather Prediction with Uncertainty Quantification

Jimeng Shi, Bowen Jin, Jiawei Han, Giri Narasimhan · DOI

Introduction: The Uncertainty Gap in Weather Forecasting

Weather forecasting has long been a tug-of-war between two paradigms. On one side, Numerical Weather Prediction (NWP) uses complex physics equations; it is highly accurate and handles uncertainty through "ensembles" (running the model multiple times), but it is computationally staggering, often requiring massive supercomputers. On the other side, Machine Learning Weather Prediction (MLWP) is incredibly fast and accurate but typically deterministic. It provides a single "best guess" without quantifying confidence—a significant drawback for decision-makers preparing for extreme events.

The authors of CoDiCast address this "uncertainty gap." They propose a model that maintains the speed and data-driven accuracy of machine learning while regaining the ability to quantify the range of probable weather scenarios through generative modeling.

Methodology: Generative Weather Modeling

CoDiCast leverages Conditional Diffusion Models, a class of generative AI adapted for 2D atmospheric grids. Unlike standard regression models that map inputs directly to a single output, CoDiCast treats weather prediction as a generative task guided by past observations.

Overview of the CoDiCast diffusion process, illustrating the transition from noise to a structured forecast guided by latent embeddings.

The core architecture consists of three innovative pillars:

  1. Pre-trained Encoder: Instead of feeding raw historical data directly into the model, the authors use an autoencoder to compress past weather states into "latent embeddings." This helps the model capture complex spatial patterns more effectively than raw pixel-wise data.
  2. Cross-Attention Mechanism: During the denoising process (where the model turns random noise into a weather forecast), a cross-attention layer allows the model to "look back" at the historical embeddings. This ensures the generated forecast is physically consistent with the recent past.
  3. Stochastic Ensemble Sampling: Because diffusion models are probabilistic by nature, generating an ensemble is straightforward: by starting with different random noise seeds and running the denoising process multiple times, the model naturally produces a distribution of possible futures.

Data and Evaluation

The model was trained and evaluated using the ERA5 reanalysis dataset from the European Centre for Medium-Range Weather Forecasts (ECMWF), specifically the version hosted by WeatherBench. The study focused on a 5.625° latitude-longitude resolution (a 32x64 grid) across five key meteorological indicators: Geopotential (Z500), Temperature (T850 and T2m), and Wind components (U10 and V10). The model was trained on data from 2006–2015 and tested on 2017–2018.

Key Results and Performance

CoDiCast occupies a "sweet spot" in the forecasting landscape. It is significantly faster than traditional NWP systems while providing the uncertainty metrics that deterministic ML models lack.

Uncertainty quantification for T850 temperature forecasts. The model's confidence intervals (1σ, 2σ, 3σ ranges) expand over time, reflecting increasing physical uncertainty.
  • Superior Accuracy: CoDiCast outperformed several state-of-the-art ML baselines (including ClimaX, FourCastNet, and ClimODE) across nearly all variables in terms of Root Mean Square Error (RMSE) and Anomaly Correlation Coefficient (ACC).
  • Efficiency: The model can generate a 6-day global forecast in approximately 12 minutes on a single commodity A100 GPU. For comparison, traditional NWP models like the IFS typically require nearly an hour on massive computing clusters for similar tasks.
  • Reliable Uncertainty: As shown in the results, the model’s confidence intervals grew as the "lead time" increased, matching the physical reality that forecasts become less certain the further out they look. Most actual weather values fell within 1 or 2 standard deviations of the model's mean prediction.

Limitations and Future Directions

While CoDiCast represents a major step forward, the authors identify several areas for improvement:

  1. Resolution: The current model operates at a relatively coarse resolution. Real-world applications often require much finer grids to capture local phenomena like thunderstorms.
  2. Inference Speed: While faster than NWP, diffusion models are iterative and thus slower than "one-shot" deterministic ML models. Future work will explore "consistency models" or other acceleration techniques to speed up the denoising process.
  3. Multimodal Integration: A fascinating future direction is the use of Large Language Models (LLMs) to extract implicit weather interactions from textual reports and inject that knowledge into the diffusion process to further refine predictions.

Summary updated

BibTeX
@misc{shi2024codicast,
  author = {Jimeng Shi and Bowen Jin and Jiawei Han and Giri Narasimhan},
  title = {{CoDiCast: Conditional Diffusion Model for Weather Prediction with Uncertainty Quantification}},
  year = {2024},
  eprint = {2409.05975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05975},
}
Figure