Pith. sign in

REVIEW 3 cited by

Proof-of-concept: Using ChatGPT to Translate and Modernize an Earth System Model from Fortran to Python/JAX

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2405.00018 v1 pith:5ORU4X6R submitted 2024-02-13 cs.DC physics.ao-ph

classification cs.DCphysics.ao-ph
keywords fortranmodelpythonearthmodelssystemclimatecode
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Earth system models (ESMs) are vital for understanding past, present, and future climate, but they suffer from legacy technical infrastructure. ESMs are primarily implemented in Fortran, a language that poses a high barrier of entry for early career scientists and lacks a GPU runtime, which has become essential for continued advancement as GPU power increases and CPU scaling slows. Fortran also lacks differentiability - the capacity to differentiate through numerical code - which enables hybrid models that integrate machine learning methods. Converting an ESM from Fortran to Python/JAX could resolve these issues. This work presents a semi-automated method for translating individual model components from Fortran to Python/JAX using a large language model (GPT-4). By translating the photosynthesis model from the Community Earth System Model (CESM), we demonstrate that the Python/JAX version results in up to 100x faster runtimes using GPU parallelization, and enables parameter estimation via automatic differentiation. The Python code is also easy to read and run and could be used by instructors in the classroom. This work illustrates a path towards the ultimate goal of making climate models fast, inclusive, and differentiable.

Discussion (0). Sign in to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. FESOM2-JAX v1.0: a differentiable shadow of the ocean-sea-ice model FESOM2, cast onto GPUs

    physics.ao-ph 2026-08 conditional novelty 7.0 of 10

    A faithful JAX re-implementation of the FESOM2 ocean-sea-ice model that runs on GPUs and returns verified gradients through the full time loop.

  2. A Fortran General-Purpose Transpiler: Proof of Concept

    cs.PL 2026-07 conditional novelty 7.0 of 10

    FGPT deterministically translates isolated Fortran procedures into numerically verified NumPy and JAX/Equinox modules, with forward outputs matching Fortran to ~1e-9, but explicit auto-differentiation is not yet implemented.

  3. Systematic LLM Translation of Legacy Scientific Code to Differentiable Frameworks: Application to a Land Surface Model

    cs.SE 2026-06 conditional novelty 6.0 of 10

    An LLM-based pipeline systematically converts the CLM-ml-v2 Fortran land surface model to JAX, delivering full differentiability, 8x fewer optimization steps, and 24x wall-clock speedup at N=2048 while releasing the c...

Pith tools