# KPPax: preprocess differentiable kinetic ODE for machine learning in atmospheric chemistry

arXiv: https://arxiv.org/abs/2610.37655 · HTML: https://mlsanity.com/paper/2610.37655/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 11 of its 32 references that are in the map.
- Submitted 27 Oct 2026.

## Builds on (most cited first, 11 of 11)

- [On Neural Differential Equations](https://mlsanity.com/paper/2202.02435/) (2022)
- [Neural General Circulation Models for Weather and Climate](https://mlsanity.com/paper/2311.07222/) (2023)
- [A Differentiable Programming System to Bridge Machine Learning and Scientific Computing](https://mlsanity.com/paper/1907.07587/) (2019)
- [Combining data assimilation and machine learning to emulate a dynamical model from sparse and noisy observations: a case study with the Lorenz 96 model](https://mlsanity.com/paper/2001.01520/) (2020)
- [Differentiable Programming for Earth System Modeling](https://mlsanity.com/paper/2208.13825/) (2022)
- [Optimistix: modular optimisation in JAX and Equinox](https://mlsanity.com/paper/2402.09983/) (2024)
- [Neural Network Emulator for Atmospheric Chemical ODE](https://mlsanity.com/paper/2408.01829/) (2024)
- [Differential elimination for dynamical models via projections with applications to structural identifiability](https://mlsanity.com/paper/2111.00991/) (2021)
- [SPIN-ODE: Stiff Physics-Informed Neural ODE for Chemical Reaction Rate Estimation](https://mlsanity.com/paper/2505.05625/) (2025)
- [TopoFlow: Topography-aware Pollutant Flow Learning for High-Resolution Air Quality Prediction](https://mlsanity.com/paper/2602.16821/) (2026)
- [Inverse Neural Operator for ODE Parameter Optimization](https://mlsanity.com/paper/2603.11854/) (2026)

## Abstract (arXiv)

Atmospheric chemical mechanisms are commonly distributed in the language of the Kinetic PreProcessor (KPP), which generates efficient Fortran or C code but does not fit into the differentiable programming frameworks in which machine-learning models are developed. We present KPPax, a kinetic preprocessor that generates differentiable, just-in-time compiled, and vectorisable chemistry code in JAX from mechanisms written in the KPP language. KPPax evaluates the rate law with sparse operations in log space, which keeps it differentiable, and integrates the stiff system with the implicit solvers and the forward- and reverse-mode adjoints of the textttdiffrax library, so that exact sensitivities are obtained without hand-derived adjoint code. We demonstrate two applications with the POLLU benchmark mechanism. In the first, the Fisher information matrix computed from an automatically differentiated Jacobian predicts, before any fit, which of the 25 rate coefficients a flow-tube-like design can identify, and noisy synthetic estimation confirms the predicted uncertainties of the nine identifiable rate coefficients to within about 30% while revealing clusters of fast reactions of which only ratios are constrained. In the second, a neural-network correction of an emission inventory is trained offline on per-scenario 4D-Var retrievals and then fine-tuned online through the chemical model, which reduces the error of the biogenic correction by a factor of 2.4--5 and recovers information on low-temperature emissions that the individual retrievals lose. KPPax makes KPP mechanisms directly usable for parameter estimation and hybrid physics--machine-learning modelling.
