Skip to main content
QUICK REVIEW

[Paper Review] Physics-guided generative adversarial network to learn physical models

Kazuo Yonekura|arXiv (Cornell University)|Apr 22, 2023
Model Reduction and Neural NetworksPhysics and Astronomy3 citations
TL;DR

This paper proposes a physics-guided generative adversarial network (PG-GAN) that enforces physical consistency in deep learning outputs by using physical equations as an external discriminator, rather than embedding them in the loss function. Unlike physics-informed neural networks (PINNs), PG-GAN decouples the physical model from the neural network’s computation graph, enabling use of arbitrary, non-differentiable, or commercial physics software. In a test on Newtonian motion, PG-GAN reduced median residual error to 1.07, outperforming standard GAN and PI-GAN, and further improved when combined with PI-GAN (median 1.05, IQR 1.71).

ABSTRACT

This short note describes the concept of guided training of deep neural networks (DNNs) to learn physically reasonable solutions. DNNs are being widely used to predict phenomena in physics and mechanics. One of the issues of DNNs is that their output does not always satisfy physical equations. One approach to consider physical equations is adding a residual of equations into the loss function; this is called physics-informed neural network (PINN). One feature of PINNs is that the physical equations and corresponding residual must be implemented as part of a neural network model. In addition, the residual does not always converge to a small value. The proposed model is a physics-guided generative adversarial network (PG-GAN) that uses a GAN architecture in which physical equations are used to judge whether the neural network's output is consistent with physics. The proposed method was applied to a simple problem to assess its potential usability.

Motivation & Objective

  • To address the limitation of physics-informed neural networks (PINNs) that require differentiable physical equations to be embedded in the neural network's computation graph.
  • To enable the use of arbitrary physical models—including non-differentiable or commercial software—without modifying the neural network architecture.
  • To improve physical consistency in generative models by using a physics-based discriminator that evaluates outputs independently of the training loss.
  • To reduce the residual error of generated physical solutions, especially in cases where PINNs struggle with convergence or gradient issues.
  • To demonstrate that decoupling physical validation from the loss function enables more robust and flexible training of deep generative models for physical systems.

Proposed method

  • The PG-GAN uses a standard GAN architecture with a generator network $G$ that maps noise $\boldsymbol{z}$ and a condition $\theta$ to generated data $\boldsymbol{x}' = G(\boldsymbol{z} \mid \theta)$.
  • A discriminator network $D$ is trained to classify generated data as 'true' if their physical residual $P(\boldsymbol{x}' \mid \theta) \leq \varepsilon$, otherwise 'fake', where $\varepsilon$ is a threshold controlling physical consistency.
  • Physical equations are evaluated externally: if the residual $P(\boldsymbol{x}' \mid \theta)$ is below $\varepsilon$, the output is considered physically valid and labeled as 'real'.
  • The loss function is modified to include a physical consistency term: $V_\varepsilon(G,D) = \mathbb{E}_{G(\boldsymbol{z}) \in \mathcal{R}_\varepsilon}[\log D(\boldsymbol{x})] + \mathbb{E}_{G(\boldsymbol{z}) \in \mathcal{F}_\varepsilon}[\log(1 - D(\boldsymbol{x}'))]$, where $\mathcal{R}_\varepsilon$ and $\mathcal{F}_\varepsilon$ are sets of physically valid and invalid outputs.
  • The threshold $\varepsilon$ is gradually reduced over training epochs to enforce stricter physical consistency, allowing the generator to learn increasingly accurate physical behavior.
  • The method is combined with a physics-informed GAN (PI-GAN) to further reduce residual variance, creating a hybrid PG-PI-GAN model that improves both median and interquartile range of residuals.

Experimental results

Research questions

  • RQ1Can a GAN-based framework enforce physical consistency in deep learning outputs without requiring the physical equations to be differentiable or embedded in the neural network’s computation graph?
  • RQ2How does the performance of a physics-guided GAN compare to traditional physics-informed neural networks (PINNs) in terms of residual error and convergence?
  • RQ3Can the use of external, non-differentiable, or commercial physics software be seamlessly integrated into a deep generative model using this framework?
  • RQ4Does decoupling physical validation from the loss function lead to more robust and generalizable physical solutions, especially in cases where PINNs fail to converge?
  • RQ5Can the combination of PG-GAN and PI-GAN further reduce both median and interquartile range of residual errors in physical predictions?

Key findings

  • The PG-GAN achieved a median residual error of 1.07 on Newton’s equation of motion, significantly lower than the standard GAN’s median of 3.24.
  • The first quartile of residuals in PG-GAN was 0.60, indicating that 25% of generated solutions were more physically accurate than in other models.
  • The interquartile range (IQR) of residuals in PG-GAN was 2.88, suggesting higher variability in less accurate outputs, as the loss function does not penalize large residuals directly.
  • The hybrid PG-PI-GAN model reduced the median residual to 1.05 and the IQR to 1.71, outperforming both PG-GAN and PI-GAN in terms of both central tendency and spread of errors.
  • The proposed method successfully decouples physical validation from the neural network’s backpropagation, allowing the use of arbitrary physical models, including non-differentiable or commercial software.
  • The threshold-based physical consistency check ($\varepsilon$) was effectively used to gradually enforce stricter physical constraints during training, improving solution quality over time.

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.