Skip to main content
QUICK REVIEW

[Paper Review] TensorDiffEq: Scalable Multi-GPU Forward and Inverse Solvers for Physics Informed Neural Networks

Levi D. McClenny, Mulugeta Haile|arXiv (Cornell University)|Mar 30, 2021
Model Reduction and Neural NetworksPhysics and Astronomy22 references11 citations
TL;DR

TensorDiffEq is a fully open-source, multi-GPU capable framework built on TensorFlow 2.x and Keras for scalable forward and inverse physics-informed neural network (PINN) solvers. It enables high-dimensional PDE solutions via Keras-like model definition, supports custom architectures, and introduces self-adaptive training to improve convergence—offering a production-ready, modular alternative to single-GPU or closed-source PINN tools.

ABSTRACT

Physics-Informed Neural Networks promise to revolutionize science and engineering practice, by introducing domain-aware deep machine learning models into scientific computation. Several software suites have emerged to make the implementation and usage of these architectures available to the research and industry communities. Here we introduce\linebreak TensorDiffEq, built on Tensorflow 2.x, which presents an intuitive Keras-like interface for problem domain definition, model definition, and solution of forward and inverse problems using physics-aware deep learning methods. TensorDiffEq takes full advantage of Tensorflow 2.x infrastructure for deployment on multiple GPUs, allowing the implementation of large high-dimensional and complex models. Simultaneously, TensorDiffEq supports the Keras API for custom neural network architecture definitions. In the case of smaller or simpler models, the package allows for rapid deployment on smaller-scale CPU platforms with negligible changes to the implementation scripts. We demonstrate the basic usage and capabilities of TensorDiffEq in solving forward, inverse, and data assimilation problems of varying sizes and levels of complexity. The source code is available at https://github.com/tensordiffeq.

Motivation & Objective

  • To address the lack of fully open-source, scalable multi-GPU PINN solvers in scientific machine learning.
  • To provide a modular, extensible framework that supports both forward and inverse problems using physics-informed deep learning.
  • To enable researchers to define custom neural network architectures via the Keras API while maintaining high-performance training on multiple GPUs.
  • To improve training convergence for complex PDE systems through self-adaptive training methods, especially for semi-linear equations like Allen-Cahn.
  • To support deployment portability by allowing export and reuse of trained Keras models across CPU and GPU platforms.

Proposed method

  • The framework uses a Keras-like interface to define neural network architectures, enabling full integration with the Keras ecosystem for model construction and optimization.
  • It leverages TensorFlow 2.x’s automatic differentiation to compute spatial and temporal derivatives of the neural network output for PDE residual calculation.
  • The residual loss is computed via the physics-informed constraint: r(x,t;w) = N_x,t[u(x,t;w)], where u is the network output and N is the differential operator.
  • The loss function combines data loss, residual loss, boundary condition loss, and initial condition loss, enabling both forward and inverse problem solving.
  • Self-adaptive training is implemented by dynamically adjusting the weighting of loss components during optimization to improve convergence stability.
  • The framework supports multi-GPU training via TensorFlow’s distribution strategy, enabling scalable training on large, high-dimensional PDE problems.

Experimental results

Research questions

  • RQ1Can a fully open-source, multi-GPU PINN solver be built with seamless Keras integration to support both forward and inverse problems?
  • RQ2How does self-adaptive training improve convergence and accuracy in solving complex semi-linear PDEs such as Allen-Cahn?
  • RQ3To what extent can custom neural network architectures be integrated into a PINN solver while maintaining scalability and performance on multiple GPUs?
  • RQ4Can the framework enable efficient transfer learning and inference portability by exporting trained Keras models?
  • RQ5How does the modular design of TensorDiffEq support extensibility for new PDE types, boundary conditions, and optimization strategies?

Key findings

  • TensorDiffEq successfully implements scalable, multi-GPU training for PINNs using TensorFlow 2.x and Keras, enabling high-performance solution of large, high-dimensional PDEs.
  • The framework supports both forward and inverse problems, including parameter estimation in PDE systems, with built-in support for initial and boundary conditions.
  • Self-adaptive training methods in TensorDiffEq significantly improve convergence for challenging semi-linear PDEs like Allen-Cahn, where standard collocation methods fail.
  • The ability to export and save Keras models allows for transfer learning and inference on CPU platforms, enhancing deployment flexibility.
  • TensorDiffEq is the only known PINN solver that combines full open-source availability, multi-GPU scalability, Keras API extensibility, and self-adaptive training.
  • The framework demonstrates seamless integration with existing Keras tools, enabling researchers to use familiar training pipelines while solving complex physics-informed problems.

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.