English
 
Privacy Policy Disclaimer
  Advanced SearchBrowse

Item

ITEM ACTIONSEXPORT

Released

Journal Article

DJ4Earth: Differentiable, and Performance-Portable Earth System Modeling via Program Transformations

Authors

Moses,  William S.
External Organizations;

Cheng,  Gong
External Organizations;

Churavy,  Valentin
External Organizations;

/persons/resource/gelbrecht

Gelbrecht,  Maximilian
Potsdam Institute for Climate Impact Research;

Klöwer,  Milan
External Organizations;

Kump,  Joseph
External Organizations;

Morlighem,  Mathieu
External Organizations;

Williamson,  Sarah
External Organizations;

Apte,  Dhruv
External Organizations;

Berg,  Paul
External Organizations;

Giordano,  Mosè
External Organizations;

Hill,  Christopher
External Organizations;

Loose,  Nora
External Organizations;

Montoison,  Alexis
External Organizations;

Narayanan,  Sri Hari Krishna
External Organizations;

Pal,  Avik
External Organizations;

Schanen,  Michel
External Organizations;

Silvestri,  Simone
External Organizations;

Wagner,  Greg
External Organizations;

Heimbach,  Patrick
External Organizations;

External Resource
Fulltext (restricted access)
There are currently no full texts shared for your IP range.
Fulltext (public)

34296oa.pdf
(Publisher version), 4MB

Supplementary Material (public)
There is no public supplementary material available
Citation

Moses, W. S., Cheng, G., Churavy, V., Gelbrecht, M., Klöwer, M., Kump, J., Morlighem, M., Williamson, S., Apte, D., Berg, P., Giordano, M., Hill, C., Loose, N., Montoison, A., Narayanan, S. H. K., Pal, A., Schanen, M., Silvestri, S., Wagner, G., Heimbach, P. (2026): DJ4Earth: Differentiable, and Performance-Portable Earth System Modeling via Program Transformations. - Journal of Advances in Modeling Earth Systems, 18, 5, e2025MS005615.
https://doi.org/10.1029/2025MS005615


Cite as: https://publications.pik-potsdam.de/pubman/item/item_34296
Abstract
Differentiable Earth system models (ESMs) enable powerful applications such as sensitivity analysis, gradient-based calibration, state estimation, boundary flux inversions, uncertainty quantification, and online machine learning. Reverse-mode automatic differentiation (AD) efficiently provides gradients for such tasks, yet models have rarely included this capability because of complex, bespoke numerical algorithms. As part of the Differentiable programming in Julia for Earth system modeling (DJ4Earth) initiative, we present improved capabilities of the AD tool Enzyme.jl and the new compiler transpilation tool Reactant.jl, augmented by sophisticated checkpointing algorithms, which, together make general-purpose AD tractable and efficient for full-fledged ESM components written in Julia. Operating at the low-level virtual machine intermediate representation or multi-level intermediate representation compiler levels, these frameworks support mutable memory, custom kernels, and compiler optimizations before and after differentiation. Julia-specific challenges related to just-in-time compilation and garbage collection are handled efficiently. Reactant further enables automatic performance portability across central processing units, graphics processing units, and tensor processing units, facilitating use of emerging AI-customized high-performance computing architectures. We demonstrate these frameworks on four Julia-based ESM components featuring diverse spatial discretizations and numerical algorithms: the rotating-sphere shallow water model ShallowWaters.jl, the finite-volume ocean model Oceananigans.jl, the finite-element ice sheet model DJUICE.jl, and the spectral atmospheric model SpeedyWeather.jl. Across these ESM components, our tools compute efficient and correct gradients. These results establish a foundation for differentiable, high-performance and performance-portable ESMs that can integrate neural networks for unresolved processes, trained online, enabling next-generation hybrid physics–machine learning ESMs constrained by physical dynamics and observations.