← Open Source
prateekbhustali

Physics-Informed-Neural-Networks

Investigating PINNs.

TutorialsML/AI fundamentalsJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
787
Stars
159
Forks
+2
This week
1
Contributors
Created 2020-10-22 · Updated 2026-10-15 · #13825 today
Top developers

prateekbhustali/Physics-Informed-Neural-Networks is ranked 13,825 with 787 stars.

Same-category comparison

prateekbhustali/Physics-Informed-Neural-Networks is ranked 13,825 among these 8 peers; kdexd/digit-classifier is ranked 13,818.

Same-category comparison
NameRankMetrics
ltdrdata/ComfyUI-extension-tutorials13,806
Stars:
789
Forks:
53
panaverse/learn-generative-ai13,810
Language:
Python
Stars:
789
Forks:
286
Description:
Learn Cloud Applied Generative AI Engineering (GenEng) using OpenAI, Gemini, Streamlit, Containers, Serverless, Postgres, LangChain, Pinecone, and Next.js.
svjan5/GNNs-for-NLP13,811
Language:
Python
Stars:
789
Forks:
111
Description:
Tutorial: Graph Neural Networks for Natural Language Processing at EMNLP 2019 and CODS-COMAD 2020.
kdexd/digit-classifier13,818
Language:
Python
Stars:
788
Forks:
82
Description:
A single handwritten digit classifier, using the MNIST dataset. Pure Numpy.
keras-team/keras-docs-zh13,836
Stars:
786
Forks:
254
Description:
Chinese (zh-cn) translation of the Keras documentation.
petercorke/RVC3-python13,847
Language:
Jupyter Notebook
Stars:
785
Forks:
177
Description:
Code examples for Robotics, Vision & Control 3rd edition in Python.
wx-chevalier/AI-Notes13,850
Language:
Jupyter Notebook
Stars:
785
Forks:
239
Description:
:books: [.md & .ipynb] Series of Artificial Intelligence & Deep Learning, including Mathematics Fundamentals, Python Practices, NLP Application, etc.
datawhalechina/handy-multi-agent13,859
Language:
Jupyter Notebook
Stars:
784
Forks:
76
Description:
This is a multi agent tutorial based on the CAMEL framework, aimed at understanding how to build an Agent Society from the ground up.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryTutorials
SubcategoryML/AI fundamentals
Stars787
Forks159
Contributors1
Created date2020-10-22
Updated date2026-10-15
Stars in 1 day0
Stars in 7 days2
Rank13,825
Previous rank6,419
Rank change-7,406
7-day stars rank8,496
Previous 7-day stars rank7,257
7-day stars rank change-1,239
Total stars rank13,531
Previous total stars rank13,511
Total stars rank change-20
CountryNetherlands
README summary

Physics-Informed-Neural-Networks (PINNs) PINNs were proposed by Raissi et al. in [1] to solve PDEs by incorporating the physics (i. e the PDE) and the boundary conditions in the loss function. The loss is the Mean-Squared Error of the PDE and boundary residual measured on 'collocation points' distributed across the domain. PINNs are summarised in the following schematic: This repository currently contains implementation of PINNs in TensorFlow 2 and PyTorch for the Burgers' and Helmholtz PDE. Currently

working to incorporate SIREN (paper from NeurIPS 2020). Installation TensorFlow PyTorch For GPU installations, check for compatible PyTorch versions on the official website. **NOTE**: Newer versions of seaborn do not support sns. distplot and can problematic when ploting gradient histograms Work Summary 1. Solving stiff PDEs with the L-BFGS optimizer PINNs are studied with the L-BFGS optimizer and compared with the Adam optimizer to observe the gradient imbalance reported in [2] for stiff PDEs. It was observed that

the gradient imbalance is not as stark with the L-BFGS optimizer when solving stiff PDEs. However, the convergence of PINNs is still slow due to the ill-conditioning of the optimization landscape. Bottom Up learning in PINNs It was reported in [3] that PINNs tend to learn all spectral frequencies of the solution simalteneously due to the presence of derivatives in the loss function. In order to understand if there are any other changes in the learning mechanics of

PINNs, bottom-up learning was reinvestigated. Bottom-up learing implies that the lower layers, i. e layers close to the input, converge faster than the upper layers, i. A heuristic proof of bottom-up learning was given in [4], the same methodology is followed here while training the PINN to solve the Burgers' PDE. No changes in this mechanism was observed and it was confirmed that PINNs also learn bottom-up. A video of this observation can be found here

( 3. Transfer Learning in PINNs The effect of transfer learning in PINNs was studied to understand its effects on solution error. The general observation was that transfer learning helps us find better local minima when compared to a random Xavier initialization. Bibliography [1] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations. [2] Sifan Wang, Yujun Teng, Paris Perdikaris. UNDERSTANDING AND MITIGATING GRADIENT PATHOLOGIES IN PHYSICS-INFORMED

NEURAL NETWORKS. DeepXDE: A deep learning library for solving differential equations. SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability. [5] Levi McClenny and Ulisses Braga-Neto. Self-Adaptive Physics-Informed Neural Networks using a Soft Attention Mechanism.

Frequently asked questions

How many stars and forks are recorded?

prateekbhustali/Physics-Informed-Neural-Networks has 787 stars and 159 forks.

What is the repository rank?

prateekbhustali/Physics-Informed-Neural-Networks is ranked 13,825.

What language and category are recorded?

prateekbhustali/Physics-Informed-Neural-Networks has 787 stars, uses Jupyter Notebook and belongs to Tutorials.

Which repository is closest in rank?

prateekbhustali/Physics-Informed-Neural-Networks is compared with kdexd/digit-classifier, ranked 13,818 with 788 stars.

README

Physics-Informed-Neural-Networks (PINNs)

PINNs were proposed by Raissi et al. in [1] to solve PDEs by incorporating the physics (i.e the PDE) and the boundary conditions in the loss function. The loss is the Mean-Squared Error of the PDE and boundary residual measured on 'collocation points' distributed across the domain.

PINNs are summarised in the following schematic:

This repository currently contains implementation of PINNs in TensorFlow 2 and PyTorch for the Burgers' and Helmholtz PDE.

Currently working to incorporate SIREN (paper from NeurIPS 2020).

Installation

TensorFlow

pip install numpy==1.19.2 scipy==1.5.3 tensorflow==2.0.0 matplotlib==3.3.2 pydoe==0.3.8 seaborn==0.9.0

PyTorch

pip install numpy==1.19.2 scipy==1.5.3 matplotlib==3.3.2 pydoe==0.3.8 torch==1.7.1+cu92 torchvision==0.8.2+cu92 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

For GPU installations, check for compatible PyTorch versions on the official website.

NOTE: Newer versions of seaborn do not support sns.distplot and can problematic when ploting gradient histograms

Work Summary

  1. Solving stiff PDEs with the L-BFGS optimizer

PINNs are studied with the L-BFGS optimizer and compared with the Adam optimizer to observe the gradient imbalance reported in [2] for stiff PDEs. It was observed that the gradient imbalance is not as stark with the L-BFGS optimizer when solving stiff PDEs. However, the convergence of PINNs is still slow due to the ill-conditioning of the optimization landscape.

  1. Bottom Up learning in PINNs

It was reported in [3] that PINNs tend to learn all spectral frequencies of the solution simalteneously due to the presence of derivatives in the loss function. In order to understand if there are any other changes in the learning mechanics of PINNs, bottom-up learning was reinvestigated. Bottom-up learing implies that the lower layers, i.e layers close to the input, converge faster than the upper layers, i.e layers closer to the output. A heuristic proof of bottom-up learning was given in [4], the same methodology is followed here while training the PINN to solve the Burgers' PDE. No changes in this mechanism was observed and it was confirmed that PINNs also learn bottom-up. A video of this observation can be found here (https://youtu.be/LmaSPoBVOrA).

  1. Transfer Learning in PINNs

The effect of transfer learning in PINNs was studied to understand its effects on solution error. The general observation was that transfer learning helps us find better local minima when compared to a random Xavier initialization.

Bibliography

[1] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations. http://arxiv.org/pdf/1711.10561v1

[2] Sifan Wang, Yujun Teng, Paris Perdikaris. UNDERSTANDING AND MITIGATING GRADIENT PATHOLOGIES IN PHYSICS-INFORMED NEURAL NETWORKS. 2020. https://arxiv.org/pdf/2001.04536.pdf.

[3] Lu Lu et al. DeepXDE: A deep learning library for solving differential equations.2019. https://arxiv.org/abs/1907.04502

[4] Maithra Raghu et al. SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and Interpretability. http://arxiv.org/pdf/1706.05806v2

[5] Levi McClenny and Ulisses Braga-Neto. Self-Adaptive Physics-Informed Neural Networks using a Soft Attention Mechanism. 2020. https://arxiv.org/abs/2009.04544

Nearby in the ranking
Similar items