CLM-JAX v3.2.46: a differentiable, GPU-accelerated land surface model numerically indistinguishable from the Community Land Model 5.0
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 10−14 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 5.862×10−7% and 3.578×10−4%, 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.
Related
- 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
- Evaluating surface water for genomic surveillance of community-linked antimicrobial resistance in ESBL-producing Klebsiella pneumoniae
- Evaluation of HNO3, SO2, and NH3 in the Surface Tiled Aerosol and Gaseous Exchange (STAGE) option in the Community Multiscale Air Quality Model version 5.3.2 against field-scale, in situ and satellite observations
- Evaluation of HNO ₃ , SO ₂ , and NH ₃ in the Surface Tiled Aerosol and Gaseous Exchange (STAGE) option in the Community Multiscale Air Quality Model version 5.3.2 against field-scale, in situ and satellite observations
- PCOD-NN: a differentiable, instrument-independent emulator of monochromatic optical depth for infrared radiative transfer
BibTeX
@misc{yuan2026clmjax,
title = {{CLM-JAX v3.2.46: a differentiable, GPU-accelerated land surface model numerically indistinguishable from the Community Land Model 5.0}},
author = {Shijin Yuan and Zhen Wei and Tianyu Shen and Bin Mu and Bo Qin and Guokun Dai},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.34574},
eprint = {2611.34574},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.34574},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - CLM-JAX v3.2.46: a differentiable, GPU-accelerated land surface model numerically indistinguishable from the Community Land Model 5.0
AU - Shijin Yuan
AU - Zhen Wei
AU - Tianyu Shen
AU - Bin Mu
AU - Bo Qin
AU - Guokun Dai
PY - 2026
DA - 2026/11/25
PB - arXiv
DO - 10.48550/arxiv.2611.34574
UR - https://arxiv.org/abs/2611.34574
AB - 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 10^−14 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 5.862×10^−7% and 3.578×10^−4%, 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.
ER -