Skip to main content
QUICK REVIEW

[Paper Review] CoPhy-PGNN: Learning Physics-guided Neural Networks with Competing Loss Functions for Solving Eigenvalue Problems

Mohannad Elhamod, Jie Bu|arXiv (Cornell University)|Jul 2, 2020
Model Reduction and Neural NetworksPhysics and Astronomy10 citations
TL;DR

This paper proposes CoPhy-PGNN, a physics-guided neural network framework that adaptively balances competing physics-based loss functions during training to solve eigenvalue problems in quantum mechanics and electromagnetism. By dynamically adjusting loss weights using annealing schedules, CoPhy-PGNN achieves superior generalization and low eigenequation errors, outperforming baseline models in both accuracy and scalability on large batches.

ABSTRACT

Physics-guided Neural Networks (PGNNs) represent an emerging class of neural networks that are trained using physics-guided (PG) loss functions (capturing violations in network outputs with known physics), along with the supervision contained in data. Existing work in PGNNs has demonstrated the efficacy of adding single PG loss functions in the neural network objectives, using constant trade-off parameters, to ensure better generalizability. However, in the presence of multiple PG functions with competing gradient directions, there is a need to adaptively tune the contribution of different PG loss functions during the course of training to arrive at generalizable solutions. We demonstrate the presence of competing PG losses in the generic neural network problem of solving for the lowest (or highest) eigenvector of a physics-based eigenvalue equation, which is commonly encountered in many scientific problems. We present a novel approach to handle competing PG losses and demonstrate its efficacy in learning generalizable solutions in two motivating applications of quantum mechanics and electromagnetic propagation. All the code and data used in this work is available at https://github.com/jayroxis/Cophy-PGNN.

Motivation & Objective

  • To address the challenge of competing physics-guided (PG) loss functions in neural network training, where conflicting gradients can trap optimization in poor local minima.
  • To improve generalization in physics-informed neural networks by adaptively tuning the contribution of multiple PG losses during training, rather than using fixed trade-off weights.
  • To demonstrate the effectiveness of this adaptive approach on real-world scientific problems involving eigenvalue equations in quantum mechanics and electromagnetic propagation.
  • To enable scalable inference by leveraging GPU parallelism, showing significant speedups over traditional iterative solvers when processing large batches.
  • To provide a generalizable framework for solving eigenvalue problems using neural networks that integrate physical laws and labeled data effectively.

Proposed method

  • Introduces CoPhy-PGNN, a physics-guided neural network that combines multiple PG loss functions with a data-driven loss, using adaptive weighting via annealing schedules.
  • Employs two adaptive loss scaling mechanisms: one for the physics loss (λ_C) that grows from zero with rate b and starts at epoch T_a, and another for the data loss (λ_S) that is annealed from λ_S0 with rate α_S every T epochs.
  • Uses a weighted sum of losses: L_total = λ_S × L_data + λ_C × L_PG, where both λ_S and λ_C are dynamically adjusted during training to balance competing objectives.
  • Applies the framework to solve eigenvalue problems in two domains: the 1D quantum harmonic oscillator and 2D electromagnetic wave propagation in photonic crystals.
  • Trains the model using stochastic gradient descent with the adaptive loss scheme, enabling convergence to global minima regardless of initialization.
  • Validates performance using metrics like relative eigenequation error and overlap integral with ground-truth eigenvectors.

Experimental results

Research questions

  • RQ1Can adaptive balancing of competing physics-guided loss functions improve generalization in neural network solutions to eigenvalue problems?
  • RQ2How does the dynamic adjustment of loss weights affect convergence to the global minimum in the presence of conflicting gradients from multiple physical constraints?
  • RQ3To what extent does combining labeled data with physics-guided losses enhance model stability and predictive accuracy compared to using either alone?
  • RQ4How does CoPhy-PGNN scale in inference performance when processing large batches of inputs, especially compared to traditional iterative solvers?
  • RQ5Does the model generalize across different physical systems, such as quantum and electromagnetic problems, with varying types of PG loss functions?

Key findings

  • CoPhy-PGNN significantly reduces relative eigenequation error compared to baseline neural networks, achieving near-zero error in many test cases.
  • The model exhibits superior generalization, with a high proportion of predictions showing either perfect overlap (1.0) or no overlap (0.0) with the ground-truth eigenvector, indicating robustness in identifying valid eigenvectors.
  • The histogram of overlap integrals shows that CoPhy-PGNN predicts either the correct or a completely orthogonal eigenvector, unlike baselines that show intermediate overlap values.
  • With a batch size of 1 million, CoPhy-PGNN achieves over 300 million inputs per second on a TITAN RTX GPU, demonstrating exceptional runtime scalability.
  • The combination of labeled data loss and adaptive PG loss leads to a flatter and more stable loss landscape, contributing to better generalization.
  • The model outperforms both black-box neural networks and standard PGNNs in both accuracy and consistency, especially in extrapolating to unseen physical configurations.

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.