Provably Accurate Adaptive Sampling for Collocation Points in Physics-Informed Neural Networks

Antoine Caradot, Rémi Emonet, Amaury Habrard, Abdel-Rahim Mezidi, Marc Sebban

Abstract

This paper introduces a theoretically grounded adaptive sampling method for Physics-Informed Neural Networks (PINNs) that selects collocation points based on the Hessian (second-order derivative) of the PDE residuals. By proving that this approach yields a tighter error bound than uniform sampling, the authors provide a "hessian-RAD" algorithm that achieves faster convergence and higher accuracy across various 1D and 2D differential equations.

Introduction

Physics-Informed Neural Networks (PINNs) have revolutionized the numerical solution of Partial Differential Equations (PDEs) by embedding physical laws directly into the neural network's loss function. The training process relies on evaluating the PDE "residual"—the degree to which the physical equation is violated—at specific locations known as collocation points.

Traditionally, these points are sampled uniformly across the domain. However, many PDEs exhibit "sharp" features, such as shock waves or steep gradients, where uniform sampling becomes computationally inefficient. While heuristic adaptive methods have been proposed—such as sampling based on residual magnitude or gradients—they often lack a rigorous mathematical foundation. This paper bridges the gap between heuristic sampling and mathematical necessity by introducing a provably accurate quadrature-based approach.

Methodology: The Quadrature Perspective

The authors reframe PINN training as a numerical quadrature problem, approximating the integral of the residual over the domain. Their methodology is built on three pillars:

  1. A Refined Quadrature Rule: The authors derive a trapezoidal rule that utilizes the second-order derivative ($f''$) of the function being integrated.
  2. Theoretical Guarantee (Theorem 3.1): The paper provides a formal proof that by concentrating collocation points in regions where the second-order derivative is high, the upper bound on the total approximation error is strictly tighter than that of a uniform grid.
  3. The hessian-RAD Algorithm: This theory is implemented in an adaptive framework. During training, the network periodically calculates the Hessian of the residuals and redistributes collocation points to regions where the "curvature" of the error surface is greatest.

Unlike greedy methods such as Residual-based Adaptive Refinement (RAR), hessian-RAD is grounded in global convergence guarantees provided by the quadrature perspective.

Experimental Evaluation

The method was rigorously tested on three classic PDE benchmarks:

  • 1D Newton’s Law of Cooling: A fundamental decay equation used to establish baseline convergence.
  • 1D Brinkman-Forchheimer Equation: A model for fluid flow in porous media characterized by steep changes at boundaries and a central plateau, representing a significant challenge for adaptive samplers.
  • 2D Poisson’s Equation: An elliptic PDE featuring a localized "bump" to test the algorithm's ability to autonomously identify and focus on complex sub-regions.

Key Results

Across these benchmarks, the hessian-RAD algorithm demonstrated several advantages:

  • Superior Convergence: In the 2D Poisson problem, the method converged in approximately 1,000 epochs, significantly faster than uniform or residual-based strategies.
  • Lower Error Floor: After extended training (20,000 epochs), the Hessian-based approach maintained a lower $L_2$ error heatmap than all other tested strategies.
  • Computational Efficiency: Despite the overhead of computing second derivatives, the method reached lower error thresholds faster than uniform sampling in terms of total wall-clock time, as the PINN framework is already optimized for high-order derivative computations.

Discussion and Insights

The central insight of this work is that curvature matters more than magnitude. A high residual value in a nearly linear region requires fewer points to characterize than a lower residual value in a region with high curvature. By focusing on the Hessian, the algorithm targets the areas most responsible for integration error.

Limitations and Future Directions

Despite its success, the authors identify two primary limitations:

  • The Plateau Problem: In regions where the solution is flat (zero Hessian), the algorithm may under-sample, potentially leading to errors if those regions are not completely trivial. A hybrid approach—combining a baseline uniform grid with Hessian refinement—is proposed as a solution.
  • High-Dimensional Scaling: The computational cost of the Hessian grows quadratically with the number of dimensions. For high-dimensional PDEs, future work will need to explore stochastic Hessian sampling or diagonal approximations to maintain efficiency.

Conclusion

By moving adaptive sampling from the realm of intuition to mathematical proof, this paper provides a robust framework for improving PINN performance. The hessian-RAD algorithm offers a path toward more efficient and accurate neural PDE solvers, particularly for problems with complex, non-uniform features.

Summary updated

BibTeX
@inproceedings{caradot2025provably,
  author = {Antoine Caradot and Rémi Emonet and Amaury Habrard and Abdel-Rahim Mezidi and Marc Sebban},
  title = {{Provably Accurate Adaptive Sampling for Collocation Points in Physics-Informed Neural Networks}},
  booktitle = {ECML/PKDD},
  year = {2025},
}
Figure