Skip to main content
QUICK REVIEW

[Paper Review] How to Avoid Trivial Solutions in Physics-Informed Neural Networks

Raphael Leiteritz, Dirk Pflüger|arXiv (Cornell University)|Dec 10, 2021
Model Reduction and Neural NetworksPhysics and Astronomy8 citations
TL;DR

This paper proposes a novel penalty term and regular grid sampling strategy to prevent physics-informed neural networks (PINNs) from converging to trivial solutions—such as constant zero—when training with few collocation points. By penalizing sharp gradients in the physics loss and using structured sampling, the method reduces required collocation points by up to 80% while maintaining high accuracy on benchmark PDEs like the harmonic oscillator and Burgers' equation.

ABSTRACT

The advent of scientific machine learning (SciML) has opened up a new field with many promises and challenges in the field of simulation science by developing approaches at the interface of physics- and data-based modelling. To this end, physics-informed neural networks (PINNs) have been introduced in recent years, which cope for the scarcity in training data by incorporating physics knowledge of the problem at so-called collocation points. In this work, we investigate the prediction performance of PINNs with respect to the number of collocation points used to enforce the physics-based penalty terms. We show that PINNs can fail, learning a trivial solution that fulfills the physics-derived penalty term by definition. We have developed an alternative sampling approach and a new penalty term enabling us to remedy this core problem of PINNs in data-scarce settings with competitive results while reducing the amount of collocation points needed by up to 80 \% for benchmark problems.

Motivation & Objective

  • To address the failure of PINNs to generalize in data-scarce regimes due to convergence to trivial solutions like constant zero.
  • To reduce the number of collocation points needed for training PINNs without sacrificing prediction accuracy.
  • To investigate whether structured sampling (regular grid) outperforms randomized sampling (e.g., Latin Hypercube) in collocation point selection.
  • To develop a new regularization term that stabilizes training by penalizing abrupt changes in the physics loss gradient.
  • To validate the proposed improvements on standard PDE benchmarks, including the harmonic oscillator and Burgers' equation.

Proposed method

  • Introduces a new penalty term that penalizes the L2 norm of the gradient of the physics loss with respect to the network’s parameters, preventing sudden spikes that signal instability.
  • Replaces standard random collocation point sampling (e.g., Latin Hypercube) with equidistant regular grid sampling to improve spatial coverage and training stability.
  • Applies the combined method—gradient penalty and regular grid sampling—to PINNs trained on time-dependent PDEs, including the 1D harmonic oscillator and Burgers’ equation.
  • Uses PyTorch’s automatic differentiation to compute high-order derivatives of the neural network output for PDE constraint enforcement.
  • Evaluates performance via mean-squared error (MSE) between predictions and analytical solutions across 1000 equidistant test points.
  • Conducts 30 independent training runs per configuration to assess robustness and success rate (defined as MSE < 0.01).

Experimental results

Research questions

  • RQ1Can a gradient penalty on the physics loss prevent PINNs from collapsing to trivial solutions during training?
  • RQ2Does regular grid sampling of collocation points improve training stability and reduce the required number of points compared to random sampling?
  • RQ3To what extent can the number of collocation points be reduced while maintaining accurate PINN predictions?
  • RQ4Does the combination of gradient penalty and regular sampling yield better generalization than either method alone?
  • RQ5Do the proposed improvements generalize to more complex PDEs beyond the 1D harmonic oscillator?

Key findings

  • The proposed gradient penalty reduced the number of required collocation points by approximately 50% compared to standard PINN training, maintaining accurate predictions.
  • With regular grid sampling and the gradient penalty, PINNs achieved acceptable performance using only 12 collocation points—a reduction of up to 80% compared to baseline methods.
  • For 20 collocation points, regular grid sampling achieved a 100% success rate (MSE < 0.01) across 30 runs, while random sampling failed in the majority of cases.
  • The combination of gradient penalty and regular grid sampling prevented the PINN from snapping to the trivial constant-zero solution, even with very few collocation points.
  • The method successfully stabilized training on both the harmonic oscillator and Burgers’ equation, demonstrating transferability to more complex PDEs.
  • The success rate (ρ) for regular grid sampling reached 1.0 at around 20 collocation points, while random sampling showed significantly lower success rates at the same point.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.