Generative Modeling for Atmospheric Convection

Griffin Mooers, Jens Tuyls, Stephan Mandt, Michael S. Pritchard, Tom Beucler

TL;DR

Climate models struggle to simulate small-scale atmospheric convection due to massive computational costs, often forcing them to rely on oversimplified approximations. This paper introduces a Covariance-Constrained Variational Autoencoder (CC-VAE) that cheaply and accurately reconstructs high-resolution vertical velocity fields while preserving crucial small-scale turbulence variance. Beyond reconstruction, the model successfully performs unsupervised clustering of storm regimes and uses its internal loss metrics to detect anomalous weather patterns.

What Problem Does This Paper Address?

Traditional Global Climate Models (GCMs) operate on a coarse horizontal resolution of 100–200 km due to computational constraints. However, the critical physics driving cloud formation and storm convection occur at the scale of meters to a few kilometers. To bridge this gap, climate scientists use "parameterizations"—simplified sub-grid models—to estimate the large-scale effects of these tiny processes.

While high-resolution Cloud-Resolving Models (CRMs) can explicitly simulate these fine details, running them globally for the 100-year timescales needed for climate projection is computationally impossible. Previous attempts to use machine learning to emulate CRMs have mostly relied on deterministic neural networks that smooth out the realistic, stochastic "noise" of real weather, or Generative Adversarial Networks (GANs) restricted to idealized, low-complexity fluid flows. This paper tackles the challenge of modeling realistic, geographically complex atmospheric convection using generative models.

Methods

The authors design a fully convolutional Variational Autoencoder (VAE) to perform structural replication, dimensionality reduction, and clustering on 2D vertical velocity fields.

Standard VAEs optimize the Evidence Lower Bound (ELBO), which often results in blurry images that fail to capture high-frequency spatial variance—a fatal flaw when modeling turbulent atmospheric boundary layers. To fix this, the authors introduce a novel Covariance Constraint (CC) term to the loss function:

$$\text{Loss} = -\text{ELBO} + \lambda \times \text{CC}$$

where the CC term uses the Frobenius norm to minimize the distance between the covariance matrix of the model's predictions and that of the true data distribution. They compare this CC-VAE against a standard unconstrained VAE ($\lambda = 0$) and a baseline "linear" autoencoder (utilizing identity activations and mean-squared error loss).

Datasets

The models were trained and evaluated on a massive 1.3 TB cloud-resolving dataset generated from a 100-day multi-scale climate simulation:

  • Source Data: Generated by the Super-Parameterized Community Atmosphere Model (SPCAM5), which embeds a 128-column System for Atmospheric Modeling (SAM) micro-model within each coarse grid cell across a tropical belt ($20^\circ\text{N}$ to $20^\circ\text{S}$).
  • Preprocessing: To focus on active weather, the authors selectively sampled from 144 latitude/longitude coordinates exhibiting a strong diurnal (daily) precipitation cycle. They used K-means clustering to balance the dataset equally between active and inactive convective periods, resulting in a curated 4.3 GB dataset with a 111,206 / 27,802 training/test split.
  • Alignment: Snapshots were preprocessed to center the strongest convective updrafts, preventing the VAE from misinterpreting identical physical structures simply because they occurred at different horizontal positions.

Key Insights and Ideas

  • The Power of Statistical Constraints: Standard generative models optimize for pixel-by-pixel accuracy, which inadvertently penalizes stochastic but physically realistic variability. Forcing the network to match the true data's covariance matrix allows it to capture fine-scale turbulence without explicit supervision.
  • Unsupervised Physical Discovery: When the 1024-dimensional latent space of the CC-VAE is projected down to 2D using Principal Component Analysis (PCA), it naturally clusters the data into physically meaningful regimes: deep convection, shallow convection, and non-convecting states. The network learns these categories entirely on its own, driven purely by the underlying physics of the data.
Fig. 1: Visualization of the latent space originally in dimension 1024, but reduced to dimension 2 by Principle Component Analysis (PCA) [36]. The standard deviations of different types of convection the VAE learns to cluster are embedded near corresponding clusters. This suggests the VAE learns an interpretable clustering of the data, with means and variances both contributing to the results.
  • Latent Space Trajectories Map to Real Time: When tracking a specific geographic region (like the Amazon rainforest) through its daily cycle, the latent space coordinates follow a smooth, monotonic trajectory that mirrors the physical transition from morning shallow convection to afternoon deep convective storms.
Fig. 5: 2D PCA Temporal Projection All spatial locations comprising the Amazon Rainforest are averaged together from November to February to get a single composite diurnal cycle that is fed through our trained VAE. The colors above correlate to time of day (Local Solar Time). The results show a clear separation in representation on the latent space of the timing of deepest convection and maximum precipitation (mid afternoon) from when shallow convection and calmer conditions dominate (early morning).
  • ELBO as an Anomaly Detector: Because the ELBO measures how well a sample fits the model's learned distribution, it can double as an automated tool to flag rare or extreme weather events (e.g., multiple distinct storms forming simultaneously in a small area) far more dynamically than rigid, manual velocity thresholds.

Key Results

  • Variance Preservation: Spectral analysis demonstrates that the CC-VAE accurately captures vertical velocity variance across both small and large spatial scales. While the standard VAE severely underestimates variance at small scales (high wave numbers), the CC-VAE closely tracks the true data spectrum.
Fig. 2: Spectral Analysis at 4 different levels of the atmosphere comparing the test data to our best VAE and CC VAE as well as a linear model. At small spatial scales we see the importance of the Covariance Constraint to capture the variance native to convection (orange vs. red).
  • Quantitative Performance: The CC-VAE achieved a Frobenius Norm error of just $8.0 \times 10^{-6}$ for its covariance matrix, vastly outperforming the standard VAE ($3.2 \times 10^{-4}$) and the linear baseline ($8.0 \times 10^{-3}$), proving its superior ability to capture spatial correlations.
  • Geospatial Coherence: Mapping the latent space predictions back to global coordinates yields highly realistic weather patterns, correctly localizing deep convection over tropical landmasses (the Amazon and African rainforests) and the Pacific Warmpool.
Fig. 3: Convection Type Predictions The diurnal composite from a ten day average at four unique times of day are shown above. The VAE predicts the type of convection occurring in tropical locations over the course of a typical Boreal Winter Diurnal Cycle. Blue coloring refers to a VAE prediction of deep convection, yellow to a VAE prediction of shallow convection and green to a convective type transitioning between shallow or deep convection. Areas where the VAE detects little convection are blanked out. Semantic similarities of the VAE latent space are reflected in the global geospatial weather patterns.

Limitations and Future Work

While the CC-VAE excels at reconstructing and understanding convective fields, it cannot yet act as a standalone plug-and-play component inside a climate model. To achieve that, future iterations must be conditioned on large-scale thermodynamic variables (like temperature and humidity profiles) so the model knows when and where to generate specific storm types. Additionally, the authors note a potential trade-off: further optimizing the model's generative fidelity might come at the cost of its highly interpretable and structured latent space.

Summary updated

BibTeX
@misc{mooers2020generative,
  author = {Griffin Mooers and Jens Tuyls and Stephan Mandt and Michael S. Pritchard and Tom Beucler},
  title = {{Generative Modeling for Atmospheric Convection}},
  year = {2020},
  eprint = {2007.01444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.01444},
}
Figure