Machine Learning Climate Model Dynamics: Offline versus Online Performance

Noah Brenowitz, Brian Henn, Jeremy McGibbon, Spencer K. Clark, Anna Kwa, W. A. Perkins, Oliver Watt‐Meyer, Christopher S. BrethertonarXiv 2020 · DOI

Abstract

Climate models are complicated software systems that approximate atmospheric and oceanic fluid mechanics at a coarse spatial resolution. Typical climate forecasts only explicitly resolve processes larger than 100 km and approximate any process occurring below this scale (e.g., thunderstorms) using so-called parametrizations. Machine learning could improve upon the accuracy of some traditional physical parametrizations by learning from global cloud-resolving models. We compare the performance of two machine learning models, random forests (RF) and neural networks (NNs), at parametrizing the aggregate effect of moist physics in a 3 km resolution global simulation with an atmospheric model. The NN outperforms the RF when evaluated offline on a testing dataset. However, when the ML models are coupled to an atmospheric model run at 200 km resolution, the NN-assisted simulation crashes within 7 days, while the RF-assisted simulations remain stable. Both runs produce more accurate weather forecasts than a baseline configuration, but globally averaged climate variables drift over longer timescales.

The Challenge of Sub-grid Processes

Global climate models (GCMs) are essential for predicting our planet's future, but they face a fundamental computational bottleneck. To maintain efficiency, these models operate on coarse grids, often 100 km or larger. Consequently, critical weather phenomena like cloud formation and thunderstorms occur at "sub-grid" scales and must be represented by human-designed mathematical shortcuts known as parametrizations.

While high-resolution Global Cloud-Resolving Models (GCRMs) can simulate these processes accurately at 3 km scales, they are too computationally expensive for century-long projections. Researchers are now turning to machine learning to "learn" the physics of GCRMs and create faster, data-driven parametrizations. However, a model that performs well on a static spreadsheet (offline) may fail catastrophically when integrated into a dynamic atmospheric simulation (online).

Methodology

This study utilized the FV3GFS atmospheric model to test ML-based parametrizations. The researchers generated a training dataset by running a 3 km high-resolution simulation for 40 days. They used a technique called "nudging" to align a coarse-grained model with the high-res state, creating a consistent dataset of heat and moisture "tendencies."

Two ML architectures were compared:

  1. Random Forest (RF): An ensemble of 13 decision trees.
  2. Neural Network (NN): A two-layer dense network with ReLU activation.

These models were tasked with predicting temperature and humidity changes, which were then fed back into the 200 km resolution atmospheric solver during online runs.

Results: The Offline-Online Paradox

Offline testing initially suggested that the Neural Network was the superior choice. As shown in the performance metrics, the NN achieved a higher $R^2$ (coefficient of determination) across nearly all atmospheric pressure levels compared to the Random Forest.

Offline performance comparison: Neural Networks (NN) show higher R^2 accuracy across atmospheric levels compared to Random Forests (RF), despite later online instability.

However, this offline accuracy did not translate to online success. When coupled to the live atmospheric model, the NN-assisted simulation became numerically unstable and crashed after only seven days. The Random Forest, despite its lower offline accuracy, remained stable for the duration of the test. This discrepancy is likely due to the "convex hull" advantage of Random Forests: as interpolators, they only predict values within the range of their training data. In contrast, Neural Networks can extrapolate wildly when they encounter out-of-sample inputs generated by the simulation's own feedback loops.

Stability and Climate Drift

While the RF model successfully completed the 10-day test run and improved short-term weather forecast accuracy, it highlighted a significant hurdle for long-term climate modeling: drift.

Online stability and climate drift: The NN-assisted simulation (orange) crashes after 7 days, while the RF-assisted run (red) remains stable but exhibits significant moisture drift compared to verification data.

As seen in the global average precipitable water (PW) trends, the RF-assisted model (red line) begins to deviate significantly from the verification data (teal line) over time. This "climate drift" occurs because the ML models do not perfectly conserve energy and mass, causing global variables like temperature and moisture to crawl away from reality over longer timescales.

Conclusion and Future Directions

The study demonstrates that offline metrics are insufficient for predicting the success of ML parametrizations in climate models. While Random Forests offer immediate stability and improved short-term forecasts, neither model is currently suitable for multi-decade climate projections due to conservation issues and long-term drift. Future research must focus on "physically constrained" machine learning and more robust loss functions to ensure that data-driven models respect the fundamental laws of physics while maintaining numerical stability.

Summary updated

BibTeX
@misc{brenowitz2020machine,
  author = {Noah Brenowitz and Brian Henn and Jeremy McGibbon and Spencer K. Clark and Anna Kwa and W. A. Perkins and Oliver Watt‐Meyer and Christopher S. Bretherton},
  title = {{Machine Learning Climate Model Dynamics: Offline versus Online Performance}},
  year = {2020},
  eprint = {2011.03081},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.03081},
}
Figure