Coupling parameter and particle dynamics for adaptive sampling in Neural Galerkin schemes

Yuxiao Wen, Eric Vanden‐Eijnden, Benjamin Peherstorfer

TL;DR

This paper introduces a "Neural Galerkin" scheme that solves partial differential equations (PDEs) by coupling neural network parameters with a moving ensemble of particles. By evolving these particles to follow the "interesting" parts of a solution (like moving waves or shocks), the method achieves orders-of-magnitude higher accuracy than standard uniform sampling, especially in high-dimensional spaces.

What Problem Does This Paper Address?

Solving PDEs with neural networks usually involves minimizing a "residual"—a measure of how much the current network approximation fails to satisfy the underlying physics equations. However, for many real-world problems, the solution isn't uniform; it contains localized features like traveling waves, sharp fronts, or coherent structures.

The challenge is a "needle in a haystack" problem: if you sample points uniformly across the entire spatial domain, most points will land in "boring" regions where the residual is near zero. Only a few points will capture the critical, high-residual areas where the action is happening. In high-dimensional spaces (like 5D or 8D), this inefficiency becomes a "curse of dimensionality," making it nearly impossible to train an accurate model without an astronomical number of samples.

Methods

The authors build upon the Neural Galerkin framework, which uses the Dirac-Frenkel variational principle to convert a PDE into a system of ordinary differential equations (ODEs) for the neural network's weights.

The core innovation is the coupling of parameter and particle dynamics:

  1. Dynamic Measure: Instead of using a fixed, uniform distribution to pick training points, they introduce a time-dependent measure $\mu_t$.
  2. Particle Ensembles: This measure is represented by a small set of "particles" (sample points).
  3. Coupled Evolution: As the neural network parameters $\theta(t)$ evolve to solve the PDE, the particles also move. They are driven by dynamics—specifically Langevin dynamics or Stein Variational Gradient Descent (SVGD)—that pull them toward regions where the PDE residual is high or where the solution is concentrated.
  4. Predictor-Corrector Scheme: To keep the system stable, they use a predictor step to estimate where the solution is going, move the particles accordingly, and then perform a "corrector" step to update the network weights using the newly positioned particles.

Datasets

The method was evaluated on three classic PDE benchmarks that represent difficult "transport-dominated" or high-dimensional physics:

  • Korteweg-de Vries (KdV) Equation: A 1D model for nonlinear waves (solitons) that collide and separate.
  • High-Dimensional Advection: A 5D problem where a complex wave moves through space.
  • Fokker-Planck Equation: An 8D problem describing the joint probability density of multiple interacting physical particles.

Key Insights and Ideas

  • Active Data Acquisition: Instead of "passive" sampling (hoping points land in the right spot), this is "active" sampling. The training data points are essentially "chasing" the wave.
  • Efficiency over Volume: The paper shows that where you sample is more important than how much you sample. A few hundred "smart" particles can outperform thousands of "dumb" uniform samples.
  • Generalizability: Unlike previous attempts at adaptive sampling that only worked for specific network architectures (like shallow networks), this framework works for any nonlinear parametrization, including deep neural networks.
  • Solving the Curse of Dimensionality: By focusing only on the manifold where the solution actually lives, the method remains tractable even as the number of spatial dimensions increases.

Key Results

  • KdV Equation: The Neural Galerkin scheme with dynamic particles maintained an accurate solution over long time periods, while static/uniform sampling failed almost immediately as the solitons moved away from the initial sample points.
  • Accuracy Boost: In the KdV and Advection tests, the proposed method achieved orders of magnitude lower error than static sampling using the same number of points.
  • High-Dimensional Success: In the 8D Fokker-Planck example, the dynamic particles successfully tracked the concentration of the probability density. The method accurately predicted complex quantities like entropy, which are notoriously difficult to estimate with standard Monte Carlo methods.
  • Minimal Overhead: The authors found that even a small number of particles (e.g., $m=100$) was sufficient for accurate estimation in 1D, and $m=2500$ was enough for 8D.

Limitations and Future Work

  • Network Expressivity: The method assumes the neural network is "expressive enough" to capture the solution. If the network architecture is too small, even perfect sampling won't save the approximation.
  • Computational Cost of SVGD: While moving the particles makes the training more efficient, the SVGD steps themselves add computational overhead at each time step.
  • Initial Conditions: The particles need a good starting point. If the initial distribution of particles misses the solution features entirely at $t=0$, the "chase" might never begin.
  • Future Directions: The authors suggest exploring more complex "potentials" to drive the particles and applying the method to even higher-dimensional problems in chemistry and fluid dynamics.

Summary updated

BibTeX
@inproceedings{wen2024coupling,
  author = {Yuxiao Wen and Eric Vanden‐Eijnden and Benjamin Peherstorfer},
  title = {{Coupling parameter and particle dynamics for adaptive sampling in Neural Galerkin schemes}},
  booktitle = {Physica},
  year = {2024},
  doi = {10.1016/j.physd.2024.134129},
}
Figure