Physics-Informed Neural Networks (PINNs) and differentiable physics frameworks promise a revolution in scientific computing. By embedding physical laws—typically expressed as partial differential equations (PDEs)—directly into neural network training, these methods can solve forward and inverse problems without requiring massive, labeled datasets.
However, a glaring paradox sits at the heart of this research direction: while a trained physics-informed model can perform inference almost instantly, the computational overhead required to train the model often dwarfs the execution time of traditional numerical solvers.
To understand why physics-informed training is so computationally expensive, we must look under the hood at how physical constraints alter the optimization landscape, the mechanics of automatic differentiation, and the costs of unrolling physical simulators.
The Training Paradox
In classical deep learning, a network learns from static data points. The loss function simply measures the distance between the network's predictions and the ground-truth labels. In contrast, physics-informed models are often "data-free." As noted by Fei Ma 0008 et al., they substitute empirical data with mathematical constraints, forcing the network to satisfy PDEs across a continuous domain.
This shift introduces severe computational latency. As Zhiqiang Cai et al. demonstrate, the time required to train a neural network to solve a specific PDE is significantly higher than the execution time of optimized classical numerical solvers, such as the Finite Element Method (FEM). For one-off simulations, Shunyuan Mao et al. observe that PINNs can require orders of magnitude more time to converge than traditional grid-based solvers. The practical utility of these models is therefore restricted to downstream tasks like rapid surrogate modeling or real-time inference after an expensive initial training phase.
The Cost of Enforcing Physics via Differentiation
To understand why the training process is so slow, we must examine how physical laws are evaluated inside the optimization loop. To enforce a PDE, the training framework must compute the derivatives of the network’s outputs with respect to its inputs (such as spatial coordinates $x, y, z$ and time $t$).
Standard Backpropagation:
Loss(Output, Label) ──> Gradient w.r.t Weights ──> Update Weights
Physics-Informed Backpropagation:
Inputs (x, t) ──> Network ──> Output
│
┌──────────────────────┴──────────────────────┐
▼ ▼
Automatic Differentiation Automatic Differentiation
(First-Order: ∂u/∂x) (Second-Order: ∂²u/∂x²)
│ │
└──────────────────────┬──────────────────────┘
▼
Evaluate PDE Residual
│
▼
Gradient w.r.t Weights ──> Update Weights
This requirement relies heavily on Automatic Differentiation (AD). While AD is highly efficient for computing gradients of a scalar loss with respect to network weights, it scales poorly when computing high-order derivatives of outputs with respect to inputs. As Jinlong Fu et al. and Aiqing Zhu et al. highlight, calculating these high-order derivatives at every optimization iteration creates a massive computational bottleneck. Every additional derivative layer requires extra passes through the computational graph, drastically increasing memory consumption and runtime.
The burden compounds when the underlying physical equations involve complex mathematical operators. For instance, when dealing with equations that contain non-local or integral terms—such as the Fokker-Planck-Landau equation studied by Jae Yong Lee et al.—the network must evaluate heavy mathematical operators at every single collocation point during every optimization step, leading to extreme training delays.
Stiff Optimization Landscapes and High-Order Solvers
A second major driver of computational overhead is the mathematical nature of the physics-informed loss function itself. A typical PINN loss is a composite function balancing multiple, often conflicting objectives:
$$\mathcal{L}_{\text{total}} = \lambda_1 \mathcal{L}_{\text{residual}} + \lambda_2 \mathcal{L}_{\text{boundary}} + \lambda_3 \mathcal{L}_{\text{initial}}$$
This formulation creates a highly non-convex and "stiff" optimization landscape. As Marc Harkonen et al. explain, these models require significant training time because they easily fall into local minima where the network might satisfy the boundary conditions but fail the underlying PDE residual, or vice versa. Jie Bu describes this phenomenon as "competing physics losses," where gradients from different constraints cancel each other out, stalling convergence.
To overcome this stiffness and achieve the high-precision convergence required for scientific applications, standard first-order optimizers like Adam are often insufficient. Researchers frequently resort to second-order optimization methods, such as L-BFGS. However, as He Wang et al. point out, these second-order methods require computing or approximating the Hessian matrix, which dramatically increases the computational burden per iteration.
The Overhead of Differentiable Physics and Unrolling
The computational bottleneck is not unique to PINNs; it also plagues differentiable physics and unrolled simulators. Instead of approximating a continuous function, these architectures embed numerical physical operators or entire simulation steps directly into the neural network layers.
This architectural coupling introduces a severe memory and processing bottleneck. As Mahrokh Najaf et al. explain, standard training loops require executing a forward and backward pass through a complex physics model at every single gradient step.
When a model must learn by "unrolling" a physics-based simulator over time—such as the stabilized Langevin dynamics used by John Ingraham et al.—the backpropagation algorithm must track gradients through every single time step of the physical simulation. Similarly, embedding physical degradation operators into deep architectures, as explored by Noam Elata et al., introduces massive memory overhead. The network must retain the intermediate states of the physical system in memory to compute the backward pass, severely limiting the scalability of the training process for high-dimensional or long-duration simulations.
Mitigating the Overhead
Recognizing these limitations, the research community has focused heavily on mitigating training latency. Current strategies include:
- Multifidelity Modeling: Michael Penwarden et al. demonstrate that combining many "cheap," low-fidelity PINN runs with a few expensive, high-fidelity runs can drastically reduce the cumulative cost of parametric studies.
- Domain Decomposition: Architectures like GatedPINN, introduced by Patrick Stiller et al., use a Mixture of Experts approach to divide the physical domain into smaller sub-regions, enabling parallelized training across multiple GPUs.
- Adaptive Sampling: Rather than evaluating the PDE residual uniformly across the entire domain, adaptive sampling strategies dynamically redistribute collocation points to regions with high residuals or sharp gradients, maximizing the information gain of every automatic differentiation step.