Respecting causality for training physics-informed neural networks

Sifan Wang, Shyam Sankaran, Paris PerdikarisComputer 2024

Introduction

Physics-Informed Neural Networks (PINNs) have emerged as a powerful tool for solving partial differential equations (PDEs) by embedding physical laws directly into the loss function of a neural network. Despite their success in many domains, PINNs have historically struggled with chaotic, multi-scale, or turbulent systems. This paper identifies a fundamental "pathology" in standard PINN training: the violation of temporal causality. By introducing a novel causal weighting scheme, the authors demonstrate that respecting the "arrow of time" is the key to unlocking PINN performance for complex dynamical systems.

The Pathology of Temporal Causality

Standard PINNs typically minimize the physical residual across the entire space-time domain simultaneously. However, in chaotic systems, small errors at early time steps propagate and amplify exponentially, leading to massive divergences at later times. If a network attempts to minimize the residual at $t=1.0$ before it has accurately captured the physics at $t=0.1$, it falls into erroneous local minima.

Comparison of reference and standard PINN prediction for the Allen-Cahn equation, demonstrating the failure to maintain accuracy over time as the model fails to respect temporal causality.

Neural Tangent Kernel (NTK) analysis conducted by the authors reveals an implicit bias in standard PINNs toward learning later time steps first—the exact opposite of physical reality. This mismatch between training dynamics and physical causality prevents convergence in challenging regimes like the Allen-Cahn equation or high-Reynolds-number fluid flows.

Causal Training Methodology

To address this, the authors propose Causal Training, a remarkably simple yet effective re-formulation of the PINN loss function. Instead of a uniform sum of residuals, they introduce a time-dependent weight $w_i$ for each time step $t_i$:

$$w_i = \exp(-\epsilon \sum_{k=1}^{i-1} \mathcal{L}_r(t_k))$$

This weighting scheme ensures that if the residual at previous time steps is large, the weight for the current time step remains near zero. Effectively, the optimizer is forced to "fix" the physics of the past before it is allowed to consider the future.

Evolution of loss and causal weights during training. The weights $C(t)$ act as a built-in progress bar, ensuring that earlier time steps are resolved before the network focuses on later ones.

To complement this approach, the authors utilize Taylor-mode Automatic Differentiation for efficient high-order derivative calculation and modified MLP architectures with encoder layers to better capture sharp gradients.

Key Results and Benchmarks

The causal training approach was tested against a suite of difficult physical benchmarks, including the chaotic Lorenz system, the Kuramoto–Sivashinsky equation, and 2D Navier-Stokes equations.

  • Accuracy: On the Allen-Cahn benchmark, causal training achieved a relative $L^2$ error of $1.43 \times 10^{-3}$, representing a 10-100x improvement over previous state-of-the-art PINN methods.
  • Breaking the Chaos Barrier: This work marks the first successful PINN simulation of the chaotic Lorenz system and turbulent Navier-Stokes regimes without relying on external training data.
  • Efficiency: The integration of Taylor-mode AD provided a 3-5x speedup in training time for high-order PDEs compared to standard backpropagation methods.

Conclusion

By simply changing the order in which a neural network learns the physics of a system, the authors have solved a long-standing bottleneck in scientific machine learning. While PINNs remain slower than specialized numerical solvers for forward simulation, the causal training framework provides a robust path forward for applying neural networks to the most challenging problems in fluid dynamics and chaotic systems. Future work will look to extend these causal principles to inverse problems and more complex mathematical structures.

Summary updated

BibTeX
@inproceedings{wang2024respecting,
  author = {Sifan Wang and Shyam Sankaran and Paris Perdikaris},
  title = {{Respecting causality for training physics-informed neural networks}},
  booktitle = {Computer},
  year = {2024},
  doi = {10.1016/j.cma.2024.116813},
}
Figure