The limits of exactness: On the failure of automatic differentiation in physics-informed machine learning

Jagtap, Ameya D.

–arXiv.org Artificial Intelligence 

Automatic differentiation (AD) is, in a real sense, the invention that made modern deep learning possible. Its reverse-mode variant, first described by Seppo Linnainmaa in the 1970s and later formalized by Andreas Griewank and others, became the mathematical engine behind backpropagation, and it now underlies almost every neural network trained today [1, 2, 3, 4]. Over the past decade, AD has taken on a second job. Instead of only computing gradients of a loss function with respect to network weights, it is now routinely used to compute the derivatives that appear inside partial differential equations (PDEs) themselves; the ingredient at the heart of physics-informed neural networks (PINNs) [5, 6], SINDy [7], the Deep Ritz method [8], the Deep Galerkin method [9], physics-informed Kolmogorov-Arnold networks (PIKANs) [10, 11], physics-informed neural operators (PINOs) such as DeepONet [12] and Fourier Neural Operators [13], physics-informed generative models (PI-GEN) [14, 15], physics-informed computer vision (PICV) [16], and scientific foundation models (SciFMs) [17]. This second job is seductive precisely because AD is exact. Unlike finite differences, AD carries no discretization error; it differentiates the network's computational graph term by term via the chain rule and returns a derivative accurate to floating-point precision. It is natural, then, to assume that a method built on exact derivatives will faithfully reproduce the physics encoded in a PDE. This paper argues that this assumption is only partly true, and that the gap between it and reality has practical consequences for how reliable PDE-driven neural surrogates actually are.