TL;DR
When using neural networks as fast physics simulators for design or control, getting the output right isn’t enough—the network also needs accurate derivatives (how nudging an input changes the output). Normally, teaching a network these sensitivities requires precomputing massive, rigid datasets of derivative labels using slow classical solvers. This paper introduces a drop-in training loss that teaches neural operators accurate derivatives on the fly directly from the governing equations—no extra data generation or storage required.
What Problem Does This Paper Address?
Neural operators (like Fourier Neural Operators, or FNOs) learn to map input functions to PDE solutions, acting as rapid surrogates for traditional physics solvers. Increasingly, engineers plug these surrogates into optimization, inverse design, and control loops. In those loops, you differentiate through the network. Here’s the catch: a neural network can predict PDE solutions accurately while having a noisy, wildly inaccurate Jacobian (its input-output derivative map), sending gradient-based optimizers in the wrong direction.
"Derivative-informed" (or Sobolev) training fixes this by supervising the network's derivatives alongside its outputs. However, existing methods rely on a heavy offline pipeline: for every training sample, you run a classical PDE solver dozens of times to compute exact directional derivatives, then save tens of gigabytes of tensors to disk. Change your grid resolution or input distribution? Delete everything and start days of computation over. The authors ask: if we already know the PDE equations, can we ditch the offline derivative dataset entirely?
Methods
The authors propose Sketched Tangent Consistency Loss (sTCL), an architecture-agnostic regularization term added to standard data-fitting loss. Instead of matching precomputed derivative labels, sTCL checks whether the network's derivatives obey the PDE's forward sensitivity equation (the linearized physics governing small perturbations).
Two ingredients make this work:
- Directional Sketching: Materializing a full Jacobian matrix during training is computationally impossible. Instead, at each step, sTCL samples a tiny number of random perturbation directions ($q = 4$) in the input space and uses forward-mode automatic differentiation to compute fast Jacobian–vector products (JVPs).
- Operator-Aware Conditioning: Minimizing a raw sensitivity residual squares the condition number of the underlying tangent operator ($\kappa(A^\top A) = \kappa(A)^2$). For stiff or resonant PDEs, raw residuals produce terrible gradient signals. To fix this without actually solving the PDE during training, the authors apply cheap, physics-matched preconditioners—such as fast Discrete Sine Transform (DST) inverse-Laplacians for stiff elliptic equations, or 5 quick steps of MINRES for indefinite wave equations.
Datasets
Rather than introducing new standalone datasets, the authors evaluate sTCL across five standard parametric PDE benchmarks spanning diverse mathematical behaviors, each tested across three dataset sizes (ranging from $N=32$ to $N=2048$):
- Nonlinear diffusion–reaction (stiff elliptic)
- Helmholtz (indefinite elliptic with near-resonant modes)
- Burgers (parabolic with advective dynamics)
- Allen–Cahn (parabolic phase-field)
- Navier–Stokes (coupled velocity-pressure saddle-point system)
Key Insights and Ideas
- Physics-informed training lifted to derivatives: Standard Physics-Informed Neural Networks (PINNs) sample random space-time points to enforce PDE values on average. sTCL mirrors this via Hutchinson’s trace estimator: it samples random input functions (directions) to enforce derivative physics in expectation.
- Cheap conditioning beats exact solving: A natural worry is that on-the-fly training just shifts expensive offline PDE solves into the GPU training loop. The authors show you don't need solver-accurate targets during training; a rough, cheap preconditioner (like 5 iterations of MINRES) smooths the loss landscape enough for SGD to learn accurate sensitivities.
- Squaring the spectrum is the silent killer: Naive label-free sensitivity penalties fail not because sketching is noisy, but because squaring a stiff or resonant differential operator ruins first-order optimization—connecting derivative learning directly to known PINN training pathologies.
Key Results
Using an identical FNO backbone, sTCL was compared against standard FNO (no derivative supervision) and Offline DI (trained on precomputed exact tangent labels) across 15 benchmark cells:
- Solution Accuracy: sTCL beat standard FNO in all 15 test cells and landed within $1.2\times$ of Offline DI's relative error in 11 of 15 cells (and within $1.5\times$ in 14 of 15).
- Jacobian Accuracy: sTCL recovered the vast majority of Offline DI's sensitivity gains over standard FNO. On Burgers ($N=32$), Jacobian error dropped from $749.7\%$ (FNO) to $74.8\%$ (sTCL), closely tracking Offline DI ($67.8\%$). At $N=512$ on Burgers, sTCL ($73.5\%$) was notably more stable than Offline DI ($178.1\%$). On Helmholtz ($N=512$), sTCL outperformed Offline DI on Jacobian error ($13.8\%$ vs. $19.5\%$).
- Wall-Clock Time: Training times for sTCL and Offline DI are on the same order of magnitude (e.g., $1976\text{ s}$ vs. $1796\text{ s}$ on nonlinear diffusion; $2144\text{ s}$ vs. $2208\text{ s}$ on Burgers)—before counting the hours of offline CPU solver time and gigabytes of disk storage that sTCL completely eliminates.
Limitations and Future Work
- Requires white-box physics: sTCL needs a known, differentiable PDE residual and access to its linearization. Purely black-box simulators or empirical datasets with unknown governing equations are out of scope.
- Coupled-system overhead: While training times usually match Offline DI, Navier–Stokes took roughly twice as long ($9990\text{ s}$ vs. $4810\text{ s}$) because differentiating momentum, incompressibility, and boundary terms simultaneously adds per-step overhead.
- Future directions: The authors point toward developing stronger preconditioners for coupled systems, adaptive inner-iteration schedules for indefinite operators, and broader hyperparameter tuning.
Summary updated