TL;DR
Derivative Learning (DERL) trains neural networks on dynamical physical systems by supervising their partial derivatives rather than raw state outputs. Paired with boundary conditions, this formulation theoretically guarantees convergence to the true physical solution and dramatically outperforms standard physics-informed neural networks (PINNs) and output-based models. Furthermore, distilling derivatives enables seamless, incremental knowledge transfer across extended domains, longer time horizons, and unseen PDE parameters without catastrophic forgetting.
What Problem Does This Paper Address?
Predicting the evolution of dynamical systems (governed by ODEs and PDEs) is a cornerstone of scientific machine learning. However, current paradigms face a difficult trade-off:
- Purely data-driven supervised models (fitting outputs $u(t, x)$ directly) easily overfit, violate underlying physical laws, and fail when generalizing out-of-distribution (e.g., to unseen parameters or initial conditions).
- Physics-Informed Neural Networks (PINNs) enforce physical consistency via PDE residual loss terms evaluated using automatic differentiation. However, they frequently suffer from severe optimization pathologies, loss imbalances, and failure to propagate information temporally from initial conditions.
- Lack of modularity and transfer: Physical models are typically trained from scratch in isolation. Transferring learned dynamics to expanded domains or larger time spans without retraining—or without forgetting previous solutions—remains largely unsolved.
Methods
-
Derivative Learning (DERL): Instead of learning the function values $u(t, x)$ over domain $\Omega$, DERL trains a multi-layer perceptron (MLP) $\hat{u}$ to match the Jacobian (gradient) of the target function $Du$, anchored only by initial conditions (IC) and boundary conditions (BC): $$\mathcal{L}(\hat{u}, u) = \lambda_u \|D\hat{u} - Du\|_2^2 + \lambda_B \|\hat{u} - b\|_2^2 + \lambda_I \|\hat{u}(0, \cdot) - g\|_2^2$$ When analytical derivatives are unavailable, DERL computes empirical derivatives using finite differences on sampled or interpolated data points.
-
Theoretical Guarantees: Using Sobolev space theory ($W^{1,2}$) and generalized Poincaré inequalities, the authors prove that when the DERL loss approaches zero, $\hat{u} \to u$ in both the interior and the boundary. Consequently, if the target function solves a continuous PDE $\mathcal{F}[u] = 0$, DERL’s prediction satisfies $\mathcal{F}[\hat{u}] \to 0$ without ever seeing or evaluating the PDE operator during training.
-
Derivative Knowledge Distillation: To incrementally extend models to new spatial domains, longer time windows, or new physical parameters, a student model optimizes the PDE residual on the new sub-domain while preserving prior knowledge via derivative distillation from a frozen teacher model: $$\mathcal{L}_{\text{distill}} = \|D\hat{u}_T - D\hat{u}_S\|_2^2$$
Datasets and Benchmarks
The authors evaluate DERL across five diverse physical systems:
- Allen-Cahn Equation: Non-linear reaction-diffusion PDE evaluated in static, single-parameter, and double-parameter configurations.
- 2D Continuity Equation: Mass conservation under a rotating velocity field with Gaussian initial density distributions.
- Navier-Stokes (Kovasznay Flow): 2D laminar fluid flow behind a grid, evaluating velocity, pressure, and vorticity.
- Damped & Conservative Pendulum: Non-linear ODE evaluated across 50 trajectories with varied initial conditions $(u_0, \dot{u}_0)$.
- Korteweg-de Vries (KdV) Equation: Third-order non-linear dispersive wave PDE evaluated for multi-stage temporal transfer and higher-order (Hessian) distillation.
- Neural Conservation Laws (NCL) Benchmark: 3D Euler equations for incompressible inviscid fluid flow within a unit ball.
Key Insights and Ideas
- Derivatives alone contain all needed shape information: Unlike Sobolev training (SOB), which combines both output loss $\|u - \hat{u}\|_2^2$ and derivative loss $\|Du - D\hat{u}\|_2^2$, DERL discards the output loss in the domain interior. This avoids conflicting gradient directions during optimization, resulting in cleaner convergence and superior accuracy.
- Physics consistency without PDE supervision: Theorem 3.3 demonstrates that matching gradients and boundary values strictly forces the network into physical compliance ($\mathcal{F}[\hat{u}] \to 0$).
- Distilling derivatives beats full joint training: When transferring knowledge across sub-domains or time intervals, distilling derivatives prevents catastrophic forgetting and actually outperforms a single PINN trained jointly over the entire domain ("PINN-full"), overcoming the optimization hurdles that typically plague global PINNs.
- Higher-order derivatives for higher-order PDEs: For 3rd-order PDEs like KdV, distilling 2nd-order derivatives (Hessians) dramatically reduces PDE residuals compared to output distillation (which fails completely, yielding residuals two orders of magnitude worse).
Key Results
- In-Domain Modeling:
- Allen-Cahn: DERL achieved an $L^2$ error of $6.84 \times 10^{-4}$ (vs. $56.95 \times 10^{-4}$ for standard output learning OUTL) and reduced PDE residuals to $1.93 \times 10^{-3}$ (vs. $7.11 \times 10^{-3}$ for OUTL+PINN).
- Navier-Stokes: DERL lowered solution error to $0.67 \times 10^{-5}$ and vorticity error to $0.66 \times 10^{-4}$, outperforming OUTL+PINN ($3.33 \times 10^{-5}$ and $5.04 \times 10^{-4}$) and SOB ($1.13 \times 10^{-5}$ and $1.08 \times 10^{-4}$).
- Parameter & Initial Condition Generalization:
- Damped Pendulum: On unseen initial conditions, DERL achieved an angular velocity error of $1.30 \times 10^{-2}$ (vs. $5.77 \times 10^{-2}$ for OUTL and $7.61 \times 10^{-2}$ for OUTL+PINN). DERL’s learned initial vector field error ($0.4445$) even beat physics-tailored Hamiltonian ($0.4470$) and Lagrangian ($0.4496$) neural networks.
- Parametric Allen-Cahn: DERL halved the test error of OUTL on single- and dual-parameter variations.
- Knowledge Transfer & Distillation:
- KdV Timespan Extension: Incremental 3-stage continual transfer using DERL achieved an error of $2.38 \times 10^{-2}$ on the full interval $[0, 1]$, beating standard monolithic PINNs ($9.80 \times 10^{-2}$) and experience replay PINNs ($5.37 \times 10^{-2}$).
Limitations and Future Work
- Computational Overhead: Evaluating higher-order differentials (e.g., Hessians) via automatic differentiation increases backpropagation time per epoch compared to simple output learning.
- Finite Difference Sensitivity: While empirical derivatives proved resilient under moderate noise ($\sigma \le 0.05$) and varying step sizes ($h \le 0.05$), very sparse or heavily corrupted data requires accurate spatial interpolation (e.g., cubic splines) to yield reliable finite differences.
- Sequence Length in Continual Learning: Experiments were limited to 2 or 3 incremental stages; scaling to extensive task sequences in full-fledged lifelong physical learning is left for future exploration.
Summary updated