Skip to main content
QUICK REVIEW

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

Adam Subel, Yifei Guan|arXiv (Cornell University)|Jun 7, 2022
Model Reduction and Neural NetworksPhysics and Astronomy10 citations
TL;DR

This paper introduces a physics-informed framework to explain transfer learning (TL) in data-driven subgrid-scale (SGS) modeling for turbulent flows. By combining spectral analysis of system data with spectral decomposition of convolutional neural network (CNN) activations and kernels, the authors reveal that TL learns new filter responses—low-, band-, and high-pass—consistent with spectral differences between base and target turbulent systems, and identify shallow layers as optimal for retraining, contrary to conventional ML wisdom.

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). 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.

Motivation & Objective

  • To address the critical challenge in transfer learning (TL) of selecting optimal layers for retraining in scientific machine learning applications.
  • To explain the physical mechanisms underlying TL in nonlinear, multi-scale systems such as turbulent flows.
  • To develop a framework that guides TL by linking spectral properties of system data to learned filter responses in neural network layers.
  • To challenge the conventional ML wisdom that deeper layers are best for retraining by showing shallow layers outperform in SGS modeling.
  • To enable robust out-of-distribution generalization in scientific applications like climate modeling and turbulence simulation using data-driven closures.

Proposed method

  • Perform spectral analysis on turbulent flow data from base and target systems to characterize their energy distribution across wavenumbers.
  • Apply spectral decomposition to CNN layer activations and convolutional kernels to analyze frequency-filtering behavior (low-, band-, high-pass) in trained networks.
  • Use Fourier transforms to express the spectral response of each layer’s output as a function of input spectrum, kernel spectra, and ReLU activation effects.
  • Construct 2D loss landscapes using random and Hessian-based directions to evaluate the retraining dynamics of selected layers in the target system.
  • Compare spectral responses and loss landscape shapes across different retraining layers (e.g., shallow vs. deep) to determine optimal retraining strategy.
  • Integrate theoretical insights from neural network theory and spectral filtering to interpret how TL adapts to new system physics through kernel reconfiguration.

Experimental results

Research questions

  • RQ1Which layers in a pre-trained CNN are most effective for retraining in transfer learning for subgrid-scale modeling of turbulent flows?
  • RQ2What physical mechanisms underlie the transfer of knowledge from a base turbulent system to a target system with different spectral characteristics?
  • RQ3How do the spectral responses (filtering behavior) of convolutional kernels change during transfer learning, and do they align with the spectral differences between base and target systems?
  • RQ4Why do shallow layers often outperform deeper layers in TL for turbulent flow modeling, contrary to common practice in deep learning?
  • RQ5Can spectral analysis of network activations and kernels predict the success of transfer learning in multi-scale, nonlinear systems?

Key findings

  • The retrained convolutional kernels in the TLNN exhibit a combination of low-, band-, and high-pass filtering characteristics, which are physically consistent with the spectral differences between the base and target turbulent systems.
  • Shallow layers—contrary to conventional deep learning wisdom—are the most effective for retraining in SGS modeling, as they show the most significant and physically meaningful spectral adaptation to the target system.
  • Spectral analysis of network activations reveals that linear transformations (via updated weights) dominate the change in spectral response, while nonlinear ReLU activation effects are secondary, except in specific cases.
  • The loss landscape analysis shows that retraining on shallow layers leads to a flatter, more convex region in parameter space, indicating easier and more stable convergence during transfer learning.
  • The framework successfully predicts optimal retraining layers based on spectral alignment between system data and network filter responses, enabling informed TL design in scientific applications.
  • In a 2D turbulence setup, using only 1% of the original training data from a higher-Reynolds-number target system, the TLNN achieved stable and accurate a posteriori large-eddy simulation, demonstrating effective out-of-distribution generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.