jaxdae: A JAX-native Differentiable Solver for Differential-Algebraic Equations in Coupled Multi-physics
Abstract
Many engineered models begin as partial differential equations. Spatial discretization converts them into ordinary differential equations coupled to algebraic constraints---conservation closures, constitutive laws, network topology---whose joint evolution is a differential-algebraic equation (DAE). Parameter inversion, uncertainty quantification, Bayesian inference, and optimal control all require gradients of this solve. The two software traditions that should supply them have not met: industrial acausal modeling tools simulate DAEs forward but stop at reverse-mode differentiation, while differentiable-physics frameworks in JAX handle explicit ODEs and PDEs but leave the algebraic-constraint layer untouched. Here we show that the forward DAE solve and its reverse-mode sensitivity can be unified in one JAX-native suite. jaxdae pairs adaptive BDF, Radau, and Rosenbrock integration with Pantelides index reduction and dummy derivatives, and makes the adaptive BDF path differentiable by freezing the accepted step grid and re-solving a variable-step BDF-2 on it for the backward pass. The full pipeline differentiates under one call, XLA fuses a batched parameter sweep into one program whose wall time stays nearly flat from batch~1 to~1000, and the DAE becomes a differentiable primitive for inference, control, and design.
Create a lesson
Metadata
- Categories
- cs.MS, cs.SY, eess.SY
Related papers
An Asynchronous multi-rate Taylor method for Delay Differential Equations
Shared title terminologycs.MSAvinash Malik
diff-soup: GPU-native Differentiable Simulation and Inference for Large-scale Stiff Dynamical Systems
Shared title terminologycs.MSSamuel Degnan-Morgenstern, Martin Z. Bazant
py-ARGOS: A Python package for automatic, statistically principled discovery of ordinary differential equations from data
Shared title terminologycs.MSYuzheng Zhang, Rui Carvalho
Native Rectangular Linear Assignment with Implicit Rejection: A Jonker-Volgenant Solver without Square Expansion
Shared title terminologycs.MSRatha Siv, Raphael Reme, Matei Mancas et al.
JAX-AMG: A GPU-Accelerated Differentiable Sparse Linear Solver Library for JAX
Shared title terminologycs.MSYi Liu, Xiantao Fan, Jian-Xun Wang
pyHB: an open-source automatic-differentiation-enhanced semi-analytical solver for nonlinear dynamics
Shared title terminologycs.MSYuhong Jin, Qi Liu, Lei Hou et al.