Introduction
Simulating complex physical phenomena—such as turbulent flows, combustion, or shock waves—traditionally necessitates solving partial differential equations (PDEs) on extremely fine computational grids. This requirement ensures that sharp gradients and high-frequency features are accurately captured. While high-order numerical methods like Weighted Essentially Non-Oscillatory (WENO) schemes provide the necessary accuracy, their computational cost scales poorly with increased spatial resolution.
Machine learning has recently been explored as a surrogate for these solvers. However, existing methods often require explicit knowledge of the underlying PDE or fail to generalize across different spatial scales and long temporal horizons. STENCIL-NET addresses these challenges by introducing a purely data-driven, equation-free framework that learns optimal, solution-adaptive discretization rules directly from data.
Methodology
The core innovation of STENCIL-NET is its "Network In Network" (NIN) architecture, designed to discover local discretization stencils that adapt to the solution's features.
Parametric Pooling and MLPs
Instead of using fixed convolutional kernels, STENCIL-NET employs a Multi-Layer Perceptron (MLP) that slides over local input patches (stencils). This "mlpconv" unit learns to map a local state to its spatial derivative. A key theoretical insight of this work is the formal connection between MLPs and rational functions. Since state-of-the-art adaptive schemes like WENO are essentially rational functions of stencil values, MLPs are mathematically well-suited to approximate these complex, nonlinear discretization rules, particularly near discontinuities.
Temporal Consistency and De-noising
To ensure physical consistency, the model is trained by integrating predictions forward and backward in time using standard numerical integrators, such as the Runge-Kutta method. This constraint forces the learned spatial discretization to be compatible with discrete time-stepping laws. Furthermore, the framework incorporates a latent variable approach to handle noisy experimental data, allowing the model to learn the underlying physics while simultaneously filtering out noise.
Experimental Evaluation
STENCIL-NET was evaluated on three benchmark 1D nonlinear PDEs:
- Forced Burgers’ Equation: Tests the handling of shocks and sharp gradients.
- Kuramoto-Sivashinsky (KS) Equation: Evaluates long-term stability and the capture of chaotic statistical properties.
- Korteweg-de Vries (KdV) Equation: Demonstrates de-noising capabilities on data corrupted with Gaussian noise.
Results and Discussion
STENCIL-NET demonstrates significant advantages over traditional high-order solvers in terms of efficiency and robustness.
Computational Efficiency and Coarse-Graining
The model achieves massive speedups—up to 150× on GPUs and 14× on CPUs—compared to baseline WENO solvers for the Burgers' equation. Crucially, STENCIL-NET maintains high accuracy on grids that are 4× to 8× coarser than those required by traditional methods. By learning a specialized discretization for the target resolution, it avoids the excessive numerical dissipation or oscillations typically seen in standard coarse-grid simulations.
Generalization and Chaos
A remarkable property of STENCIL-NET is its ability to generalize. Models trained on small spatial domains and short time windows successfully extrapolate to domains 16× larger and durations 4× longer with minimal accuracy loss. For chaotic systems like the KS equation, STENCIL-NET accurately captures the maximum Lyapunov exponent and the power spectrum, indicating that it has successfully learned the intrinsic system dynamics.
Conclusion
STENCIL-NET represents a significant step toward equation-free, data-driven physical simulation. By mimicking the logic of high-order adaptive schemes through a neural architecture, it provides a robust and efficient alternative to traditional solvers. Future work will focus on extending the framework to higher dimensions and adapting it for unstructured meshes.
Summary updated