legoESM: a modular, differentiable, multiscale, AI-ready Earth system model built with AI agents
Pierre Gentine, Dhruv Balwada, Aytaç Paçal, Linnia Hawkins, Alistair Adcroft, Hang Fan, Jianing Fang, Aya Lahlou, Kara D. Lamb, David M. Lawrence, Julien Le Sommer, Joseph Mouallem, Juan Nathaniel, Duncan Watson-Parris, Veronika Eyring
Abstract
Earth system models (ESMs) have grown tremendously in realism, yet key uncertainties persist in the climate response to greenhouse-gas forcing, particularly due to cloud radiative feedbacks. In addition, their software architecture was not designed for accelerator hardware or modern artificial intelligence (AI). Here we present legoESM, a composable, differentiable, multiscale ESM written in JAX. It builds on decades of community-developed parameterizations and numerical methods, recast in a unified framework by AI coding agents under a human-specified scientific contract and verified through benchmarking. Dynamical cores, physics schemes, grids, complexity levels and components are swappable like building blocks, and can use conventional physics or machine-learned emulators. A single code base spans metre-scale large-eddy simulation to global simulations and weather to climate. End-to-end differentiability enables gradient-based calibration, variational data assimilation and online training. legoESM modular architecture enables systematic evaluation of diverse model variants to explore structural uncertainty and test hypotheses. legoESM produces realistic simulations across scales, reduces land-surface temperature bias through gradient-based calibration, and scales efficiently on GPUs to kilometer-scale simulations. It offers an open, community infrastructure for hypothesis testing, research and teaching in Earth sciences and a template for multiscale physical systems.
Create a lesson
Related papers
Morphology-based retrieval of local wave parameters and phase shifts in satellite-observed atmospheric disturbances
Yuriy Klymenko, Alla Fedorenko, Evgen Kryuchkov et al.
Parametric wave spectrum models for prediction of Stokes drift profiles
W. Erick Rogers, Yalin Fan, Luis Zamudio et al.
Evaluating LLMs for Translating Legacy Fortran Atmospheric Physics to GPU-Accelerated JAX
Iris Linck, John Dennis, John Schreck et al.
A Physics-Constrained Implicit Profile Network for Continuous Reconstruction of Tropical Cyclone Near-Surface Wind Profiles
Jian Ma, Yilin Yang, Robert Rogers et al.
A Graph Neural Network for Global Daily Fire Radiative Power Prediction at Medium-Range Lead Times
Li Zhang, Jun Wang, Isidora Jankov et al.
Three-dimensional Lagrangian ecosystems: carbon dynamics and potential for artificial fertilization
Stefano Campagnola, Stephanie Dutkiewicz, Michael J. Follows et al.