Is $L^2$ Physics Informed Loss Always Suitable for Training Physics Informed Neural Network?

Chuwei Wang, Shanda Li, Di He, Liwei Wang

TL;DR

While $L^2$ loss is the industry standard for training Physics-Informed Neural Networks (PINNs), this paper proves it is fundamentally unsuitable for high-dimensional non-linear PDEs like the Hamilton-Jacobi-Bellman (HJB) equation. The authors demonstrate that $L^2$ loss lacks "stability" in high dimensions, and they propose a novel adversarial training algorithm to minimize $L^\infty$ loss, leading to significantly more accurate solutions.

What Problem Does This Paper Address?

PINNs solve partial differential equations (PDEs) by using a neural network to approximate the solution and minimizing a "physics-informed loss"—essentially the residual of the PDE. Traditionally, researchers use the $L^2$ norm (mean squared error) for this loss.

The authors identify a critical gap: a small $L^2$ loss does not necessarily guarantee a good approximation of the true solution, especially in high-dimensional non-linear problems. They focus on the Hamilton-Jacobi-Bellman (HJB) equation, a cornerstone of optimal control theory used in everything from robotics to finance. In high dimensions, the HJB equation becomes "unstable" under $L^2$ loss, meaning the learned solution can be arbitrarily far from the ground truth even if the training loss is near zero.

Methods

The paper shifts the paradigm from $L^2$ to $L^\infty$ (maximum residual) loss. Because $L^\infty$ is notoriously difficult to optimize directly using standard gradient descent, the authors introduce an Adversarial Training approach:

  1. Inner Loop (The Adversary): For a fixed neural network, the algorithm searches for "adversarial points" in the domain where the current PDE residual is highest. This is done using a gradient-ascent-based update rule (similar to Projected Gradient Descent in robust machine learning).
  2. Outer Loop (The Solver): The neural network parameters are updated to minimize the residuals at these specific adversarial points.

By iteratively finding and fixing the "worst-case" errors, the network converges toward a solution that satisfies the $L^\infty$ stability requirements.

Datasets

As is common in PDE research, the "datasets" consist of simulated high-dimensional control problems where exact or highly accurate solutions are known for comparison:

  • Linear Quadratic Gaussian (LQG) Control: Tested in 100 and 250 dimensions.
  • Other HJB variants: The authors mention additional testing on power-law trading cost models and Merton’s portfolio problems.

Key Insights and Ideas

  • The Stability-Loss Link: The authors leverage the mathematical concept of PDE stability to show that for a learned solution to be reliable, the choice of $L^p$ loss must be tied to the problem's dimensionality.
  • The Curse of Dimensionality in Loss Design: They prove that for HJB equations, the loss must use a $p$-norm where $p$ is sufficiently large (proportional to the dimension $n$). For a 250-dimensional problem, $L^2$ is mathematically "too weak" to constrain the solution.
  • Optimization vs. Approximation: While high $p$-norms (like $L^{16}$) are theoretically better than $L^2$, they are harder to optimize. The adversarial $L^\infty$ approach provides the theoretical benefits of high $p$ while remaining numerically stable and trainable.
  • Gradient Accuracy: The proposed method doesn't just fit the value of the solution better; it significantly improves the accuracy of the solution's gradients, which is vital for calculating optimal control laws.

Key Results

The adversarial training method (L-inf-PINN) was compared against the original PINN and several advanced baselines (like adaptive time sampling and learning rate annealing). The visual and quantitative improvements are stark.

Comparison of exact solution, L2 PINN, and the proposed adversarial L-inf PINN
  • 100-Dimensional LQG: The proposed method achieved a 0.27% $L^1$ relative error, compared to 3.47% for the original PINN.
  • 250-Dimensional LQG: The error stayed low at 0.95%, while the original PINN jumped to 6.74%.
  • Sobolev Error ($W^{1,1}$): This measures the error in both the solution and its derivatives. In 250D, the proposed method had an error of 4.38%, whereas the original PINN reached 17.51%, demonstrating that $L^2$ PINNs struggle to capture the "shape" of the solution in high dimensions.

Limitations and Future Work

  • Scope of Equations: The theoretical proofs and experiments are primarily focused on the HJB equation. While HJB is a massive field, it remains to be seen if this adversarial approach is equally necessary for other classes of non-linear PDEs (like Navier-Stokes).
  • Computational Overhead: Adversarial training requires an inner optimization loop (setting $K=20$ iterations in their tests), which makes each training step significantly slower than standard $L^2$ sampling.
  • Hyperparameter Sensitivity: The method introduces new parameters, such as the inner-loop step size ($\eta$) and iteration count ($K$), which require careful tuning to ensure the "adversary" is strong enough to be useful but not so strong that it breaks training.

Summary updated

BibTeX
@inproceedings{wang2022is,
  author = {Chuwei Wang and Shanda Li and Di He and Liwei Wang},
  title = {{Is $L^2$ Physics Informed Loss Always Suitable for Training Physics Informed Neural Network?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=cy1TKLRAEML},
}
Figure