Learning To Solve Differential Equations Across Initial Conditions

Shehryar Malik, Usman Anwar, Ali Ahmed, Alireza AghasiarXiv 2020

Abstract

Recently, there has been a lot of interest in using neural networks for solving partial differential equations. A number of neural network-based partial differential equation solvers have been formulated which provide performances equivalent, and in some cases even superior, to classical solvers. However, these neural solvers, in general, need to be retrained each time the initial conditions or the domain of the partial differential equation changes. In this work, we posit the problem of approximating the solution of a fixed partial differential equation for any arbitrary initial conditions as learning a conditional probability distribution. We demonstrate the utility of our method on Burger's Equation.

Introduction

Partial differential equations (PDEs) are fundamental to physics, engineering, and finance, yet they remain computationally expensive to solve using traditional numerical methods like finite element analysis, particularly in high dimensions. Physics-Informed Neural Networks (PINNs) have emerged as a promising alternative by leveraging automatic differentiation to ensure outputs adhere to physical laws. However, a significant limitation of standard PINNs is their lack of generalization: they are typically trained for a single set of initial and boundary conditions. Any change in the starting state necessitates a full retraining of the network. This research addresses this bottleneck by proposing a framework that generalizes across a distribution of initial conditions.

Methodology

The proposed framework utilizes a specialized Generative Adversarial Network (GAN) architecture constrained by physical laws. The generator is decomposed into three distinct components: an Encoder that compresses initial conditions into a latent vector; an Approximator that maps this latent vector, along with noise and coordinates, to a solution; and a Reconstructor that ensures the mapping remains faithful to the input conditions.

Architecture details for the generative framework components.

The training objective is multi-faceted, incorporating adversarial loss ($L_{GAN}$), a physics-informed residual loss ($L_{PDE}$), and specific losses for initial ($L_{IC}$) and boundary ($L_{BC}$) conditions. A reconstruction loss ($L_r$) is also included to prevent mode collapse and ensure the model does not ignore the conditional input.

Experimental Setup

The method was evaluated using Burger’s Equation, a classic PDE for modeling fluid mechanics. Ground-truth data was generated using the MATLAB Chebfun package. The researchers created 120 unique initial conditions based on parameterized sine waves. The model was trained on 100 of these fields, while 20 were held out to test the framework's ability to generalize to unseen scenarios.

Results and Key Insights

The model successfully learned to interpolate between different starting states, achieving a relative $\ell_2$ error of 0.136 on the test set. Qualitatively, the model captures complex wave evolution, including the development of steep gradients.

Comparison of approximated vs. true solutions, residuals, and variance for Burger's equation.

A critical insight from this work is the use of Physics as a Regularizer. By using the PDE itself as a loss function, the model learns physical dynamics rather than simple curve-fitting. Furthermore, framing the solver as a conditional probability distribution allows for Uncertainty Quantification. By introducing a noise vector, the model can produce a distribution of solutions; the variance of these solutions correlates with the actual residual error, providing a built-in "confidence meter" that highlights areas of high error, such as near shocks.

Conclusion

This work demonstrates a preliminary but powerful step toward universal PDE solvers. While the current model struggles with perfect accuracy in highly discontinuous "shock" regions and has only been tested on 1D equations, the ability to generate solutions for new initial conditions almost instantaneously is a significant advancement. Future research will focus on scaling to more complex 3D systems and exploring alternative generative architectures to improve precision in high-gradient areas.

Summary updated

BibTeX
@misc{malik2020learning,
  author = {Shehryar Malik and Usman Anwar and Ali Ahmed and Alireza Aghasi},
  title = {{Learning To Solve Differential Equations Across Initial Conditions}},
  year = {2020},
  eprint = {2003.12159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.12159},
}
Figure