PreDiff: Precipitation Nowcasting with Latent Diffusion Models

Zhihan Gao, Xingjian Shi, Boran Han, Hao Wang, Xiaoyong Jin, Danielle C. Maddix, Yi Zhu, Mu Li, Bernie Wang

Introduction

Precipitation nowcasting—the task of predicting high-resolution rainfall patterns within a short-term window of 0 to 6 hours—is a critical component of disaster mitigation and resource management. However, the atmosphere is a classic chaotic system where small initial perturbations lead to vastly different outcomes. Traditional deep learning approaches often struggle with this complexity, falling into the "blurriness trap." Because these models are typically trained to minimize Mean Squared Error (MSE), they tend to produce "safe," averaged forecasts that lack the sharp, localized details necessary for operational meteorology.

To address these challenges, researchers from HKUST, Boson AI, and AWS have introduced PreDiff, a framework that leverages Latent Diffusion Models (LDMs) to generate high-fidelity, probabilistic forecasts that remain grounded in the laws of physics.

The PreDiff Framework

PreDiff is designed as a two-stage pipeline that separates the generation of realistic weather patterns from the enforcement of physical constraints. This modularity allows the model to produce sharp imagery while maintaining scientific accuracy.

1. The Generative Core: Earthformer-UNet LDM

Operating on high-resolution raw pixels is computationally prohibitive for diffusion models. PreDiff overcomes this by using a Latent Diffusion Model. The process begins by compressing high-dimensional meteorological data into a lower-dimensional latent space using a Variational Autoencoder (VAE).

The denoising process—where the model iteratively transforms noise into a structured forecast—is handled by a specialized Earthformer-UNet. Unlike standard UNet architectures used in computer vision, this backbone incorporates "Earthformer" blocks. These are transformer-based layers specifically engineered to capture the complex, long-range spatial and temporal dependencies inherent in climate and weather data.

2. Knowledge Alignment (KA)

While generative models are excellent at producing visually convincing data, they do not inherently understand physics. PreDiff introduces a novel Knowledge Alignment (KA) mechanism to bridge this gap. KA acts as a modular "plug-in" that is trained independently of the base diffusion model.

During the denoising steps, the alignment network evaluates the intermediate state of the forecast against specific physical constraints, such as energy conservation or moisture flux. It then provides a "nudge" to the transition distribution, steering the model toward states that satisfy these physical laws. This approach allows for domain-specific guidance without requiring a complete retraining of the generative model.

Experimental Validation

The researchers evaluated PreDiff across two distinct domains to test both its generative capability and its physical consistency:

  • N-body MNIST: A synthetic dataset featuring digits moving under gravitational influence. This serves as a testbed for chaotic motion and strict energy conservation.
  • SEVIR (Storm EVent ImageRy): A large-scale real-world dataset consisting of NEXRAD radar mosaics. The objective is to predict Vertically Integrated Liquid (VIL) up to 60 minutes into the future.

Key Results and Insights

PreDiff demonstrates significant improvements over both deterministic and probabilistic baselines in several key areas:

  • Superior Perceptual Quality: On the SEVIR dataset, PreDiff achieved a Fréchet Video Distance (FVD) of 33.05, a massive improvement over the standard LDM's score of 133.0. This indicates that the generated forecasts are statistically much closer to real-world weather patterns than previous models.
  • Physical Precision: The Knowledge Alignment mechanism proved highly effective. In the $N$-body MNIST experiments, PreDiff-KA reduced Energy MSE from 0.0226 to 0.0039. Interestingly, the model occasionally outperformed the ground truth data by filtering out simulation noise to better adhere to physical laws.
  • Capturing Extremes: Deterministic models often under-predict high-intensity rainfall to minimize potential error. PreDiff, by contrast, captures the full distribution of possible intensities, providing more accurate "BIAS" scores across various rainfall thresholds and better representing rare, extreme weather events.

Conclusion and Future Directions

PreDiff represents a significant step forward in applying generative AI to Earth system science. By combining the flexibility of Latent Diffusion Models with the rigor of Knowledge Alignment, it provides a path toward forecasts that are both visually realistic and physically sound.

However, challenges remain. Like most diffusion-based models, PreDiff requires multiple iterative steps for inference, making it slower than "one-shot" models. Future work will likely focus on improving sampling efficiency and developing evaluation metrics that better reflect the specific needs of operational meteorologists. Despite these hurdles, the modularity of the Knowledge Alignment approach offers a promising framework for integrating diverse physical constraints into the next generation of weather forecasting tools.

Summary updated

BibTeX
@inproceedings{gao2023prediff,
  author = {Zhihan Gao and Xingjian Shi and Boran Han and Hao Wang and Xiaoyong Jin and Danielle C. Maddix and Yi Zhu and Mu Li and Bernie Wang},
  title = {{PreDiff: Precipitation Nowcasting with Latent Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Gh67ZZ6zkS},
}
Figure