Skip to main content
QUICK REVIEW

[Paper Review] Self-scalable Tanh (Stan): Faster Convergence and Better Generalization in Physics-informed Neural Networks

Raghav Gnanasambandam, Bo Shen|arXiv (Cornell University)|Apr 26, 2022
Model Reduction and Neural NetworksPhysics and Astronomy14 citations
TL;DR

This paper proposes Self-scalable Tanh (Stan), a trainable, smooth, non-saturating activation function for Physics-informed Neural Networks (PINNs) that enhances gradient flow and enables systematic scaling of input-output mappings. Stan eliminates spurious stationary points and achieves faster convergence and better generalization, especially in high-magnitude output problems, outperforming existing activation functions in forward and inverse problems involving PDEs.

ABSTRACT

Physics-informed Neural Networks (PINNs) are gaining attention in the engineering and scientific literature for solving a range of differential equations with applications in weather modeling, healthcare, manufacturing, etc. Poor scalability is one of the barriers to utilizing PINNs for many real-world problems. To address this, a Self-scalable tanh (Stan) activation function is proposed for the PINNs. The proposed Stan function is smooth, non-saturating, and has a trainable parameter. During training, it can allow easy flow of gradients to compute the required derivatives and also enable systematic scaling of the input-output mapping. It is shown theoretically that the PINNs with the proposed Stan function have no spurious stationary points when using gradient descent algorithms. The proposed Stan is tested on a number of numerical studies involving general regression problems. It is subsequently used for solving multiple forward problems, which involve second-order derivatives and multiple dimensions, and an inverse problem where the thermal diffusivity of a rod is predicted with heat conduction data. These case studies establish empirically that the Stan activation function can achieve better training and more accurate predictions than the existing activation functions in the literature.

Motivation & Objective

  • To address vanishing gradients and output scale instability in Physics-informed Neural Networks (PINNs), which hinder training and generalization.
  • To develop an activation function that enables smooth, scalable, and trainable gradient flow during backpropagation in PINNs.
  • To eliminate spurious stationary points in PINN optimization via a theoretically grounded activation function.
  • To improve training speed and predictive accuracy in both forward and inverse problems involving PDEs.
  • To enable robust performance in high-magnitude output scenarios where standard activation functions fail.

Proposed method

  • Propose a novel activation function, Self-scalable Tanh (Stan), defined as $ \text{Stan}(x) = \beta \cdot \tanh(x) $, where $ \beta $ is a trainable parameter per neuron.
  • Integrate Stan into the hidden layers of PINNs to allow dynamic scaling of activations and improved gradient propagation.
  • Theoretically prove that PINNs using Stan have no spurious stationary points under gradient descent, ensuring convergence to global minima.
  • Formulate the loss function to include both data-fitting and physics-consistency terms, with gradients computed via backpropagation through the differentiable Stan function.
  • Train the network using stochastic gradient descent, jointly optimizing network weights and the trainable $ \beta $ parameters.
  • Apply normalization-free training by leveraging the self-scaling property of $ \beta $, avoiding the need for output normalization.

Experimental results

Research questions

  • RQ1Can a trainable activation function eliminate spurious stationary points in PINN optimization, ensuring convergence to the global minimum?
  • RQ2How does the self-scaling property of Stan improve gradient flow and training stability in PINNs with high-output-magnitude problems?
  • RQ3Does Stan outperform standard activation functions (e.g., tanh, ReLU, SELU) in terms of convergence speed and prediction accuracy for forward and inverse PDE problems?
  • RQ4Can Stan effectively handle PDEs with second-order derivatives and multiple spatial dimensions without requiring output normalization?
  • RQ5How does Stan perform in inverse problems, such as identifying thermal diffusivity from heat conduction data?

Key findings

  • Stan eliminates spurious stationary points in PINN optimization, as proven theoretically, ensuring that gradient descent converges to the global minimum.
  • Stan achieves faster convergence than baseline activation functions across all tested regression, forward, and inverse problems.
  • In problems with high-output-magnitude (e.g., temperature from 0–2000°C), Stan significantly outperforms standard activations, which often fail due to vanishing gradients.
  • For the inverse problem of identifying thermal diffusivity, Stan achieved more accurate and stable predictions than existing activation functions.
  • Empirical results show that Stan generalizes better, producing more accurate predictions on unseen data points in both forward and inverse PDE tasks.
  • The trainable $ \beta $ parameter enables automatic scaling of the output range, removing the need for data normalization and improving robustness in real-world applications.

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.