Manuscript Offprint

arXiv:2609.07952

Structured Extrema Errors in Classical Surrogates for Viscous Burgers: A Physics-Consistent Interpretation

Youssef Oubari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the local errors of classical machine-learning surrogate models, which approximate the time evolution of the one-dimensional viscous Burgers equation. Four models are compared on the same prediction task, using the spatial grid values directly: radial basis function (RBF) kernel ridge regression (KRR), linear Ridge, ExtraTrees, and Random Forests. Across all four models, the one-step residual, defined here as the true value minus the predicted value at each grid point, forms clear curved branches near predicted maxima and minima. A more detailed analysis of KRR shows that these errors are much more strongly related to the second spatial derivative, which measures local curvature, than to the first spatial derivative. Near a smooth extremum, predicted value and curvature form a local two-branch fold. Under our local curvature-based model of the residual, this fold predicts a leading-order near-parabolic relation between predicted value and residual. This geometric result motivates a direct test of the Burgers advection (transport) and diffusion (smoothing) terms. For KRR and Ridge, regression tests on held-out trajectories, a control that breaks the spatial alignment of the diffusion term, and a spectral test of high-frequency content are consistent with insufficient viscous smoothing at moderate and high viscosity. In this case, the surrogate retains more small-scale structure than the true future state. The same physical explanation is much weaker for the tree models. Finally, a correction that uses only predicted quantities reduces both one-step error and error during recursive rollout, where each prediction is used as the next input.

Keywords: scientific machine learning; PDE surrogates; viscous Burgers equation; residual analysis; physics-consistent interpretability; kernel ridge regression.

1 Introduction

Machine-learning methods are widely used to approximate solutions and solution operators of partial differential equations (PDEs). A solution operator maps an input field or parameter to a solution field [1, 3–5]. Their accuracy is commonly reported with global measures such as mean squared error or relative L2L^{2} error [4–6]. These measures summarize the prediction over the full domain, but they do not describe where the largest errors occur or whether those errors have a repeatable local structure. Scientific interpretability work therefore emphasizes quantitative tests and checks based on domain knowledge [13–15].

There are also well-established links between numerical error and differential operators. Modified-equation analysis describes discretization errors through additional differential terms [16, 22]. In learned PDE models, governing-equation residuals have also been used to measure and correct prediction errors [18, 19]. Here, a governing-equation residual means the mismatch obtained when a predicted solution is inserted into the PDE. These ideas lead to the question studied here: can the prediction error of a learned surrogate have a simple local structure, and can that structure be linked to terms in the governing PDE?

We study this question for the one-dimensional viscous Burgers equation, a standard benchmark in scientific machine learning [4, 6]. The comparison uses four classical models: radial basis function (RBF) kernel ridge regression (KRR) [7], linear Ridge [8], ExtraTrees [9], and Random Forests [10]. All models use the same discretized spatial grid values and viscosity as input. This gives a controlled setting for comparing their error structure.

The first observation is that the pointwise residual r=utrue−u^r = u_{true} - \hat{u} is strongly structured, where utrueu_{true} is the true future value and u^\hat{u} is the predicted value. When r is plotted against u^\hat{u}, clear curved branches appear near predicted maxima and minima. The same general pattern is present for all four model families, although its size and orientation vary between models. A qualitative KRR example is shown in Fig. 1: the main solution shape is reproduced, while some of the largest errors occur around peaks and troughs.

Figure

Figure 1: Qualitative KRR rollout example. Here, rollout means that the model is applied repeatedly and each prediction is used as the next input. The prediction follows the main shape of the reference solution, while some of the largest visible errors occur near peaks and troughs. This figure is used only as motivation. The quantitative results use the fixed protocol described in Sec. 3 and Appendix A.

To understand why these branches appear, we first model the local discrepancy using three simple components: amplitude change, spatial shift, and smoothing. The model uses a translation operator, which shifts a field in space, and a heat operator, which represents diffusion and smoothing [20, 21]. These components are also consistent with standard descriptions of spatial-shift and smoothing errors in numerical analysis [16, 22]. To first order, meaning that we keep only terms linear in the small changes, we show that the residual is a combination of the predicted value, its first derivative, and its second derivative. The derivation is given in Appendix B.

This first-order model points directly to extrema. At a smooth interior extremum, the first spatial derivative is zero by the standard first-order condition for differentiable functions [28]. Our experiments show that the second-derivative term, which measures local curvature, explains much more of the KRR residual than the first-derivative term. This motivates a closer study of the local geometry. Using Taylor's theorem [28], we show that predicted value and curvature form a local fold: the two sides of a smooth extremum form two branches in the value-curvature relation. When this fold is combined with the local curvature-based residual model, it predicts a leading-order near-parabolic relation between predicted value and residual. The full derivation is given in Appendix B.

Curvature also has a direct physical role in the Burgers equation because the viscous diffusion term is proportional to the second spatial derivative [22]. This connection motivates the next test. We compare the observed residual with the Burgers advection and diffusion terms using regression evaluated on held-out trajectories. We also use a spatial negative control: the diffusion field is shifted so that its values are no longer aligned with the residual at the same grid points. For KRR and Ridge, the correctly aligned diffusion term explains a large part of the residual near extrema, while the advection contribution is much smaller. The same diffusion attribution is much weaker for ExtraTrees and Random Forests.

We test the diffusion interpretation in a second way. First, we define an effective-diffusion diagnostic: under a local heat model, it measures the amount of diffusion that would reproduce the surrogate's smoothing. Second, we use a spectral measure of small-scale content, based on Fourier coefficients. The heat-model relation follows from the standard heat semigroup [21], while the spectral measure follows from Fourier differentiation and Parseval's identity [23]. At moderate and high viscosity, both tests are consistent with insufficient viscous smoothing for KRR and Ridge. In this case, the surrogate retains more small-scale structure than the true future state. The weaker tree-model attribution shows that similar residual geometry can arise from different error mechanisms.

The final question is whether the identified structure contains useful information. An oracle experiment, meaning a test that is allowed to use the true residual profile, first measures how much local residual energy can be removed. We then train a correction that uses only quantities computed from the predicted state and does not use the true residual at test time. The correction is tested on held-out one-step predictions and during recursive rollout, where each prediction is used as the next input.

The main contributions are:

  • We show that large residuals are concentrated near predicted extrema and that structured extrema-local branches occur across four classical surrogate families.

  • For KRR, we show that curvature is the main first-order quantity associated with these residuals. A local fold analysis then explains why a near-parabolic structure can appear between predicted value and residual under the curvature-based residual model.

  • For KRR and Ridge, regression against the Burgers terms on held-out trajectories, a spatial negative control, effective-diffusion estimates, and spectral measurements are consistent with insufficient viscous smoothing at moderate and high viscosity. The same explanation is much weaker for the tree models.

  • A correction learned only from predicted quantities reduces KRR error in both one-step prediction and recursive rollout.

References (18)

  • Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations
  • Physics-informed machine learning
  • Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators
  • Fourier neural operator for parametric partial differential equations
  • Neural operator: Learning maps between function spaces with applications to PDEs
  • PDEBench: An extensive benchmark for scientific machine learning
  • Learning with Kernels
  • Ridge regression: Biased estimation for nonorthogonal problems
  • Extremely randomized trees
  • Operator learning using random features: A tool for scientific computing
  • Towards A Rigorous Science of Interpretable Machine Learning
  • Sanity checks for saliency maps
  • Explainable machine learning for scientific insights and discoveries
  • The modified equation approach to the stability and accuracy analysis of finite-difference methods
  • Discovering governing equations from data by sparse identification of nonlinear dynamical systems
  • Residual-based error correction for neural operator accelerated infinite-dimensional Bayesian inverse problems
  • Direct least square fitting of ellipses
  • The proper orthogonal decomposition in the analysis of turbulent flows