Abstract
Numerical solvers for partial differential equations (PDEs) do not solve the target equations exactly; instead, they satisfy a "Modified Differential Equation" (MDE) that includes truncation errors. Deriving these MDEs analytically is often mathematically intractable for complex or nonlinear schemes. This paper presents Sparse Identification of Truncation Errors (SITE), a data-driven framework that automates the discovery of MDEs from simulation data. By combining sparse regression with advanced preconditioning and optimized initial conditions, SITE identifies high-order truncation terms with high precision, providing a robust tool for stability and accuracy analysis.
Introduction
When a Partial Differential Equation (PDE) is discretized for numerical solution, the resulting solver follows a "Modified Differential Equation" (MDE) rather than the original continuous physics. This MDE contains the original terms plus additional "truncation error" terms, which often appear as artificial diffusion or dispersion. Understanding these errors is critical for stability analysis, determining the true order of accuracy, and implicit turbulence modeling.
However, deriving MDEs manually through Taylor series expansions is a grueling process that becomes nearly impossible for nonlinear equations or complex high-order schemes. The SITE framework aims to automate this derivation using a data-driven discovery process.
Methodology
The SITE framework builds upon the PDE-FIND algorithm, incorporating several specialized preconditioning and optimization steps to handle the unique challenges of identifying tiny truncation error terms.
The SITE Workflow
The process begins with generating "rich" simulation data $u(x,t)$. To avoid multicollinearity—where different derivatives look similar (e.g., a sine wave and its second derivative)—the authors use Spline Initialization (NURBS) and particle swarm optimization to create initial conditions that maximize the independence of candidate terms.
Candidate Library and Preconditioning
A library of candidate terms, $\Theta(\mathbf{u})$, is constructed, containing various spatial derivatives and nonlinear combinations.
To improve the selection process, the Puffer Transformation (an SVD-based preconditioning step) is applied to decorrelate the library. This makes it easier for sparse regression algorithms to distinguish between physical terms and numerical artifacts.
Sparse Regression and Model Selection
The framework evaluates several sparse regression methods, including Lasso, STRidge, and SR3, identifying the Forward-Backward Greedy Algorithm (FoBa) as the most robust choice. The final model is selected using the Bayesian Information Criterion (BIC), which balances model accuracy against complexity to prevent overfitting.
Experimental Evaluation
The researchers evaluated SITE using three classic numerical benchmarks:
- Linear Advection Equation: Discretized with a first-order Forward-Time Backward-Space (FTBS) scheme.
- Inviscid Burgers’ Equation: A nonlinear test case using the MacCormack predictor-corrector scheme.
- Korteweg-de Vries (KdV) Equation: A dispersive wave equation using the Zabusky and Kruskal scheme.
Key Insights and Results
- Precision and Order: For linear advection, SITE identified truncation terms up to the 6th order ($v_{xxxxxx}$) with relative errors as low as $10^{-11}$.
- Nonlinear Robustness: In the Burgers' equation test, the framework correctly identified 8 different truncation terms, significantly outperforming standard sparse regression methods.
- The "Goldilocks" Grid Resolution: The framework requires a specific spatial resolution ($\Delta x$). If the grid is too coarse, the Taylor series approximation fails; if too fine, truncation errors are lost in double-precision floating-point noise.
- Algorithmic Performance: The Puffer transformation was found to be essential for improving the performance of Lasso and STRidge in highly correlated environments.
Conclusion and Future Work
SITE provides a powerful, automated alternative to manual MDE derivation. While highly effective in 1D, future work will address the "curse of dimensionality" in multi-dimensional systems and extend the framework to unstructured meshes used in finite element or finite volume methods. Additionally, moving beyond double-precision arithmetic may allow for the identification of even higher-order error terms.
Summary updated