Skip to main content
QUICK REVIEW

[Paper Review] Physical Activation Functions (PAFs): An Approach for More Efficient Induction of Physics into Physics-Informed Neural Networks (PINNs)

Jassem Abbasi, Pål Østebø Andersen|arXiv (Cornell University)|May 29, 2022
Machine Learning in Materials ScienceMaterials Science9 citations
TL;DR

This paper introduces Physical Activation Functions (PAFs), a novel approach that embeds physical laws directly into the activation functions of Physics-Informed Neural Networks (PINNs) by deriving their mathematical form from analytical solutions or boundary conditions. By replacing standard activations like ReLU with physics-inspired functions, PAFs significantly improve PINN training efficiency, reduce model size by up to 75%, and lower loss values by 1–2 orders of magnitude, enhancing generalization to out-of-distribution data.

ABSTRACT

In recent years, the gap between Deep Learning (DL) methods and analytical or numerical approaches in scientific computing is tried to be filled by the evolution of Physics-Informed Neural Networks (PINNs). However, still, there are many complications in the training of PINNs and optimal interleaving of physical models. Here, we introduced the concept of Physical Activation Functions (PAFs). This concept offers that instead of using general activation functions (AFs) such as ReLU, tanh, and sigmoid for all the neurons, one can use generic AFs that their mathematical expression is inherited from the physical laws of the investigating phenomena. The formula of PAFs may be inspired by the terms in the analytical solution of the problem. We showed that the PAFs can be inspired by any mathematical formula related to the investigating phenomena such as the initial or boundary conditions of the PDE system. We validated the advantages of PAFs for several PDEs including the harmonic oscillations, Burgers, Advection-Convection equation, and the heterogeneous diffusion equations. The main advantage of PAFs was in the more efficient constraining and interleaving of PINNs with the investigating physical phenomena and their underlying mathematical models. This added constraint significantly improved the predictions of PINNs for the testing data that was out-of-training distribution. Furthermore, the application of PAFs reduced the size of the PINNs up to 75% in different cases. Also, the value of loss terms was reduced by 1 to 2 orders of magnitude in some cases which is noteworthy for upgrading the training of the PINNs. The iterations required for finding the optimum values were also significantly reduced. It is concluded that using the PAFs helps in generating PINNs with less complexity and much more validity for longer ranges of prediction.

Motivation & Objective

  • To address the inefficiency and instability in training Physics-Informed Neural Networks (PINNs) due to poor interleaving of physical laws with neural architecture.
  • To reduce the complexity and size of PINNs while improving their generalization to out-of-distribution data.
  • To explore a new paradigm where activation functions are not generic but derived from physical principles or analytical solutions of the underlying PDEs.
  • To demonstrate that PAFs lead to faster convergence and lower loss values in PINN training across multiple benchmark PDEs.

Proposed method

  • PAFs are constructed by deriving the functional form of activation functions from known analytical solutions, initial conditions, or boundary conditions of the PDEs being solved.
  • Instead of using standard activation functions like ReLU or tanh, PAFs use mathematically motivated functions that reflect the physical behavior of the system.
  • The PAFs are integrated into the neural network architecture, where they are applied to hidden neurons, embedding physical constraints directly into the network's inductive bias.
  • The method is validated on several PDEs, including harmonic oscillations, Burgers’, advection-convection, and heterogeneous diffusion equations.
  • Training is performed using standard PINN loss minimization, but with PAFs replacing standard activations to enforce physical consistency from the outset.
  • The performance is evaluated via loss reduction, model size, convergence speed, and generalization to out-of-distribution test data.

Experimental results

Research questions

  • RQ1Can embedding physical laws directly into activation functions improve the training efficiency and accuracy of PINNs?
  • RQ2To what extent can PAFs reduce the size and complexity of PINN architectures while maintaining or improving predictive performance?
  • RQ3How do PAFs affect the convergence speed and loss landscape of PINNs compared to standard activation functions?
  • RQ4Can PAFs enhance generalization of PINNs to out-of-distribution data, especially in regions not well-represented in the training set?
  • RQ5What is the impact of PAFs on the magnitude of loss terms in PINN training, particularly in comparison to baseline models?

Key findings

  • PAFs reduced the size of PINN models by up to 75% across multiple test cases, significantly lowering model complexity.
  • The loss values in PINN training were reduced by 1 to 2 orders of magnitude when using PAFs, indicating improved optimization and constraint satisfaction.
  • Convergence was accelerated, with a significant reduction in the number of iterations required to reach optimal training performance.
  • PINNs using PAFs demonstrated superior generalization to out-of-distribution test data, maintaining high accuracy where standard PINNs failed.
  • The physical inductive bias introduced by PAFs led to more valid and physically consistent predictions over extended prediction ranges.
  • The method was successfully validated on diverse PDEs, including harmonic oscillations, Burgers’, advection-convection, and heterogeneous diffusion equations.

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.