Abstract
Computational physics frequently encounters Partial Differential Equations (PDEs) with non-smooth solutions, such as those containing jumps, kinks, or singularities. Traditional numerical methods like Finite Element Methods (FEM) often struggle with complex geometries, while modern deep learning approaches like Physics-Informed Neural Networks (PINNs) can be computationally expensive and prone to "smearing" sharp features. This paper introduces the Weak Random Feature Method (WRFM), a mesh-free approach that combines the efficiency of linear least-squares solvers with the robustness of weak integral formulations. By utilizing fixed random weights and trigonometric test functions, WRFM achieves superior accuracy and significantly faster computation times on CPUs compared to PINNs and Weak Adversarial Networks (WAN) running on high-end GPUs.
Introduction
Solving PDEs with low regularity—where the solution is not differentiable at all points—remains a significant challenge in numerical analysis. The standard Random Feature Method (RFM) offered a breakthrough by bypassing the iterative training of neural networks, instead using a single hidden layer with fixed random weights and solving for output coefficients via linear systems. However, RFM's reliance on the "strong form" of equations—calculating derivatives at specific collocation points—limits its effectiveness when solutions are non-smooth.
To address this, the Weak Random Feature Method (WRFM) adopts a "weak" formulation. By integrating the PDE against a set of test functions, the derivative burden is shifted from the unknown solution to the known test functions. This allows the method to accurately capture discontinuities and non-smooth boundaries that typically cause gradient-based methods to fail or converge slowly.
Methodology
1. Solution Representation
WRFM represents the solution as a Multi-Layer Perceptron (MLP) with one hidden layer. Crucially, the hidden layer's weights and biases are randomly assigned and kept fixed. Only the coefficients of the output layer are trainable, transforming the optimization problem from a non-convex neural network training task into a linear least-squares problem.
2. The Weak Formulation
Instead of satisfying the PDE pointwise, WRFM utilizes an integral form. The equation is multiplied by a test function and integrated over the domain. This mathematical shift effectively "moves" the derivatives onto the test functions, which are chosen to be smooth and well-behaved, even if the underlying solution is not.
3. Trigonometric Test Functions
To avoid the computational overhead of training adversarial networks to find optimal test functions, WRFM employs a predefined set of sine and cosine functions. This choice is supported by the Weierstrass Approximation Theorem, ensuring that a sufficiently rich set of trigonometric polynomials can approximate any continuous function within the domain.
4. Linear System Optimization
The resulting problem is reduced to a large-scale linear system ($Ax = b$). Because the internal weights are fixed, the system can be solved efficiently using standard least-squares techniques on a CPU, eliminating the need for backpropagation or specialized GPU hardware.
Experimental Evaluation
The WRFM was evaluated against several benchmark PDE problems designed to test low-regularity scenarios:
- 2D Helmholtz Equation: Tested on regular square domains and complex geometries featuring hexagonal packings of circular holes.
- 2D Static Heat Equation: A challenge problem involving discontinuous boundary conditions where no strong solution exists.
- 3D Poisson’s Equation: A high-dimensional case featuring a non-smooth boundary condition at a specific plane.
- 3D Heat Equation: A time-dependent problem on a regular domain.
In these tests, WRFM was compared against PINNs and Weak Adversarial Networks (WAN).
Key Insights and Results
Computational Efficiency
One of the most significant findings is the performance disparity between hardware platforms. WRFM, running entirely on a CPU, consistently outperformed PINNs and WANs running on NVIDIA V100 GPUs. For instance, in the 2D Helmholtz case, WRFM reached a solution in 15 seconds on a CPU, whereas PINNs required 106 seconds on a GPU to achieve a less accurate result.
Accuracy and Parameter Efficiency
WRFM demonstrated a superior ability to handle discontinuities. In the 2D Static Heat equation, WRFM achieved an $L_\infty$ error of 0.785, significantly lower than PINN (1.189) and WAN (1.435). Furthermore, WRFM is highly parameter-efficient; in 3D Poisson problems, it achieved comparable accuracy to PINNs while using only 200 parameters, compared to the 2,940 parameters required by the PINN architecture.
Robustness
Unlike PINNs, which often exhibit high error spikes at non-smooth points, WRFM’s error distribution is more uniform and lower in magnitude. The method also shows stability across a broad range of hyperparameters, such as the number of subdomains and feature functions, making it a reliable tool for practical engineering applications.
Limitations and Future Work
While WRFM is highly effective for 2D and 3D problems, it faces the "curse of dimensionality." The number of required test functions grows exponentially with the number of dimensions, which may make the linear system prohibitively large for very high-dimensional problems (e.g., 10D and above).
Future research directions include:
- Adaptive Partitioning: Developing automated methods to partition the domain to better capture local non-smooth features.
- Adversarial Features: Exploring the use of adversarially generated random features to act as more efficient test functions for high-dimensional or extremely complex problems.
Conclusion
The Weak Random Feature Method represents a significant advancement in mesh-free PDE solvers. By combining the mathematical rigor of weak formulations with the extreme speed of linear random feature models, WRFM provides a powerful alternative to traditional deep learning methods, particularly for problems where solution regularity is low and computational resources are constrained to standard CPUs.
Summary updated