Differentiable physics-enabled closure modeling for Burgers' turbulence

Varun Shankar, Vedant Puri, Ramesh Balakrishnan, Romit Maulik, Venkatasubramanian ViswanathanarXiv 2022

TL;DR

This paper demonstrates how embedding neural networks directly inside partial differential equation (PDE) solvers—a paradigm known as differentiable physics—can create highly accurate and generalizable subgrid closure models for turbulence. By testing various hybrid architectures on 1D Burgers' turbulence, the authors show that models incorporating strong physical inductive biases drastically outperform purely data-driven approaches in data efficiency, temporal stability, and resolution invariance.

What Problem Does This Paper Address?

Simulating turbulent fluid flows accurately requires resolving a massive range of spatial and temporal scales. Doing this explicitly via Direct Numerical Simulation (DNS) is computationally intractable for real-world engineering problems. Large Eddy Simulations (LES) solve this by only resolving large-scale fluid structures and using "closure models" to approximate the missing subgrid-scale effects.

While machine learning (ML) has been proposed to learn these complex closure terms directly from data, purely black-box ML models often generalize poorly, violate physical laws, and fail when tested a posteriori (integrated over time inside a solver). This paper tackles the challenge of building data-efficient, stable, and resolution-invariant ML closure models by blending known physics with neural networks.

Methods

The authors leverage the Differentiable Physics paradigm, where neural networks are embedded directly within a PDE solver. This allows the model to be trained end-to-end using an a posteriori loss function—meaning the loss is calculated on the final simulated trajectory, and gradients are backpropagated through the ODE solver using the memory-efficient adjoint method.

The spectrum of data-driven models ranging from purely data-driven to physics-enabled universal differential equations.

The spatial discretization uses a high-accuracy pseudospectral method, and the time integration uses an adaptive 5th-order Tsitouras Runge-Kutta scheme. For the neural network architecture, they employ Fourier Neural Operators (FNOs), which are inherently resolution-independent because they perform linear operations in the frequency domain.

FIG. 3: A schematic of the training procedure for learning the parameters in the data-driven models. An initial velocity field is evolved (offline) according to the governing equations on a DNS-resolving grid and filtered to generate ground truth data. During the optimization loop, the same field is filtered and evolved with the data-driven model to compute an estimate for the filtered field. The gradients are backpropagated through the ODE solve and spatial discretization to update the parameters.

They systematically evaluate a spectrum of models with varying degrees of physical assumptions (inductive biases). These range from purely data-driven ResNets to a hybrid model (smag-ml) that uses an FNO to predict a spatially and temporally varying Smagorinsky constant within a classical turbulence modeling framework.

Datasets

The models are trained and evaluated on synthetic datasets generated by running high-resolution DNS of the 1D viscous Burgers equation with randomized initial conditions:

  • Experiment 1 (Viscosity & Time Generalization): Trained on 100 simulations with viscosities $\nu \in [10^{-4}, 10^{-3})$ over a timespan $t \in [0,3)$. Evaluated on an unseen test set of 25 trajectories across 25 discrete viscosities, and extrapolated in time up to $t=10$.
  • Experiment 2 (Resolution Invariance): Trained on a dataset spanning four different coarse grid resolutions ($M = 64, 128, 256, 512$) to test the model's ability to handle different filter cutoffs.

Key Insights and Ideas

  • More Physics = Better Generalization: Purely data-driven models (resnet, anode) failed completely, performing worse than a baseline simulation with no closure model at all. Conversely, constraining the network to only learn a correction to a well-established physical framework (smag-ml) yielded the best accuracy and generalized flawlessly to unseen viscosities.
  • The Danger of Ad-Hoc Terms: Adding complex physical terms like a custom "production term" ($\gamma$) improved performance within the training window but caused catastrophic, unphysical error growth when extrapolating further out in time.
  • Non-Locality Matters: Turbulence is inherently non-local. Models using FNOs (which capture global spectral interactions) significantly outperformed a purely local version (smag-ml-local) that replaced FNO layers with standard linear layers.
  • Size Isn't Everything: An overparameterized FNO model overfit the small training dataset. A stripped-down version with just 2 hidden channels (smag-ml-small, totaling only 520 parameters) achieved the best overall performance and resolution invariance.

Key Results

  • The physics-infused smag-ml and smag-ml-small models reduced the mean-squared error (MSE) by up to 40% compared to the standard constant Smagorinsky baseline across a wide range of grid resolutions.
  • In temporal extrapolation tests (up to 3x past the training limit), the smag-ml model maintained a stable, monotonically decreasing error profile, whereas purely data-driven or poorly constrained transport models exploded or degraded rapidly.
Ensemble mean-squared error as a function of viscosity (a) and time extrapolation (b).
  • While FNO-based models are computationally heavier than classical baselines due to forward/inverse Fourier transforms at each step (roughly 3x slower than the baseline with no closure), the local variant (smag-ml-local) offered a strong compromise, running nearly twice as fast as full FNO while still beating classical baselines at most resolutions.

Limitations and Future Work

  • Computational Cost: Integrating FNOs directly into the time-stepping loop increases evaluation time compared to simple algebraic closure models.
  • 1D Simplification: The study is restricted to the 1D Burgers equation. While it serves as an excellent proxy for advection-dominated turbulence, real-world aerodynamic and hydrodynamic problems require extending this framework to 3D Navier-Stokes equations, where geometry and pressure constraints add massive complexity.
  • Data Dependency vs Overfitting: Large neural networks easily overfit small scientific datasets, requiring careful hyperparameter tuning or architectural constraints (like smag-ml-small) to remain robust.

Summary updated

BibTeX
@misc{shankar2022differentiable,
  author = {Varun Shankar and Vedant Puri and Ramesh Balakrishnan and Romit Maulik and Venkatasubramanian Viswanathan},
  title = {{Differentiable physics-enabled closure modeling for Burgers' turbulence}},
  year = {2022},
  eprint = {2209.11614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.11614},
}
Figure