Explaining the physics of transfer learning a data-driven subgrid-scale closure to a different turbulent flow

Adam Subel, Yifei Guan, Ashesh Chattopadhyay, Pedram Hassanzadeh
6/7/2022
physics.flu-dyncs.LGphysics.comp-ph

Official code: envfluids/TL_for_SGS_Models (9 stars, Python, last commit 2023-03-07).

Abstract

Transfer learning (TL) is becoming a powerful tool in scientific applications of neural networks (NNs), such as weather/climate prediction and turbulence modeling. TL enables out-of-distribution generalization (e.g., extrapolation in parameters) and effective blending of disparate training sets (e.g., simulations and observations).

Show full abstract

In TL, selected layers of a NN, already trained for a base system, are re-trained using a small dataset from a target system. For effective TL, we need to know 1) what are the best layers to re-train? and 2) what physics are learned during TL? Here, we present novel analyses and a new framework to address (1)-(2) for a broad range of multi-scale, nonlinear systems. Our approach combines spectral analyses of the systems' data with spectral analyses of convolutional NN's activations and kernels, explaining the inner-workings of TL in terms of the system's nonlinear physics. Using subgrid-scale modeling of several setups of 2D turbulence as test cases, we show that the learned kernels are combinations of low-, band-, and high-pass filters, and that TL learns new filters whose nature is consistent with the spectral differences of base and target systems. We also find the shallowest layers are the best to re-train in these cases, which is against the common wisdom guiding TL in machine learning literature. Our framework identifies the best layer(s) to re-train beforehand, based on physics and NN theory. Together, these analyses explain the physics learned in TL and provide a framework to guide TL for wide-ranging applications in science and engineering, such as climate change modeling.

View on arXivView PDF

Code Implementations(1)

92Python, MATLABOct 18, 20213 years ago

Similar Papers

Cite this paper

@article{subel2022explaining,
  title  = {Explaining the physics of transfer learning a data-driven subgrid-scale closure to a different turbulent flow},
  author = {Adam Subel and Yifei Guan and Ashesh Chattopadhyay and Pedram Hassanzadeh},
  year   = {2022},
  eprint = {2206.03198},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.03198}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.03198.svg)](https://codeofpaper.com/paper/2206.03198)

Discussion