CLM-JAX v3.2.46: a differentiable, GPU-accelerated land surface model numerically indistinguishable from the Community Land Model 5.0
Shijin Yuan, Zhen Wei, Tianyu Shen, Bin Mu, Bo Qin, Guokun Dai
Abstract
The original Fortran implementation of the Community Land Model version 5.0 (CLM5.0) primarily targets CPUs and does not support GPU computation or automatic differentiation. We present CLM-JAX, a land surface model implemented in Python, based on the CLM5.0 BGC-Crop configuration in the Community Earth System Model version 2.1.3 (CESM2.1.3). CLM-JAX retains the original subgrid hierarchy, parameterizations and coupling among energy, water, carbon, nitrogen and crop processes, runs on CPUs and GPUs, and supports gradient backpropagation through multi-step time integration. Using floating-point perturbations of order in the initial state, we construct a stringent ensemble baseline of CLM's own differences and evaluate the numerical consistency of CLM-JAX for 32 variables over five years of continuous global simulation during 2019-2023. CLM-JAX errors relative to CLM generally lie below this ensemble baseline. On a single NVIDIA A800 GPU, CLM-JAX requires 0.7692 s per model hour, yielding sustained integration speedups of 4.04 and 2.57 over CLM compiled with gfortran and ifort, respectively, on 64 CPU cores. In the gradient test, the objective function is the first-layer soil temperature at step 100 (50 h), and its gradient with respect to the initial soil temperature field of all model layers is obtained by backpropagation through the 100 time steps. With converged central finite differences as references, 95.79% of the 84,254 nonzero references have relative errors no greater than 1% and 98.22% have matching signs, with median and 90th-percentile relative errors of % and %, respectively. The differentiability of CLM-JAX provides a basis for gradient-based applications, such as end-to-end parameter optimization and four-dimensional variational data assimilation.
Create a lesson
Related papers
Integrating Surface Observations and Numerical Weather Prediction Guidance for Wind Gust Nowcasting Using a Tabular Foundation Model
Shared title terminologyphysics.ao-phChau-Lam Yu, Harish Baki, Sukanta Basu
WRF-JAX v1.1.28: a differentiable regional weather model with fully coupled physics, numerically consistent with WRF and matching 128-process CPU performance on a single GPU
Shared title terminologyphysics.ao-phShijin Yuan, Tianyu Shen, Bin Mu et al.
AI Climate Emulators Reproduce Their Parents' Temperature Extremes but Lose Land Memory
Shared title terminologyphysics.ao-phGan Zhang
Simulation-Based Multi-Objective PID Tuning for Autonomous Surface Vessels in Random Sea States
Shared title terminologyphysics.ao-phWeijia Li, Ying Tan, Alessandro Toffoli
Spatial Transferability of Machine Learning Downscaling Under Varying Surface and Orographic Conditions
Shared title terminologyphysics.ao-phLewis Blunn, Alfie Bull Green, Tomas Wetherell et al.
An exact and differentiable rewrite of a coupled weather and fire model
Shared title terminologyphysics.ao-phJohn S. Schreck, John Dennis, Iris Linck et al.