Bridging Traditional and Machine Learning-Based Algorithms for Solving PDEs: The Random Feature Method

Jingrun Chen, Xurong Chi Xurong, Weinan E Weinan E, Zhouwang Yang Zhouwang YangJournal of Machine Learning 2022

Abstract

The Random Feature Method (RFM) represents a hybrid approach to solving partial differential equations (PDEs), combining the mesh-free flexibility of machine learning with the numerical rigor of traditional spectral methods. By utilizing a two-layer neural network with fixed random inner weights, RFM transforms complex non-linear optimization into a stable linear least-squares problem. This paper details the architecture of RFM, including its use of collocation, partition of unity, and a novel rescaling strategy. Empirical results demonstrate that RFM achieves spectral accuracy (errors as low as $10^{-13}$) and handles complex geometries more effectively than popular alternatives like Physics-Informed Neural Networks (PINNs).

Introduction

Scientific computing relies heavily on solving partial differential equations (PDEs) for applications ranging from fluid dynamics to structural engineering. Traditional numerical methods, such as the Finite Element Method (FEM), provide high accuracy but are often hindered by the "mesh generation bottleneck"—the difficulty of creating a geometric grid for complex shapes.

Conversely, deep learning approaches like Physics-Informed Neural Networks (PINNs) offer a mesh-free alternative. However, these methods are frequently difficult to train due to non-convex optimization landscapes and often reach an accuracy plateau around $10^{-3}$ relative error. The Random Feature Method (RFM) is proposed as a bridge between these two paradigms, offering the ease of implementation found in neural networks alongside the mathematical robustness of classical solvers.

Methodology

The RFM architecture is built upon several key innovations designed to ensure both flexibility and precision.

Random Feature Functions and Collocation

Unlike standard deep learning models, RFM employs a two-layer network where the inner weights (frequencies and offsets) are randomly sampled and kept fixed. This reduces the training process to a linear least-squares problem, which can be solved efficiently using optimized numerical libraries. The PDE is enforced at specific "collocation points" distributed throughout the domain and along its boundaries.

Distribution of collocation points for enforcing PDE constraints.

Partition of Unity (PoU) and Rescaling

To manage local variations in the solution, RFM utilizes a Partition of Unity (PoU) strategy. The domain is divided into local regions, each with its own random feature model. These local models are then stitched together using smooth PoU functions to ensure global continuity. The model further combines these local basis functions with a global one to efficiently capture both fine-grained details and large-scale trends.

Comparison of sharp and smooth partition of unity functions.

A critical component of RFM is its automatic rescaling procedure. In many machine learning solvers, balancing the relative weight of the PDE residuals against boundary conditions is a manual task. RFM automates this by balancing terms based on the magnitude of the operators involved, significantly improving robustness.

Experimental Results

The performance of RFM was evaluated against several benchmark problems and complex engineering scenarios.

Accuracy and Convergence

In standard 1D Helmholtz and 2D Poisson benchmarks, RFM demonstrated "spectral convergence," where the error decreases exponentially as the number of features increases. The method achieved relative errors between $10^{-11}$ and $10^{-13}$, significantly outperforming the $10^{-3}$ typical of PINNs.

Complex Geometries and Multi-scale Problems

RFM's mesh-free nature was tested on a 2D elasticity problem involving a "Swiss cheese" domain with 40 holes. While traditional FEM would require labor-intensive mesh generation for such a geometry, RFM handled the domain effortlessly. The method also proved effective for multi-scale problems with rapidly oscillating coefficients and fluid dynamics problems like Stokes flow, where it successfully avoided common numerical issues like "spurious pressure modes."

Conclusion

The Random Feature Method provides a powerful alternative for solving PDEs by leveraging the strengths of both traditional numerical analysis and machine learning. By simplifying the optimization process and introducing automated rescaling, RFM achieves high precision and robustness. Future work will focus on improving preconditioning for ill-conditioned matrices and extending the method to complex 3D surfaces.

Summary updated

BibTeX
@misc{chen2022bridging,
  author = {Jingrun Chen and Xurong Chi Xurong and Weinan E Weinan E and Zhouwang Yang Zhouwang Yang},
  title = {{Bridging Traditional and Machine Learning-Based Algorithms for Solving PDEs: The Random Feature Method}},
  year = {2022},
  eprint = {2207.13380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.13380},
}
Figure