Skip to content

jaxdae: A JAX-native Differentiable Solver for Differential-Algebraic Equations in Coupled Multi-physics

Jul 2026 · arXiv.org · Vol abs/2607.23202 · 0 citations · 63 references
Computer Science Engineering

TL;DR

It is shown that the forward DAE solve and its reverse-mode sensitivity can be unified in one JAX-native suite, and the DAE becomes a differentiable primitive for inference, control, and design.

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 $\texttt{jax.grad}$ 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.

View source

Similar papers

#machine learning Preprint Sep 2026

A Systematic Analysis of Automatic Differentiation versus Discretization-based Constraints for Physics-Informed PDE Solvers

As nonlinearity strengthens, the accuracy advantage of discretization-based constraints becomes increasingly pronounced, with smaller optimization errors compensating for the truncation errors, and the more complex the nonlinearity and boundary conditions, the greater the advantage of GNN over MLP.

Xing Guo, Hong-Wei Tang, Ze-Wei Meng et al. · 0 citations
Preprint Aug 2026

Physics-Informed Stochastic Configuration Machine: A Backpropagation-Free Neural Network with Fast Training for Nonlinear Differential Equations

The Physics-Informed Stochastic Configuration Machine is proposed, a novel backpropagation-free framework for both forward and inverse problems in differential equations that achieves high-fidelity predictive accuracy and robust parameter identification while accelerating the training process by orders of magnitude com...

Yueze Song, Zhong-Zhe Chen, Li-Hui Cen et al. · 0 citations
Preprint Sep 2026

Diff-NekRS: A Scalable Differentiable Framework for Multi-Timestep Solver-in-the-Loop Training

Diff-NekRS is introduced, a scalable differentiable framework that embeds neural corrections directly in the GPU-accelerated NekRS incompressible-flow solver, and establishes a verified and scalable path for multi-timestep solver-in-the-loop training that improves coarse-grid trajectory accuracy while retaining a speed...

Junoh Jung, R. Balin, Bethany Lusch et al. · 0 citations
Preprint Aug 2026

Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation

Differentiable simulation is a key component in learning, control, and inverse problems, where gradients through nonlinear implicit solvers are required. Existing approaches either rely on unrolled automatic differentiation, whose memory grows with solver depth, or on equation-level implicit differentiation, which asse...

Lei Shu, Ying Jiang, Kui Wu et al. · 1 citation
Preprint Aug 2026

PDE Realization and Structure-Aware Solvers for a Compact Two-Stage Fourth-Order IMEX Method

This paper develops a PDE realization and solver framework for a compact two-stage fourth-order two-derivative implicit--explicit time discretization for stiff split problems. The key difficulty is a consistency--cost coupling: full-field temporal differentiation is required to preserve the mixed explicit--implicit int...

Zhi-Xin Huo · 0 citations
#machine learning Preprint Sep 2026

GRADSOLVE: fast exact gradients for ODE ensembles on GPUs

Ordinary differential equations (ODEs) underlie models in science and engineering, and many applications need derivatives of their solutions with respect to parameters. Ensembles of independent trajectories suit graphics processing units (GPUs), but current GPU software forces a trade-off: the fastest ensemble solvers...

A. S. Mancini · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.