Learning to correct spectral methods for simulating turbulent flows

Gideon Dresdner, Dmitrii Kochkov, Peter Christian Norgaard, Leonardo Zepeda-Nunez, Jamie Smith, Michael Brenner, Stephan Hoyer

Introduction

Simulating turbulent fluid flow is essential for fields ranging from meteorology to aerospace engineering. Traditionally, solving the Navier-Stokes equations requires high-resolution grids to capture small-scale "sub-grid" phenomena. Coarse-grid simulations often suffer from the "closure problem," where unresolved scales lead to significant inaccuracies. While machine learning (ML) has been applied to low-order numerical schemes like finite volume methods (FVM), this work focuses on spectral methods—the "gold standard" for periodic problems due to their exponential convergence. Improving these methods with data-driven corrections represents a significant challenge given their inherent high accuracy.

The Neural Split Operator Approach

The authors propose a hybrid framework that integrates a standard spectral solver with a deep learning correction term. This "Neural Split Operator" design decomposes the simulation step into two parallel paths:

  1. Physics-Step: A classical spectral solver handles the primary dynamics using Crank-Nicolson for linear terms and RK4 for non-linear terms.
  2. Learned-Correction: A neural network predicts the residual errors introduced by coarse discretization.
The Neural Split Operator architecture combining a physics-based step with a learned correction.

The architecture employs an Encoder-Process-Decoder (EPD) model using dilated CNNs. To maintain physical locality, the CNN operates in real space (velocity fields), necessitating Fast Fourier Transforms (FFTs) to interface with the frequency-space spectral solver. An exponential filter is also integrated to mitigate aliasing artifacts common in truncated spectral representations.

Experimental Results

The model was evaluated on 1D Kuramoto-Sivashinsky, 1D Unstable Burgers', and 2D Kolmogorov flow. Ground truth was established via high-resolution Direct Numerical Simulations (DNS).

Visual comparison of FVM and Spectral methods across resolutions (left) and average time until correlation drop for various solvers (right).

Accuracy and Efficiency

The hybrid model achieves a 2–4× improvement in accuracy over standard spectral methods at equivalent resolutions. In the Burgers' equation test, the hybrid model at 32-point resolution matched the performance of a 128-point standard spectral solver. Furthermore, the hybrid approach proved significantly more data-efficient than pure ML surrogates, requiring approximately 45× fewer training steps to reach target accuracy in 2D turbulence tasks.

Stability

By anchoring the simulation in a physics-based solver, the hybrid model exhibits superior stability over long temporal rollouts compared to black-box neural networks, which frequently diverge when predicting far into the future. The physics-based solver acts as a regularizer, ensuring the simulation remains physically plausible over time.

Discussion and Future Directions

While the accuracy gains are substantial, the neural network component currently introduces a computational bottleneck, running roughly 10× slower than the physics step itself. Future optimizations in architecture and correction frequency are needed to translate these accuracy gains into wall-clock speedups. Additionally, scaling these methods to 3D turbulence and testing generalization across varying physical parameters (e.g., Reynolds numbers) remain critical areas for future research.

Summary updated

Abstract

Despite their ubiquity throughout science and engineering, only a handful of partial differential equations (PDEs) have analytical, or closed-form solutions. This motivates a vast amount of classical work on numerical simulation of PDEs and more recently, a whirlwind of research into data-driven techniques leveraging machine learning (ML). A recent line of work indicates that a hybrid of classical numerical techniques and machine learning can offer significant improvements over either approach alone. In this work, we show that the choice of the numerical scheme is crucial when incorporating physics-based priors. We build upon Fourier-based spectral methods, which are known to be more efficient than other numerical schemes for simulating PDEs with smooth and periodic solutions. Specifically, we develop ML-augmented spectral solvers for three common PDEs of fluid dynamics. Our models are more accurate (2-4x) than standard spectral solvers at the same resolution but have longer overall runtimes (~2x), due to the additional runtime cost of the neural network component. We also demonstrate a handful of key design principles for combining machine learning and numerical methods for solving PDEs.
BibTeX
@article{dresdner2023learning,
  author = {Gideon Dresdner and Dmitrii Kochkov and Peter Christian Norgaard and Leonardo Zepeda-Nunez and Jamie Smith and Michael Brenner and Stephan Hoyer},
  title = {{Learning to correct spectral methods for simulating turbulent flows}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure