Skip to main content
Springer Nature Link
Account
Menu
Find a journal Publish with us Track your research
Search
Cart
  1. Home
  2. Applied Mathematics and Mechanics
  3. Article

Physics-informed neural networks with residual/gradient-based adaptive sampling methods for solving partial differential equations with sharp solutions

  • Open access
  • Published: 03 July 2023
  • Volume 44, pages 1069–1084, (2023)
  • Cite this article

You have full access to this open access article

Download PDF
Applied Mathematics and Mechanics Aims and scope Submit manuscript
Physics-informed neural networks with residual/gradient-based adaptive sampling methods for solving partial differential equations with sharp solutions
Download PDF
  • Zhiping Mao1 &
  • Xuhui Meng2 
  • 3383 Accesses

  • 66 Citations

  • Explore all metrics

Abstract

We consider solving the forward and inverse partial differential equations (PDEs) which have sharp solutions with physics-informed neural networks (PINNs) in this work. In particular, to better capture the sharpness of the solution, we propose the adaptive sampling methods (ASMs) based on the residual and the gradient of the solution. We first present a residual only-based ASM denoted by ASM I. In this approach, we first train the neural network using a small number of residual points and divide the computational domain into a certain number of sub-domains, then we add new residual points in the sub-domain which has the largest mean absolute value of the residual, and those points which have the largest absolute values of the residual in this sub-domain as new residual points. We further develop a second type of ASM (denoted by ASM II) based on both the residual and the gradient of the solution due to the fact that only the residual may not be able to efficiently capture the sharpness of the solution. The procedure of ASM II is almost the same as that of ASM I, and we add new residual points which have not only large residuals but also large gradients. To demonstrate the effectiveness of the present methods, we use both ASM I and ASM II to solve a number of PDEs, including the Burger equation, the compressible Euler equation, the Poisson equation over an L-shape domain as well as the high-dimensional Poisson equation. It has been shown from the numerical results that the sharp solutions can be well approximated by using either ASM I or ASM II, and both methods deliver much more accurate solutions than the original PINNs with the same number of residual points. Moreover, the ASM II algorithm has better performance in terms of accuracy, efficiency, and stability compared with the ASM I algorithm. This means that the gradient of the solution improves the stability and efficiency of the adaptive sampling procedure as well as the accuracy of the solution. Furthermore, we also employ the similar adaptive sampling technique for the data points of boundary conditions (BCs) if the sharpness of the solution is near the boundary. The result of the L-shape Poisson problem indicates that the present method can significantly improve the efficiency, stability, and accuracy.

Article PDF

Download to read the full article text

Similar content being viewed by others

An enhanced hybrid adaptive physics-informed neural network for forward and inverse PDE problems

Article 02 January 2025

Adaptive partition of unity networks (APUNet): a localized deep learning method for solving PDEs

Article 23 October 2023

Asymptotic Physics-Informed Neural Networks for Solving Singularly Perturbed Problems

Chapter © 2024

Explore related subjects

Discover the latest articles, books and news in related subjects, suggested using machine learning.
  • Computational Neuroscience
  • Computational Physics and Simulations
  • Computational Solid Mechanics
  • Numerical Analysis
  • Numerical Simulation
  • Partial Differential Equations
Use our pre-submission checklist

Avoid common mistakes on your manuscript.

References

  1. LECUN, Y., BENGIO, Y., and HINTON, G. Deep learning. nature, 521(7553), 436–444 (2015)

    Article  Google Scholar 

  2. MIKOLOV, T., DEORAS, A., POVEY, D., BURGET, L., and ČERNOCKỲ, J. Strategies for training large scale neural network language models. 2011 IEEE Workshop on Automatic Speech Recognition & Understanding, Hawaii, 196–201 (2011)

  3. HINTON, G., DENG, L., YU, D., DAHL, G., MOHAMED, A. R., JAITLY, N., SENIOR, A., VANHOUCKE, V., NGUYEN, P., SAINATH, T. N., and KINGSBURY, B. Deep neural networks for acoustic modeling in speech recognition. IEEE Signal Processing Magazine, 29(6), 82–97 (2012)

    Article  Google Scholar 

  4. SAINATH, T. N., MOHAMED, A. R., KINGSBURY, B., and RAMABHADRAN, B. Deep convolutional neural networks for LVCSR. 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, Canada, 8614–8618 (2013)

  5. KRIZHEVSKY, A., SUTSKEVER, I., and HINTON, G. E. Imagenet classification with deep convolutional neural networks. Communications of the ACM, 60(6), 84–90 (2017)

    Article  Google Scholar 

  6. TOMPSON, J. J., JAIN, A., LECUN, Y., and BREGLER, C. Joint training of a convolutional network and a graphical model for human pose estimation. Advances in Neural Information Processing Systems, 27 1799–1807 (2014)

    Google Scholar 

  7. RAISSI, M., PERDIKARIS, P., and KARNIADAKIS, G. E. Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378, 686–707 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  8. WEINAN, E. and YU, B. The deep ritz method: a deep learning-based numerical algorithm for solving variational problems. Communications in Mathematics and Statistics, 6(1), 1–12 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  9. HAN, J., JENTZEN, A., and WEINAN, E. Solving high-dimensional partial differential equations using deep learning. Proceedings of the National Academy of Sciences, 115(34), 8505–8510 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  10. LONG, Z., LU, Y., MA, X., and DONG, B. PDE-Net: learning PDEs from data. International Conference on Machine Learning, 80, 3208–3216 (2018)

    Google Scholar 

  11. LONG, Z., LU, Y., and DONG, B. PDE-Net 2.0: learning PDEs from data with a numericsymbolic hybrid deep network. Journal of Computational Physics, 399, 108925 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  12. SIRIGNANO, J. and SPILIOPOULOS, K. DGM: a deep learning algorithm for solving partial differential equations. Journal of computational physics, 375, 1339–1364 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  13. PANG, G., LU, L., and KARNIADAKIS, G. E. FPINNs: fractional physics-informed neural networks. SIAM Journal on Scientific Computing, 41(4), 2603–2626 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  14. MENG, X. and KARNIADAKIS, G. E. A composite neural network that learns from multifidelity data: application to function approximation and inverse PDE problems. Journal of Computational Physics, 401, 109020 (2020)

    Article  MathSciNet  MATH  Google Scholar 

  15. ZHANG, D., LU, L., GUO, L., and KARNIADAKIS, G. E. Quantifying total uncertainty in physics-informed neural networks for solving forward and inverse stochastic problems. Journal of Computational Physics, 397, 108850 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  16. LU, L., MENG, X., MAO, Z., and KARNIADAKIS, G. E. DeepXDE: a deep learning library for solving differential equations. SIAM Review, 63(1), 208–228 (2021)

    Article  MathSciNet  MATH  Google Scholar 

  17. RAISSI, M., YAZDANI, A., and KARNIADAKIS, G. E. Hidden fluid mechanics: a Navier-Stokes informed deep learning framework for assimilating flow visualization data. arXiv Preprint, arXiv:1808.04327 (2018) https://doi.org/10.48550/arXiv.1808.04327

  18. RAISSI, M., WANG, Z., TRIANTAFYLLOU, M. S., and KARNIADAKIS, G. E. Deep learning of vortex-induced vibrations. Journal of Fluid Mechanics, 861, 119–137 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  19. CAI, S., MAO, Z., WANG, Z., YIN, M., and KARNIADAKIS, G. E. Physics-informed neural networks (PINNs) for fluid mechanics: a review. Acta Mechanica Sinica, 37(12), 1727–1738 (2021)

    Article  MathSciNet  Google Scholar 

  20. MAO, Z., JAGTAP, A. D., and KARNIADAKIS, G. E. Physics-informed neural networks for high-speed flows. Computer Methods in Applied Mechanics and Engineering, 360, 112789 (2020)

    Article  MathSciNet  MATH  Google Scholar 

  21. JAGTAP, A. D., MAO, Z., ADAMS, N., and KARNIADAKIS, G. E. Physics-informed neural networks for inverse problems in supersonic flows. Journal of Computational Physics, 466, 111402 (2022)

    Article  MathSciNet  MATH  Google Scholar 

  22. BAYDIN, A. G., PEARLMUTTER, B. A., RADUL, A. A., and SISKIND, J. M. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research, 18, 1–43 (2018)

    MATH  Google Scholar 

  23. BERGER, M. J. and OLIGER, J. Adaptive mesh refinement for hyperbolic partial differential equations. Journal of Computational Physics, 53(3), 484–512 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  24. BERGER, M. J. and COLELLA, P. Local adaptive mesh refinement for shock hydrodynamics. Journal of Computational Physics, 82(1), 64–84 (1989)

    Article  MATH  Google Scholar 

  25. VERFÜRTH, R. A posteriori error estimation and adaptive mesh-refinement techniques. Journal of Computational and Applied Mathematics, 50(1–3), 67–83 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  26. BAEZA, A. and MULET, P. Adaptive mesh refinement techniques for high-order shock capturing schemes for multi-dimensional hydrodynamic simulations. International Journal for Numerical Methods in Fluids, 52(4), 455–471 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  27. YU, J., LU, L., MENG, X., and KARNIADAKIS, G. E. Gradient-enhanced physics-informed neural networks for forward and inverse pde problems. Computer Methods in Applied Mechanics and Engineering, 393, 114823 (2022)

    Article  MathSciNet  MATH  Google Scholar 

  28. WU, C., ZHU, M., TAN, Q., KARTHA, Y., and LU, L. A comprehensive study of nonadaptive and residual-based adaptive sampling for physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 403, 115671 (2023)

    Article  MATH  Google Scholar 

  29. GAO, Z., YAN, L., and ZHOU, T. Failure-informed adaptive sampling for PINNs. arXiv Preprint, arXiv: 2210.00279 (2022) https://doi.org/10.48550/arXiv.2210.00279

  30. GUO, J., WANG, H., and HOU, C. A novel adaptive causal sampling method for physicsinformed neural networks. arXiv Preprint, arXiv: 2210.12914 (2022) https://doi.org/10.48550/arXiv.2210.12914

  31. HAN, J., CAI, Z., WU, Z., and ZHOU, X. Residual-quantile adjustment for adaptive training of physics-informed neural network. arXiv Preprint, arXiv: 2209.05315 (2022) https://doi.org/10.48550/arXiv.2209.05315

Download references

Acknowledgements

The authors also would like to acknowledge the Xiaomi Young Talents Program.

Author information

Authors and Affiliations

  1. School of Mathematical Sciences, Fujian Provincial Key Laboratory of Mathematical Modeling and High-Performance Scientific Computing, Xiamen University, Xiamen, Fujian Province, 361005, China

    Zhiping Mao

  2. Institute of Interdisciplinary Research for Mathematics and Applied Science, School of Mathematics and Statistics, Huazhong University of Science and Technology, Wuhan, 430074, China

    Xuhui Meng

Authors
  1. Zhiping Mao
    View author publications

    Search author on:PubMed Google Scholar

  2. Xuhui Meng
    View author publications

    Search author on:PubMed Google Scholar

Corresponding author

Correspondence to Xuhui Meng.

Additional information

Conflict of interest

The authors declare no conflict of interest.

Citation: MAO, Z. P. and MENG, X. H. Physics-informed neural networks with residual/gradient-based adaptive sampling methods for solving partial differential equations with sharp solutions. Applied Mathematics and Mechanics (English Edition), 44(7), 1069–1084 (2023) https://doi.org/10.1007/s10483-023-2994-7

Project supported by the National Key R&D Program of China (No. 2022YFA1004504), the National Natural Science Foundation of China (Nos. 12171404 and 12201229), and the Fundamental Research Funds for Central Universities of China (No. 20720210037)

Rights and permissions

Open access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mao, Z., Meng, X. Physics-informed neural networks with residual/gradient-based adaptive sampling methods for solving partial differential equations with sharp solutions. Appl. Math. Mech.-Engl. Ed. 44, 1069–1084 (2023). https://doi.org/10.1007/s10483-023-2994-7

Download citation

  • Received: 25 January 2023

  • Revised: 10 March 2023

  • Published: 03 July 2023

  • Version of record: 03 July 2023

  • Issue date: July 2023

  • DOI: https://doi.org/10.1007/s10483-023-2994-7

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Key words

  • physics-informed neural network (PINN)
  • adaptive sampling
  • high-dimension
  • L-shape Poisson equation
  • accuracy

Chinese Library Classification

  • O343

2010 Mathematics Subject Classification

  • 74J05
  • 74J25
Use our pre-submission checklist

Avoid common mistakes on your manuscript.

Advertisement

Search

Navigation

  • Find a journal
  • Publish with us
  • Track your research

Discover content

  • Journals A-Z
  • Books A-Z

Publish with us

  • Journal finder
  • Publish your research
  • Language editing
  • Open access publishing

Products and services

  • Our products
  • Librarians
  • Societies
  • Partners and advertisers

Our brands

  • Springer
  • Nature Portfolio
  • BMC
  • Palgrave Macmillan
  • Apress
  • Discover
  • Your US state privacy rights
  • Accessibility statement
  • Terms and conditions
  • Privacy policy
  • Help and support
  • Legal notice
  • Cancel contracts here

Not affiliated

Springer Nature

© 2025 Springer Nature