Fourier analysis of the physics of transfer learning for data-driven subgrid-scale models of ocean turbulence

Moein Darman, Pedram Hassanzadeh, Laure Zanna, Ashesh ChattopadhyayarXiv 2025 · DOI

Abstract

This study investigates the physical mechanisms behind the success of transfer learning (TL) in subgrid-scale (SGS) modeling for ocean turbulence. By applying Fourier analysis to the kernels and activations of a convolutional neural network (CNN), we identify "spectral underestimation" in hidden layers as a primary cause of model failure when transitioning between different dynamical regimes. We demonstrate that retraining a single early hidden layer can correct this spectral bias, allowing models trained on isotropic eddies to generalize to anisotropic jets with as little as 2% of the target data.

Introduction

In climate and ocean modeling, computational constraints prevent the direct resolution of all turbulent scales. Subgrid-scale (SGS) models are employed to approximate the effects of these small-scale processes on large-scale flows. While deep learning has produced highly accurate SGS models, they are often "brittle," failing when applied to ocean conditions different from their training set. Transfer learning—retraining a small portion of a pre-trained model—has emerged as a solution, yet its physical basis has remained poorly understood. This work bridges that gap by explaining how neural network filters adapt to the underlying physics of new dynamical regimes.

Methods and Spectral Analysis

The researchers utilized a 9-layer CNN to predict subgrid forcing in a two-layer quasi-geostrophic (QG) system, a standard proxy for ocean turbulence. The methodology involved three stages: base training on an isotropic eddy configuration, transfer learning on a target system (e.g., zonal jets), and spectral analysis of the network's internal state.

The CNN architecture and spectral analysis of activations and forcing across different dynamical regimes.

By performing Fourier transforms on both the kernels (weights) and activations, the network was analyzed as a series of physical filters. This revealed that the network naturally learns three distinct filter types: low-pass, high-pass, and directional Gabor filters. The study utilized synthetic data from the pyqg library across four regimes, ranging from isotropic turbulence to highly organized anisotropic zonal jets.

Key Insights: Correcting Spectral Underestimation

A central discovery of this work is the phenomenon of "spectral underestimation." When a base neural network (BNN) is applied to a new regime, it underestimates the activation spectra in its early layers. This error compounds through subsequent layers, leading to inaccurate final predictions.

Surprisingly, retraining only the first hidden layer (Layer 2) is sufficient to "upshift" the spectrum, realigning the entire network's internal response with the physics of the new system. During this adaptation, the network shifts the "spectral footprint" of its kernels toward lower wavenumbers, prioritizing the large-scale features characteristic of complex dynamics like ocean jets.

Results and Performance

The transfer learning approach (TLNN) demonstrated significant improvements over the BNN:

  • Accuracy: In jet-dominated regimes, the TLNN reduced the Spectrum RMSE by nearly an order of magnitude.
  • Data Efficiency: With only 2% of the target data, the TLNN achieved performance comparable to a model trained from scratch on the full target dataset.
  • Physics Preservation: Qualitative analysis of potential vorticity distributions showed that TLNNs accurately capture the "tails" of the distribution, which is essential for predicting extreme weather and rare turbulent events.

Conclusion

This research provides a physical interpretation of transfer learning in the context of fluid dynamics. By identifying spectral underestimation as a key failure mode, the authors show that targeted, single-layer corrections can restore model accuracy across diverse ocean regimes. While these findings are currently tied to QG models and CNNs, the spectral analysis framework offers a robust tool for evaluating and improving the generalizability of data-driven models in climate science.

Summary updated

BibTeX
@misc{darman2025fourier,
  author = {Moein Darman and Pedram Hassanzadeh and Laure Zanna and Ashesh Chattopadhyay},
  title = {{Fourier analysis of the physics of transfer learning for data-driven subgrid-scale models of ocean turbulence}},
  year = {2025},
  eprint = {2504.15487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.15487},
}
Figure