Moving sample method for solving time-dependent partial differential equations

Beining Xu, Haijun Yu, Jiayu Zhai, Kejun Tang, Xiaoliang WanarXiv 2026

TL;DR

The Moving Sample Method (MSM) introduces a dynamic, residual-driven adaptive sampling framework for Physics-Informed Neural Networks (PINNs) solving time-dependent PDEs. By treating collocation points as a fluid flow governed by the transport equation, MSM continuously migrates training points toward regions with sharp gradients and singularities, achieving significantly higher accuracy with fewer points than uniform sampling.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) have become a popular mesh-free alternative for solving partial differential equations (PDEs), particularly in high dimensions where traditional grid-based methods fail due to the curse of dimensionality. However, standard PINNs rely heavily on uniform or quasi-random sampling of collocation points.

When a PDE solution exhibits sharp gradients, shocks, or localized singularities (e.g., moving wave fronts or phase transitions), these critical features occupy a tiny fraction of the total domain volume. Uniform sampling allocates very few points to these regions, resulting in weak error signals during training. Consequently, the network optimizes for the large, smooth zones while failing to resolve sharp local features. While existing adaptive sampling methods try to fix this by adding more points locally (similar to h-refinement in finite elements), they struggle to dynamically determine exactly how many points to add and where to allocate them efficiently over time.

Methods

The authors propose the Moving Sample Method (MSM), which can be viewed as a probabilistic counterpart to classical r-adaptive (moving mesh) methods. Instead of generating new points or changing the total sample size, MSM keeps the number of collocation points fixed but dynamically moves them through time.

The key components include:

  1. The Transport Equation Framework: The spatial-temporal distribution of the collocation points is modeled as a probability density flow. The points move according to a velocity field $\mathbf{v}_t$ derived from the continuity (transport) equation.
  2. Residual-Driven Density: The target density for the points is set proportional to the unnormalized PDE residual ($r_t^2 + \epsilon$). This ensures points naturally migrate toward high-error regions, while $\epsilon$ maintains a baseline of uniformly distributed points to prevent the network from forgetting the global solution.
  3. Irrotational Velocity Field: To simplify the optimization and ensure numerical stability, the authors leverage the Helmholtz decomposition theorem to restrict the velocity field to a pure gradient form ($\mathbf{v}_t = \nabla \phi_t$).
  4. Dual-Network Architecture: The framework trains two neural networks simultaneously: $u_\theta(\mathbf{x}, t)$ to approximate the PDE solution, and a scalar potential network $\phi_\eta(\mathbf{x}, t)$ to determine the velocity field that guides the sample trajectories.

Datasets

The method was evaluated on five distinct time-dependent PDE benchmarks exhibiting sharp transitions or moving singularities:

  • 1D Allen–Cahn Equation: Models phase separation dynamics with sharp transition layers near $x = 0$ and $x = \pm 0.5$.
  • 2D Rotation Equation: Simulates a highly singular Gaussian kernel rotating continuously on a unit circle.
  • 2D Burgers’ Equation: A viscous transport problem featuring a propagating sharp interface.
  • 2D Fokker–Planck Equation: Describes the probability density evolution of a particle in a time-dependent, ring-shaped potential well.
  • 6D High-Dimensional Advection Equation: A linear advection problem modeling rigid translation along a coordinate diagonal in six spatial dimensions.

Key Insights and Ideas

  • Coupling Space and Time Dynamics: Simply treating time as an extra spatial dimension in adaptive sampling often flattens out dynamic information, leading to under-sampling in critical time intervals. MSM explicitly separates spatial and temporal variables to preserve the physical evolution of the system.
  • The "Aha" Analogy to Fluid Flow: Instead of treating point generation as a static resampling problem at each iteration, MSM treats the training points as physical particles flowing toward areas of high computational demand.
  • Enforcing Irrotational Flow: Restricting the velocity field to the gradient of a potential function ($\mathbf{v} = \nabla \phi$) eliminates non-identifiable solenoidal (rotational) components. This dramatically reduces the parameter search space and stabilizes the training of the sampling network.

Key Results

Across all benchmarks, MSM-PINNs consistently outperformed vanilla PINNs using the exact same network architectures and total number of sampling points:

  • Error Reduction: For the Allen-Cahn equation, MSM achieved a 63% improvement in relative $L_2$ error and an 81% improvement in $L_\infty$ error over standard PINNs.
  • Mitigating Dissipation and Peak-Shift: In the 2D Rotation and Burgers' benchmarks, standard PINNs suffered from numerical dissipation (the peak flattened out over time) or peak-shift (misplacing the wave front). MSM accurately tracked the moving peaks and interfaces stably across all time steps (see Table 5.1).
  • Conquering High Dimensions: In the 6D Advection experiment, vanilla PINNs failed completely to produce a meaningful approximation due to point sparsity. MSM successfully tracked the moving singularity, yielding a reliable relative $L_2$ error of $1.177 \times 10^{-2}$.
Method / Benchmark Allen-Cahn ($L_2$) Rotation ($L_2$) Burgers' ($L_2$) Fokker-Planck ($L_2$) 6D Advection ($L_2$)
Vanilla PINNs $9.829 \times 10^{-3}$ $8.967 \times 10^{-2}$ $6.539 \times 10^{-3}$ $3.637 \times 10^{-2}$ Failed (-)
MSM-PINNs $3.597 \times 10^{-3}$ $5.993 \times 10^{-2}$ $1.784 \times 10^{-3}$ $1.761 \times 10^{-2}$ $1.177 \times 10^{-2}$

Limitations and Future Work

  • Computational Overhead: Training a secondary neural network ($\phi_\eta$) to learn the velocity potential increases the computational cost per iteration compared to standard uniform sampling.
  • High-Dimensional Initialization Risk: In very high dimensions, if the initial uniform points completely miss a highly localized singularity, the velocity network won't receive enough residual signal to guide the points toward it.
  • Boundary Drift: When boundary conditions conflict slightly with the governing PDE, points can occasionally drift outside the computational domain $\Omega$. Currently, out-of-domain points are simply discarded, which hurts sampling efficiency. The authors note that future work will focus on projecting these points back onto feasible regions or adding domain constraints directly to the potential network.

Summary updated

BibTeX
@misc{xu2026moving,
  author = {Beining Xu and Haijun Yu and Jiayu Zhai and Kejun Tang and Xiaoliang Wan},
  title = {{Moving sample method for solving time-dependent partial differential equations}},
  year = {2026},
  eprint = {2601.18575},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.18575},
}
Figure