A randomized Newton's method for solving differential equations based on the neural network discretization

Qipin Chen, Wenrui HaoarXiv 2019

TL;DR

This paper introduces a randomized Newton's method to solve differential equations discretized via neural networks. By transforming the problem into an overdetermined nonlinear system and solving it adaptively through random equation selection, the method avoids the local minima traps of standard optimization techniques while achieving local quadratic convergence and the ability to discover multiple distinct physical solutions.

What Problem Does This Paper Address?

When using deep learning to solve partial differential equations (PDEs), researchers typically follow an optimization framework: they define a neural network to approximate the solution and minimize a loss function based on the PDE's residual (as seen in Physics-Informed Neural Networks or the Deep Galerkin Method). However, these loss functions are highly non-convex, meaning optimization algorithms frequently get trapped in inaccurate local minima.

An alternative is the collocation method, which sets up a system of nonlinear equations at specific sample points. If you choose exactly as many sample points as network parameters (a square system), the high nonlinearity introduces "fake solutions"—mathematical roots that satisfy the collocation equations but do not match the actual differential equation. To eliminate these fake solutions, you must oversample the domain, which results in an overdetermined system (more equations than variables) where traditional Newton methods cannot be directly applied.

Methods

The authors propose a Randomized Newton's Method to elegantly solve this overdetermined system:

  1. Neural Network Discretization: A fully connected neural network $U(x; \theta)$ acts as the solution ansatz.
  2. Overdetermined Formulation: The PDE and its boundary conditions are sampled at a large number of points, creating a massive system of nonlinear equations $F(\theta) = 0$.
  3. Randomized Subsampling: At each iteration $k$, the algorithm randomly selects a subset of equations $\tilde{F}(\theta)$ from the main system such that the number of chosen equations exactly matches the number of network parameters $|\theta|$.
  4. Newton Step: The algorithm computes a standard Newton step on this randomly selected square system: $$\theta^{k+1} = \theta^k - \nabla\tilde{F}^{-1}(\theta^k)\tilde{F}(\theta^k)$$ If the resulting Jacobian is singular, it defaults to a Gauss-Newton step.

The defining feature of this method is that it proves local quadratic convergence theoretically, meaning it approaches the true solution exceptionally fast once it is within a close neighborhood, despite the randomness introduced at each step.

Datasets

Because this paper focuses on numerical analysis for differential equations, it evaluates the method using synthetic mathematical benchmarks rather than traditional machine learning datasets. The benchmarks include:

  • 1D Poisson Equation: Used to demonstrate how traditional collocation fails due to fake solutions, whereas the new method succeeds.
  • 1D/2D Burger's Equation: A standard non-linear PDE with a viscosity term used to test shock wave capturing and entropy solutions.
  • High-Dimensional Laplace Equation: Evaluated on a unit $n$-ball in up to 6 dimensions.
  • Gray-Scott Model (1D and 2D): A complex, non-linear reaction-diffusion system used to simulate biological and chemical pattern formation.

Key Insights and Ideas

  • Oversampling Cures "Fake Solutions": The paper highlights that overdetermining the system ($N+M > |\theta|$) ensures that fake solutions disappear with probability one. The challenge was simply finding a way to solve such a system efficiently.
  • Randomization as an Efficient Solver: Rather than computing expensive global least-squares or fixed random projections (which become computationally prohibitive for large-scale systems), dynamically changing the subset of equations at each iteration provides an excellent balance of speed and stability.
  • Mapping Multiple Steady States: Because the method solves equations directly rather than minimizing a global energy functional, it isn't biased toward a single global minimum. By varying the initial guess, the network can successfully "learn" completely different, equally valid physical solutions (such as different steady-state patterns in fluid dynamics or biology).

Key Results

  • Defeating Fake Solutions: In a simple 1D problem where standard collocation methods delivered entirely incorrect "fake" curves depending on the grid choice, the randomized Newton's method consistently converged to the true analytical solution.
Figure 2: The numerical solution with 10 nodes and 101 sample points V.S. the real solution to system (2.7).
  • High-Dimensional Scaling: The method successfully solved a 6-dimensional Laplace equation on a unit ball. It achieved a low error ($\sim 4.1 \times 10^{-3}$) using only 801 variables, demonstrating an effective mitigation of the curse of dimensionality.
  • Pattern Formation Discovery: When applied to the highly non-linear Gray-Scott model, the algorithm successfully uncovered four distinct steady-state patterns in 1D and multiple stable spatial patterns in 2D simply by altering the initial parameter guesses.

Limitations and Future Work

While powerful, the authors note a few limitations:

  • Lower Absolute Accuracy: Compared to traditional high-order numerical methods (like spectral methods), the discretization accuracy of the neural network remains relatively low (errors typically sit around $10^{-3}$ to $10^{-5}$).
  • Parameter Redundancy: Fully connected networks possess significant parameter redundancy, which can cause the algorithm to require more iterations than theoretically optimal.

For future work, the authors propose adapting this randomized Newton framework to other network architectures, such as Convolutional Neural Networks (CNNs), to reduce redundancy and further accelerate convergence.

Summary updated

BibTeX
@misc{chen2019randomized,
  author = {Qipin Chen and Wenrui Hao},
  title = {{A randomized Newton's method for solving differential equations based on the neural network discretization}},
  year = {2019},
  eprint = {1912.03196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03196},
}
Figure