Model Reduction with Memory and the Machine Learning of Dynamical Systems

Chao Ma, Jianchun Wang, Weinan EarXiv 2018

Abstract

This paper bridges the gap between the rigorous Mori-Zwanzig (M-Z) theory of model reduction and modern machine learning. By recognizing that the "memory effects" of unresolved variables in M-Z theory perfectly align with the architecture of Recurrent Neural Networks (RNNs), the authors use LSTMs to learn sub-grid stresses in complex dynamical systems. The resulting reduced models accurately capture both short-term dynamics and long-term statistical behaviors, vastly outperforming traditional empirical models like the Smagorinsky model.

Introduction

In science and engineering, simulating high-dimensional dynamical systems, such as turbulent fluid flows, in full detail is often computationally prohibitive. Typically, researchers only require the macroscopic behavior—the "resolved" variables—leading to the necessity of model reduction techniques like Large Eddy Simulations (LES).

The theoretical gold standard for this is the Mori-Zwanzig (M-Z) formalism. M-Z theory mathematically proves that when a full system is projected down to a reduced system, the effect of the ignored "unresolved" variables manifests as a memory term and a noise term. However, calculating this memory term exactly is as computationally expensive as solving the full system. Consequently, researchers have historically relied on ad-hoc, uncontrolled approximations to model sub-grid stresses. This paper explores whether machine learning can systematically and accurately learn this memory term from data.

Methodology

The authors leverage a brilliant conceptual analogy: the hidden states in an RNN are essentially a reduced representation of past information, making RNNs the perfect mathematical tool to approximate the M-Z memory kernel. They use Long Short-Term Memory (LSTM) networks to predict the unresolved flux (sub-grid stress) based on the history of the resolved variables (strain).

Workflow for training the LSTM and solving the reduced system.

Two distinct training paradigms are proposed:

  1. The Direct Training Model: The LSTM is trained offline via standard supervised learning. It takes the history of the macro-scale strain as input and is penalized based on the mean squared error against the true sub-grid stress. The trained LSTM is then integrated into the macro-scale PDE solver.
  2. The Coupled Training Model: The LSTM is trained end-to-end within the PDE solver. The loss function is the difference between the predicted macro-scale solution and the true macro-scale solution several time steps into the future. This requires backpropagation directly through the differential equation solver by solving a "backward equation" to compute necessary Jacobians.

Experimental Setup

The authors generate high-fidelity training and testing data using Direct Numerical Simulation (DNS) for two primary testbeds:

  • 1D Kuramoto-Sivashinsky (K-S) Equation: A chaotic PDE often used to test turbulence models.
  • 2D Navier-Stokes Equation (Shear Flow): Simulated using spectral methods to generate accurate macro-scale strain and stress data.

Results and Discussion

The paper provides a rigorous, physics-grounded justification for using RNNs in fluid dynamics. Rather than simply applying a neural network to a PDE, the authors map the network's architecture directly to the M-Z formalism's memory requirement.

Training and testing relative error over iterations.

Key findings include:

  • Performance on K-S Equation: The Direct training model achieved a relative error of approximately 1% in predicting sub-grid stress. When plugged into the reduced solver, it provided highly accurate short-term predictions for 150-200 time units and perfectly recovered long-term auto-correlation and Fourier mode distributions.
  • 2D Shear Flow Success: The LSTM achieved a testing error of about 5%. To maintain scalability, the authors trained the LSTM to predict stress column-by-column using only strain from neighboring columns, proving that local spatial approximations work well with temporal memory.
  • Comparison to Baselines: When compared to the classical Smagorinsky model, the LSTM-reduced system maintained a drastically lower squared error over time, tracking the true solution much more closely.

While the Direct model is easier to train and yields excellent short-term predictions, the Coupled model—though computationally harder to train—is superior at recovering the long-term statistical properties of the system.

Conclusion and Future Work

This research successfully demonstrates that LSTMs can capture the memory effects predicted by Mori-Zwanzig theory. However, several challenges remain. The M-Z formalism dictates that unresolved variables create both memory and noise; this work focuses on the former, leaving stochastic noise modeling for future study. Additionally, the computational intensity of backpropagation through complex PDE solvers and the scalability of these memory-based models to 3D Navier-Stokes simulations are significant areas for further development. Finally, establishing theoretical guarantees for optimal network sizing and data requirements remains an open challenge.

Summary updated

BibTeX
@misc{ma2018model,
  author = {Chao Ma and Jianchun Wang and Weinan E},
  title = {{Model Reduction with Memory and the Machine Learning of Dynamical Systems}},
  year = {2018},
  eprint = {1808.04258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.04258},
}
Figure