Active learning based sampling for high-dimensional nonlinear partial differential equations

Wenhan Gao, Chunmei WangJournal of Computational Physics 2021 · OpenReview

TL;DR

This paper introduces an active learning-based sampling strategy to accelerate the training of deep neural networks for solving high-dimensional nonlinear partial differential equations (PDEs). By adaptively selecting training points that exhibit larger residual errors, the method significantly speeds up convergence and reduces errors compared to standard approaches.

What Problem Does This Paper Address?

Solving high-dimensional partial differential equations (PDEs) is a computationally challenging task. Traditional numerical methods often suffer from the "curse of dimensionality," where computational cost grows exponentially with the number of dimensions. While deep neural networks (DNNs) have shown promise in overcoming this challenge, their training process, particularly using the least squares method, can be slow and inefficient. This paper addresses the issue of slow convergence in deep learning-based PDE solvers by proposing an active learning strategy to intelligently select training data.

Methods

The core of this paper is an active learning-based adaptive sampling (AS) technique. This method aims to improve the convergence speed and accuracy of deep learning-based PDE solvers by adaptively choosing the most informative training samples. The informativeness is determined by the residual error of the neural network's prediction. Points with larger residual errors are prioritized for training, mimicking how humans learn by focusing on mistakes.

Two specific sampling algorithms are proposed to implement this adaptive strategy:

  • Metropolis-Hastings (MH) Sampling: A Markov chain Monte Carlo method used to draw samples from the target distribution of residual errors.
  • Self-normalized Sampling: A faster, parallelizable alternative to MH sampling that directly generates samples from an unnormalized distribution. This method is highlighted as a key contribution for its efficiency.

The paper also details the implementation of a deep-learning-based least squares method for solving PDEs, where the neural network is trained to minimize a loss function based on the PDE's residual and boundary conditions.

Datasets

Not discussed in the paper. The paper focuses on solving PDEs, and the "datasets" are generated as training points sampled from the domain of the PDE based on the proposed adaptive sampling strategies.

Key Insights and Ideas

  • Residual Error as a Learning Signal: The paper establishes that the residual error of a neural network's prediction for a PDE can serve as a powerful signal for guiding the learning process. Higher residual errors indicate areas where the model is "wronger," and thus, focusing training on these areas is more beneficial.
  • Active Learning for Unsupervised Problems: While active learning is typically used in supervised settings, this work demonstrates its effective application to unsupervised problems like solving PDEs, where explicit labels are absent.
  • Self-Normalized Sampling Efficiency: The proposed self-normalized sampling algorithm offers a significant computational advantage by allowing for parallel sampling, making it more efficient than traditional MCMC methods like Metropolis-Hastings for this application.
  • Balancing Uncertainty and Diversity: The adaptive sampling approach, while focusing on high-residual areas (uncertainty), also implicitly preserves diversity in training points over time, preventing the model from becoming overly specialized and potentially improving generalization.

Key Results

The paper demonstrates the effectiveness of the proposed adaptive sampling method across various types of PDEs (elliptic, parabolic, hyperbolic) and in high dimensions (up to 100 dimensions).

  • Significant Error Reduction: In all tested examples, adaptive sampling consistently achieved lower relative $l_2$ errors and, more notably, significantly reduced maximum relative $l_1$ modulus errors compared to the basic least squares method and a baseline adaptive method (RAR). For instance, in Example 4.1 (elliptic equation), adaptive sampling reduced the max $l_1$ error by up to 73.69% in 100 dimensions.
  • Faster Convergence: The adaptive sampling approach leads to faster convergence, meaning a desired level of accuracy is reached in less time or fewer epochs. This is visually demonstrated in numerous plots showing error decay over time or epochs.
  • Compatibility with Existing Frameworks: The paper shows that the adaptive sampling strategy is compatible with other deep learning frameworks for PDEs, such as Deep Ritz Method (DRM), Deep Galerkin Method (DGM), and Weak Adversarial Networks (WAN), further reducing errors in these established methods.

Limitations and Future Work

  • Numerical Differentiation Precision: The authors note that while numerical differentiation was used for practical implementation, it can introduce small errors. They plan to address the issue of precise partial derivative evaluation in future work, potentially using more advanced techniques or Autograd for higher dimensions.
  • Domain Complexity: The uniform annular distribution used for initial sampling is noted to be effective for simple domains like unit balls or cubes. For more complex geometries, applying this distribution becomes challenging, suggesting a need for more sophisticated sampling strategies in such cases.
  • Generalization of Adaptive Sampling: While the paper shows AS outperforms RAR, further theoretical analysis on why AS is more effective, especially in high-dimensional settings, could be beneficial. The authors suggest that AS balances uncertainty and diversity, which warrants deeper investigation.

Summary updated

BibTeX
@misc{gao2021active,
  author = {Wenhan Gao and Chunmei Wang},
  title = {{Active learning based sampling for high-dimensional nonlinear partial differential equations}},
  year = {2021},
  eprint = {2112.13988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.13988},
}
Figure