A practical algorithm to minimize the overall error in FEM computations

Jie Liu, Henk M. Schuttelaars, Matthias Möller · DOI

TL;DR

Researchers have developed a "PRED+" algorithm that predicts the maximum possible accuracy of a Finite Element Method (FEM) simulation before running expensive, high-resolution computations. By using a few "cheap" numerical experiments to characterize how round-off errors grow, the method identifies the optimal mesh size, reducing the CPU time required to find the most accurate solution by 60% to 90%.

What Problem Does This Paper Address?

In the world of Finite Element Method (FEM) simulations, there is a frustrating paradox: refining your mesh (increasing the "Degrees of Freedom" or DoFs) usually makes your answer more accurate, until suddenly, it doesn't.

Every simulation faces two competing types of error:

  1. Truncation Error ($E_T$): This comes from approximating a continuous mathematical problem with a discrete grid. It decreases as the grid gets finer.
  2. Round-off Error ($E_R$): This comes from the finite precision of computer math (floating-point arithmetic). As the grid gets finer, the number of calculations explodes, and these tiny errors accumulate and eventually dominate.

The total error follows a V-shaped curve. To find the "sweet spot"—the highest achievable accuracy ($E_{min}$) at the optimal number of DoFs ($N_{opt}$)—engineers typically use "brute force," refining the mesh step-by-step until the error starts to rise. This is incredibly slow and wasteful, as the most expensive computations are often thrown away.

Methods

The authors introduce a strategy called PRED+, which relies on a novel technique called the Method of Manufactured Solutions assisted by $\|u\|_2$ (MS+).

  • Characterizing Round-off: The researchers discovered that round-off error follows a power-law: $E_R \approx \alpha_R N^{\beta_R}$.
  • The MS+ Trick: To find the coefficients ($\alpha_R$ and $\beta_R$) without solving the actual complex problem at high resolution, they solve a "manufactured" problem where the exact solution is already known and perfectly representable by the finite element space. This isolates the round-off error from the truncation error.
  • Prediction: Once they have the round-off characteristics of the specific FEM package (like deal.II or FEniCS) and the space dimension (1D or 2D), they use a few low-resolution runs of the actual problem to determine its truncation error.
  • Optimization: By mathematically combining these two error models, the algorithm predicts exactly where the V-shaped curve hits its minimum ($N_{opt}$) and what that minimum error ($E_{min}$) will be.

Datasets

As a numerical analysis paper, the "datasets" consist of standard benchmark partial differential equations (PDEs) used to validate the algorithm:

  • 1D & 2D Poisson Problems: The bread-and-butter of FEM testing.
  • 1D & 2D Diffusion Problems: Testing varying coefficients ($D(x)$).
  • 1D Helmholtz Problems: Testing reactive terms ($r(x)$).
  • Software Packages: The methods were validated using two major open-source FEM libraries: deal.II and FEniCS, ensuring the algorithm isn't tied to a specific implementation.

Key Insights and Ideas

  • Round-off is Predictable: Round-off error isn't just "noise"; it grows predictably based on the number of DoFs. The slope ($\beta_R$) is often constant for a given dimension (e.g., $\beta_R \approx 2$ for 1D problems in deal.II).
  • Solver Signature: Different FEM packages and solvers have different "round-off signatures." The MS+ method allows a user to "calibrate" their specific software environment quickly.
  • Mesh Distortion Matters: The paper demonstrates that while mesh distortion (irregular grids) increases the absolute round-off error, the rate at which it grows remains consistent, meaning the PRED+ prediction still holds true.
  • Efficiency via Foresight: The "Aha!" moment is realizing you don't need to reach the error floor to know where it is. By observing the "downward" slope of truncation error and knowing the "upward" slope of round-off error, you can calculate the intersection point in advance.

Key Results

  • Massive Speedups: The PRED+ method reduced the CPU time required to obtain the most accurate solution by 60% to 90% compared to brute-force refinement.
  • High Predictive Accuracy: The predicted $E_{min}$ and $N_{opt}$ were found to be very close to the actual values obtained through exhaustive testing.
  • Dimensional Scaling: The authors successfully extended the theory from 1D to 2D problems, accounting for how DoFs count differently in higher dimensions.
  • Memory Awareness: The paper notes that for 2D problems, the "optimal" number of DoFs sometimes exceeds the memory limits of direct solvers (like UMFPACK), and their algorithm can predict this failure before it happens.

Limitations and Future Work

  • PDE Scope: The study focused on second-order partial differential equations. Extending this to higher-order equations or systems of equations (like Navier-Stokes) remains for future work.
  • Precision Limits: The work assumes standard IEEE-754 double precision. While the logic should hold for single or quad precision, the specific coefficients would change.
  • Iterative Solvers: The current study used direct solvers to avoid iteration errors. Future research could investigate how iterative solvers (which have their own tolerance-based errors) interact with the round-off/truncation balance.

Summary updated

BibTeX
@misc{liu2022practical,
  author = {Jie Liu and Henk M. Schuttelaars and Matthias Möller},
  title = {{A practical algorithm to minimize the overall error in FEM computations}},
  year = {2022},
  eprint = {2202.02572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.02572},
}

Loading related content...

Figure