Derivative-Informed Training of Neural Operators On-the-Fly via Sketched Tangent Consistency
Organizations: Department of Industrial and Systems Engineering, University of Minnesota Minneapolis, MN 55455 · Department of Statistics and Data Science, Yale University New Haven, CT 06511, USA
Abstract
Derivative-informed training improves neural operators by directly supervising their input-output sensitivities, which is crucial when neural operators are used as differentiable surrogates for inverse problems, PDE-constrained optimization, design, and control. However, existing methods rely on offline-generated derivative labels, making data generation slow, storage-intensive, and difficult to adapt across datasets, resolutions, or perturbation bases. We propose sketched tangent consistency loss (sTCL), an on-the-fly derivative-informed training objective that, for PDEs with a known and differentiable residual, enforces sensitivity consistency directly from the governing equation without offline tangent labels or neural-operator architecture changes. sTCL uses randomly sketched input perturbations to provide a lightweight derivative-level physics constraint during training. However, raw forward-sensitivity residual penalties can fail for stiff, ill-conditioned, indefinite, or coupled saddle-point tangent operators. To address this, we introduce lightweight operator-aware loss-conditioning mechanisms selected by a simple tangent-operator decision rule. Across Helmholtz, nonlinear diffusion-reaction, Burgers, Allen-Cahn, and Navier-Stokes, with the same neural-operator backbone for all methods, the PDE-specific sTCL losses achieve solution and Jacobian accuracy comparable to offline derivative-informed training (DIFNO) while eliminating the offline derivative-data generation and storage pipeline. These results show that on-the-fly derivative-informed training need not merely amortize offline tangent-solve cost into training; with appropriate sketching and loss design, sTCL provides an effective drop-in path to derivative-informed neural operators. Code is available at https://github.com/yang9579/Derivative-informed-traning-on-the-fly.
Figures & tables
| Benchmark | Equation / map | Tangent class | Tangent feature | sTCL form |
|---|---|---|---|---|
| Nonlinear diffusion | -\nabla\!\cdot(e^{{\color[rgb]{0,0,1}a}}\nabla{\color[rgb]{1,0,0}u})+{\color[rgb]{1,0,0}u}^{3}=f | SPD elliptic | Stiff elliptic spectrum | DST inverse-Laplacian residual |
| Helmholtz | (-\Delta-\kappa^{2}e^{2{\color[rgb]{0,0,1}a}}){\color[rgb]{1,0,0}u}=f | Indefinite elliptic | Near-resonant modes | MINRES target matching |
| Burgers | {\color[rgb]{1,0,0}u}_{t}+{\color[rgb]{1,0,0}u}\,{\color[rgb]{1,0,0}u}_{x}=\nu{\color[rgb]{1,0,0}u}_{xx}+{\color[rgb]{0,0,1}f(t)} | Parabolic, non-self-adjoint | Advective dynamics | RHS-normalized space–time residual |
| Allen–Cahn | \begin{gathered}{\color[rgb]{1,0,0}u}_{t}=\varepsilon^{2}{\color[rgb]{1,0,0}u}_{xx}+{\color[rgb]{1,0,0}u}-{\color[rgb]{1,0,0}u}^{3},\\ {\color[rgb]{1,0,0}u}(x,0)={\color[rgb]{0,0,1}a(x)}\end{gathered} | Parabolic, phase-field | Interface-sensitive coarsening | Raw space–time residual |
| Steady NS | \begin{gathered}-\mu\Delta{\color[rgb]{1,0,0}y}+({\color[rgb]{1,0,0}y}\!\cdot\!\nabla){\color[rgb]{1,0,0}y}+\nabla{\color[rgb]{1,0,0}p}={\color[rgb]{0,0,1}u},\\ \nabla\!\cdot\!{\color[rgb]{1,0,0}y}=0\end{gathered} | Non-self-adjoint saddle point | Pressure coupling and advection | Leray–Oseen-preconditioned residual |
| PDE | Pure FNO | sTCL | Offline DI | |
|---|---|---|---|---|
| Helmholtz | 128 | |||
| 512 | ||||
| 1024 | ||||
| Nonlin. diffusion | 128 | |||
| 512 | ||||
| 1024 |
| PDE | Pure FNO | sTCL (on the fly) | Offline DI (training only) |
|---|---|---|---|
| Helmholtz | (MINRES-5) | ||
| Nonlin. diffusion | (DST-precond.) | ||
| Burgers | (normalized residual) | ||
| Allen–Cahn | (raw ) | ||
| Steady NS | (Leray–Oseen) |
| PDE | Pure FNO | sTCL | Offline DI | |
|---|---|---|---|---|
| Helmholtz | 128 | |||
| 512 | ||||
| 1024 | ||||
| Nonlin. diffusion | 128 | |||
| 512 | ||||
| 1024 |
| Function rel. err. | Jacobian rel. err. | Training time (s) | |
|---|---|---|---|
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| PDE | Offline-DI bank | sTCL form | Notes | |
| Helmholtz | per- (see below) | MINRES- target-matching | validation-selected 5-pt grid | |
| : for both methods; : for both; : (offline DI), (sTCL). | ||||
| Nonlin. diffusion | DST inverse-Laplacian residual | per-cell selected from 6-pt grid | ||
| Burgers | RHS-normalized space–time residual | PDE-level selected from 5-pt grid | ||
| Allen–Cahn | raw space–time residual | PDE-level selected from 5-pt grid | ||
| Steady NS | per- (see below) | Leray–Oseen-preconditioned residual | validation-selected 4-pt grid | |
| Field | JVP | Field | JVP | Field | JVP | |
|---|---|---|---|---|---|---|
| Benchmark | |||||||
|---|---|---|---|---|---|---|---|
| Nonlin. diffusion |
| Grid | Dim. | Raw sTCL | Weighted sTCL | Total | |
|---|---|---|---|---|---|
Neural Operators
Neural operators learn mappings between functions, enabling fast surrogates for PDEs and other continuous physical systems.
See all 313 papers