Transfer learning for deep neural network-based partial differential equations solving

Xinhai Chen, Chunye Gong, Qian Wan, Liang Deng, Yunbo Wan, Yang Liu, Bo Chen, Jie LiuAdvances 2021

Abstract

Deep neural networks (DNNs) have recently shown great potential in solving partial differential equations (PDEs). The success of neural network-based surrogate models is attributed to their ability to learn a rich set of solution-related features. However, learning DNNs usually involves tedious training iterations to converge and requires a very large number of training data, which hinders the application of these models to complex physical contexts. To address this problem, we propose to apply the transfer learning approach to DNN-based PDE solving tasks. In our work, we create pairs of transfer experiments on Helmholtz and Navier-Stokes equations by constructing subtasks with different source terms and Reynolds numbers. We also conduct a series of experiments to investigate the degree of generality of the features between different equations. Our results demonstrate that despite differences in underlying PDE systems, the transfer methodology can lead to a significant improvement in the accuracy of the predicted solutions and achieve a maximum performance boost of 97.3% on widely used surrogate models.

Introduction

While Physics-Informed Neural Networks (PINNs) have emerged as powerful surrogate models for solving partial differential equations (PDEs), they face a significant generalizability hurdle. Standard solvers often require thousands of iterations to converge and are highly sensitive to initial conditions. Typically, these models are trained from scratch for every specific scenario. If a researcher changes a single parameter—such as the Reynolds number in a fluid flow simulation or a source term in an acoustic model—the network usually needs to be completely re-trained. This "re-training overhead" makes DNN-based solvers impractical for real-time engineering applications or iterative design optimization. This paper demonstrates that transfer learning—reusing weights from a previously trained model—can drastically improve accuracy and accelerate convergence.

Methodology

The researchers applied a standard transfer learning workflow to three popular PDE-solving architectures: PINN, PINN-anneal (which uses adaptive learning rates), and GP-PINN (gradient-enhanced PINN).

The utilized network architecture of a Physics-Informed Neural Network (PINN)

The PINN architecture integrates physical laws directly into the loss function, using automatic differentiation to ensure the network's output satisfies the underlying PDE. The transfer process involves three main steps:

  1. Base Task Training: Training a "base" network on a specific PDE configuration using random weight initialization.
  2. Feature Transferring: Copying the weights ($W, b$) from the base network to a "target" network.
  3. Fine-tuning: Training the target network on a new, related (or even unrelated) PDE task.
The transfer learning workflow between base and target tasks

Experiments were conducted across two primary benchmarks: the 2D Helmholtz equation (common in acoustics) and the 2D Navier-Stokes equation (fluid dynamics). The "datasets" consisted of mathematical configurations, such as varying source terms for Helmholtz and different Reynolds numbers ($Re$) for Navier-Stokes. A unique "Cross-Equation Transfer" experiment was also performed, using a model trained on Navier-Stokes as the starting point for solving Helmholtz equations.

Key Insights and Results

Neural Networks Learn "Physics Features"

Much like how computer vision models learn edges in early layers, PINNs appear to learn fundamental mathematical operators and solution-related features that are broadly applicable. While transferring all layers generally yields the best results, even transferring just the first 1–3 layers provides a significant performance boost. This suggests that the "low-level" features of calculus and spatial relationships are captured early in the network.

Performance Gains

  • Massive Accuracy Boosts: On Helmholtz benchmarks, transfer learning achieved a maximum performance boost of 97.3% for the PINN-anneal model.
  • Fluid Dynamics Improvements: For Navier-Stokes equations, the transfer approach outperformed random initialization in all subtasks, with an average performance boost of 22.4% for standard PINNs and up to 50% for GP-PINNs.
  • Cross-Domain Success: Transferring weights from a fluid flow problem (Navier-Stokes) to an acoustic problem (Helmholtz) still resulted in an average performance boost of 50.6%, proving that the learned features are somewhat "universal" across different physical laws.
  • Faster Convergence: Transferred models start with a significantly lower loss and reach stable solutions much faster than those starting from scratch.

Conclusion

Transfer learning proves to be a robust methodology for accelerating and improving the accuracy of DNN-based PDE solvers. While the effectiveness of transfer learning is proportional to the similarity between tasks, even cross-domain transfers provide substantial benefits over random initialization. Future work aims to apply this methodology to complex 3D real-time analysis and industrial design optimization, where the speed-up from transfer learning would be most transformative. However, careful selection of hyperparameters like initial learning rates remains critical to prevent divergence during fine-tuning.

Summary updated

BibTeX
@inproceedings{chen2021transfer,
  author = {Xinhai Chen and Chunye Gong and Qian Wan and Liang Deng and Yunbo Wan and Yang Liu and Bo Chen and Jie Liu},
  title = {{Transfer learning for deep neural network-based partial differential equations solving}},
  booktitle = {Advances},
  year = {2021},
  doi = {10.1186/s42774-021-00094-7},
}
Figure