Journal article
DJ4Earth: Differentiable, and Performance‐Portable Earth System Modeling via Program Transformations
- Abstract:
- Plain Language Summary: Earth system models are computer programs that simulate how Earth's atmosphere, ocean, ice, and biosphere interact and evolve. These models consist of millions of lines of code and rely on uncertain inputs. To improve accuracy, scientists adjust these inputs to minimize the difference between simulations and observations, measured by a “cost function.” Another computer program can efficiently determine how changes in each input affect the outcome. This calculation, called the gradient of the cost function, would be extremely time‐consuming to code manually. Instead, we use an automatic differentiation (AD) tool called Enzyme, which computes these gradients efficiently and updates them automatically whenever the model changes. As computing systems evolve rapidly, especially those optimized for artificial intelligence (AI), another tool called Reactant enables models to run efficiently across different hardware, from central processing units to graphics processing units and AI accelerators. We demonstrate these methods on four Earth system model components written in the modern programming language Julia: a shallow water model, an ocean model, an ice sheet model, and an atmospheric model. For each, the code generated via AD produces correct gradients of the cost function. This work lays the foundation for combining these differentiated models with machine learning to improve model accuracy efficiently.
- Publication status:
- Published
- Peer review status:
- Peer reviewed
Actions
Access Document
- Files:
-
-
(Preview, Version of record, pdf, 3.7MB, Terms of use)
-
- Publisher copy:
- 10.1029/2025ms005615
Authors
+ National Science Foundation
More from this funder
- Funder identifier:
- 10.13039/100000001
- Grant:
- 2103942
+ UK Research and Innovation
More from this funder
- Funder identifier:
- 10.13039/100014013
- Grant:
- DE‐NA0004266
- Publisher:
- Wiley
- Journal:
- Journal of Advances in Modeling Earth Systems More from this journal
- Volume:
- 18
- Issue:
- 5
- Article number:
- e2025MS005615
- Publication date:
- 2026-05-18
- Acceptance date:
- 2026-04-20
- DOI:
- EISSN:
-
1942-2466
- ISSN:
-
1942-2466
- Language:
-
English
- Keywords:
- Source identifiers:
-
4057839
- Deposit date:
-
2026-05-18
- ARK identifier:
This ORA record was generated from metadata provided by an external service. It has not been edited by the ORA Team.
Terms of use
- Copyright date:
- 2026
- Licence:
- CC Attribution (CC BY)
If you are the owner of this record, you can report an update to it here: Report update to this record