1
Return

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

delete2026-05-18
delete0
delete
OA
AI
W
William S. Moses
G
Gong Cheng
V
Valentin Churavy
M
Maximilian Gelbrecht
M
Milan Klöwer
J
Joseph Kump
M
Mathieu Morlighem
S
Sarah Williamson
D
Dhruv Apte
P
Paul Berg
M
Mosé Giordano
C
Christopher Hill
N
Nora Loose
A
Alexis Montoison
S
Sri Hari Krishna Narayanan
A
Avik Pal
M
Michel Schanen
S
Simone Silvestri
G
Greg Wagner
P
Patrick Heimbach *
DOI:10.1029/2025MS005615delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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.
Keywords:
DJ4Earth
reverse-mode automatic differentiation
Earth system modeling
online learning
differentiable programming
hybrid data assimilation/machine learning
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Advances in Modeling Earth Systems cover
Journal of Advances in Modeling Earth Systems
IF:
4.6
Papers:
257
Citations:
1.3W

Organization

U
University of Texas at Austin
Scholars:
1.1K
Papers: 510
Citations: 4
B
bern university of applied sciences
Scholars:
43
Papers: 23
Citations: 0
W
worthy, llc
Scholars:
1
Papers: 1
Citations: 0
U
university college london
Scholars:
7.3K
Papers: 4.0K
Citations: 1
U
university of illinois urbana-champaign
Scholars:
2.0K
Papers: 1.1K
Citations: 0
U
university of oxford
Scholars:
9.6W
Papers: 8.5W
Citations: 137
D
dartmouth college
Scholars:
1.5K
Papers: 748
Citations: 1
A
argonne national laboratory
Scholars:
648
Papers: 261
Citations: 0
M
massachusetts institute of technology
Scholars:
3.3K
Papers: 1.2K
Citations: 0
Cited Papers

Cited Papers

Citing Papers

Citing Papers