Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-06T15:19:13.827Z Has data issue: false hasContentIssue false

Addressing a posteriori performance degradation in neural network subgrid stress models

Published online by Cambridge University Press:  08 September 2026

Andy Wu*
Affiliation:
Department of Aeronautics and Astronautics, Stanford University, Stanford, CA, USA
Sanjiva Lele
Affiliation:
Department of Aeronautics and Astronautics, Stanford University, Stanford, CA, USA Department of Mechanical Engineering, Stanford University, Stanford, CA, USA
*
Corresponding author: Andy Wu, awu1018@stanford.edu

Abstract

Content of image described in text.

Neural network subgrid stress models often have a priori performance that is far better than the a posteriori performance, leading to neural network models that look very promising a priori completely failing in a posteriori large eddy simulations (LESs). This performance gap can be decreased by combining two different methods, training data augmentation and reducing input complexity to the neural network. Augmenting the training data with two different filter shapes before training the neural networks has no performance degradation a priori as compared with a neural network trained with one filter. A posteriori, neural networks trained with two different filters are more robust across two LES codes with different high-order numerical schemes. In addition, by ablating away the higher-order terms input into the neural network, the a priori versus a posteriori performance changes become less apparent. When combined, neural networks that use both training data augmentation and a less complex set of inputs have a posteriori performance more reflective of their a priori evaluation.

Information

Type
JFM Papers
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Figure 1 long description.Characterisations of the DSCF in both physical and spectral space. ωc=2πfc$\omega _c = 2 \pi f_c$ corresponds to the filter cutoff, here designated at a 16ΔDNS$16\varDelta _{\textit{DNS}}$ filter width, while ω=2πfn,fn∈[−0.5,0.5]$\omega = 2 \pi f_n, f_n \in [-0.5, 0.5]$ denotes the normalised angular frequency. Two different DSCF widths are shown, one with a 17 and the other with a 33 point support. The DSCF with the smaller filter width has twice the cutoff frequency.

Figure 1

Figure 2. Overall GNN architecture. Note that ‘res. conn.’ denotes residual connections, and these are used in conjunction with skip connections to prevent oversmoothing. There are two layer normalisation layers placed in this architecture. Here ReLU is rectified linear unit.

Figure 2

Figure 3. Graph neural network variant architecture. Note that ‘res. conn.’ denotes residual connections, and these are used in conjunction with skip connections to prevent oversmoothing. There are five layer normalisation layers placed in this architecture, three more than the original. Other than that, the architecture is exactly the same.

Figure 3

Figure 4. Figure 4 long description.Effect of various filters on the ground truth subgrid stress quantities. All colour bars are scaled the same per row: (a) τ11$\tau _{\textit{11}}$ spatial distribution and PDF. The x and y axis correspond to the coordinates in the physical domain for the spatial distribution visualisations; (b) τ12$\tau _{12}$ spatial distribution and PDF. The x and y axis correspond to the coordinates in the physical domain for the spatial distribution visualisations; (c) ϵ=−τijS¯ij$\epsilon = -\tau _{\textit{ij}}\bar {S}_{\textit{ij}}$ spatial distribution and PDF. The x and y axis correspond to the coordinates in the physical domain for the spatial distribution visualisations.

Figure 4

Table 1. Neural network configurations; ‘S’ stands for the spectral solver with two-thirds dealiasing (PadeOps), and ‘C’ stands for the sixth-order compact solver (PadeLibs). Normalisation and neural network structure are also given.Table 1 long description.

Figure 5

Table 2. A priori evaluation on the hold-out test set, each value is given as mean (standard deviation). For the RMSE and DRMSE, lower values are better, while higher values are better for the correlation.Table 2 long description.

Figure 6

Table 3. A posteriori evaluation for the Fourier-spectral code for all cases tested.Table 3 long description.

Figure 7

Figure 5. A posteriori one- and two-filter comparisons with traditional models for the Fourier-spectral code with two-thirds dealiasing. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation.

Figure 8

Figure 6. Figure 6 long description.A posteriori multiple filter comparisons for the Fourier-spectral code with two-thirds dealiasing. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation, but trained with a variety of filter combinations ranging from one to three different filter shapes.

Figure 9

Figure 7. A posteriori ALN comparisons for the Fourier-spectral code with two-thirds dealiasing. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the variant ALN architecture with the global normalisation.

Figure 10

Figure 8. Figure 8 long description.A posteriori simple input comparisons for the Fourier-spectral code with two-thirds dealiasing. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. Both the original and ALN GNN architectures are tested with ‘simple’ inputs using both local and global normalisation.

Figure 11

Table 4. A posteriori evaluation for the sixth-order compact code for all cases tested.Table 4 long description.

Figure 12

Figure 9. Figure 9 long description.A posteriori one- and two-filter comparisons for the sixth-order compact code. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation.

Figure 13

Figure 10. A posteriori multiple-filter comparisons for the sixth-order compact code. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation, but trained with a variety of filter combinations ranging from one to three different filter shapes.

Figure 14

Figure 11. Figure 11 long description.A posteriori ALN comparisons for the sixth-order compact code. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the ALN architecture with the global normalisation.

Figure 15

Figure 12. A posteriori simple input comparisons for the sixth-order compact code. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. Both the original and ALN GNN architectures are used with the global and local normalisation for the ‘simple’ inputs.

Figure 16

Figure 13. Figure 13 long description.A posteriori one- versus two-filter comparison with the Sigma model as a reference for a coarser grid spacing corresponding to ΔLES=32ΔDNS$\varDelta _{\textit{LES}} = 32 \varDelta _{\textit{DNS}}$. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation.

Figure 17

Figure 14. A posteriori simple input comparisons with the Sigma model as a reference on the coarser grids. Spectra, longitudinal flatness and the PDF of ωi¯Sij¯ωj¯$\overline {\omega _i}\overline {S_{\textit{ij}}}\overline {\omega _{\!j}}$ are plotted. The GNN architecture used corresponds to the original architecture with the global normalisation applied to the ‘simple’ inputs.

Figure 18

Figure 15. Figure 15 long description.A posteriori streamwise velocity spectra and mean profiles for channel flow, comparing one- versus two-filter GNN models with traditional models. The GNN architecture used corresponds to the original architecture with the global normalisation.

Figure 19

Figure 16. A posteriori one- versus two-filter Reynolds stress comparisons with traditional models for channel flow. Here, z/H=0$z/H = 0$ corresponds to the wall while z/H=1$z/H=1$ corresponds to the channel centreline. The GNN architecture used corresponds to the original architecture with the global normalisation.

Figure 20

Figure 17. Figure 17 long description.A posteriori spectra and mean profile comparison of different neural network perturbations. Both the original and ALN GNN architectures are used, with global normalisation applied to the ‘complex’ inputs.

Figure 21

Figure 18. A posteriori Reynolds stress comparison of different neural network perturbations. Here, z/H=0$z/H = 0$ corresponds to the wall while z/H=1$z/H=1$ corresponds to the channel centreline. Both the original and ALN GNN architectures are used, with global normalisation applied to the ‘complex’ inputs.

Figure 22

Figure 19. A posteriori simple inputs streamwise velocity spectra and mean profiles. The GNN original architecture is used, with global normalisation applied to the ‘simple’ inputs.

Figure 23

Figure 20. A posteriori simple inputs Reynolds stress profiles for channel flow. Here, z/H=0$z/H = 0$ corresponds to the wall while z/H=1$z/H=1$ corresponds to the channel centreline. The GNN original architecture is used, with global normalisation applied to the ‘simple’ inputs.