# Assessments of epistemic uncertainty using Gaussian stochastic weight averaging for fluid-flow regression

arXiv: https://arxiv.org/abs/2109.08248 · HTML: https://mlsanity.com/paper/2109.08248/

## Key facts

- Cited by 15 papers in the map (data through 14 Oct 2026).
- Builds on 17 of its 94 references that are in the map.
- First posted on arXiv 16 Sep 2021.

## Builds on (most cited first, 17 of 17)

- [Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning](https://mlsanity.com/paper/1506.02142/) (2015)
- [What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?](https://mlsanity.com/paper/1703.04977/) (2017)
- [Averaging Weights Leads to Wider Optima and Better Generalization](https://mlsanity.com/paper/1803.05407/) (2018)
- [Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methods](https://mlsanity.com/paper/1910.09457/) (2019)
- [A Simple Baseline for Bayesian Uncertainty in Deep Learning](https://mlsanity.com/paper/1902.02476/) (2019)
- [Bayesian Deep Learning and a Probabilistic Perspective of Generalization](https://mlsanity.com/paper/2002.08791/) (2020)
- [Machine Learning for Fluid Mechanics](https://mlsanity.com/paper/1905.11075/) (2019)
- [Stochastic Gradient Descent as Approximate Bayesian Inference](https://mlsanity.com/paper/1704.04289/) (2017)
- [Probabilistic Backpropagation for Scalable Learning of Bayesian Neural Networks](https://mlsanity.com/paper/1502.05336/) (2015)
- [Prediction of Aerodynamic Flow Fields Using Convolutional Neural Networks](https://mlsanity.com/paper/1905.13166/) (2019)
- [The Unusual Effectiveness of Averaging in GAN Training](https://mlsanity.com/paper/1806.04498/) (2018)
- [Global field reconstruction from sparse sensors with Voronoi tessellation-assisted deep learning](https://mlsanity.com/paper/2101.00554/) (2021)
- [Convolutional-network models to predict wall-bounded turbulence from wall quantities](https://mlsanity.com/paper/2006.12483/) (2020)
- [Towards extraction of orthogonal and parsimonious non-linear modes from turbulent flows](https://mlsanity.com/paper/2109.01514/) (2021)
- [SWALP : Stochastic Weight Averaging in Low-Precision Training](https://mlsanity.com/paper/1904.11943/) (2019)
- [Application of Convolutional Neural Network to Predict Airfoil Lift Coefficient](https://mlsanity.com/paper/1712.10082/) (2017)
- [An advanced hybrid deep adversarial autoencoder for parameterized nonlinear fluid flow modelling](https://mlsanity.com/paper/2003.10547/) (2020)

## Built on by (most cited first, 15 of 15)

- [Super-Resolution Analysis via Machine Learning: A Survey for Fluid Flows](https://mlsanity.com/paper/2301.10937/) (2023)
- [LUCIE: A Lightweight Uncoupled ClImate Emulator with long-term stability and physical consistency for O(1000)-member ensembles](https://mlsanity.com/paper/2405.16297/) (2024)
- [Bayesian Conditional Diffusion Models for Versatile Spatiotemporal Turbulence Generation](https://mlsanity.com/paper/2311.07896/) (2023)
- [Uncertainty-aware Surrogate Models for Airfoil Flow Simulations with Denoising Diffusion Probabilistic Models](https://mlsanity.com/paper/2312.05320/) (2023)
- [Data-Driven Physics-Informed Neural Networks: A Digital Twin Perspective](https://mlsanity.com/paper/2401.08667/) (2024)
- [Multimodal Atmospheric Super-Resolution With Deep Generative Models](https://mlsanity.com/paper/2506.22780/) (2025)
- [Interpretable A-posteriori Error Indication for Graph Neural Network Surrogate Models](https://mlsanity.com/paper/2311.07548/) (2023)
- [Quantifying uncertainty for deep learning based forecasting and flow-reconstruction using neural architecture search ensembles](https://mlsanity.com/paper/2302.09748/) (2023)
- [Enhancing Graph U-Nets for Mesh-Agnostic Spatio-Temporal Flow Prediction](https://mlsanity.com/paper/2406.03789/) (2024)
- [Introducing Interval Neural Networks for Uncertainty-Aware System Identification](https://mlsanity.com/paper/2504.18845/) (2025)
- [Multi-resolution Physics-Aware Recurrent Convolutional Neural Network for Complex Flows](https://mlsanity.com/paper/2512.06031/) (2025)
- [Convolutional Long Short-Term Memory (convLSTM) for Spatio-Temporal Forecastings of Saturations and Pressure in the SACROC Field](https://mlsanity.com/paper/2212.00796/) (2022)
- [Reducing Spatial Discretization Error on Coarse CFD Simulations Using an OpenFOAM-Embedded Deep Learning Framework](https://mlsanity.com/paper/2405.07441/) (2024)
- [Bayesian Generative Adversarial Networks via Gaussian Approximation for Tabular Data Synthesis](https://mlsanity.com/paper/2602.21948/) (2026)
- [Beyond Prediction: Interval Neural Networks for Uncertainty-Aware System Identification](https://mlsanity.com/paper/2605.11460/) (2026)

## Abstract (arXiv)

We use Gaussian stochastic weight averaging (SWAG) to assess the model-form uncertainty associated with neural-network-based function approximation relevant to fluid flows. SWAG approximates a posterior Gaussian distribution of each weight, given training data, and a constant learning rate. Having access to this distribution, it is able to create multiple models with various combinations of sampled weights, which can be used to obtain ensemble predictions. The average of such an ensemble can be regarded as the `mean estimation', whereas its standard deviation can be used to construct `confidence intervals', which enable us to perform uncertainty quantification (UQ) with regard to the training process of neural networks. We utilize representative neural-network-based function approximation tasks for the following cases: (i) a two-dimensional circular-cylinder wake; (ii) the DayMET dataset (maximum daily temperature in North America); (iii) a three-dimensional square-cylinder wake; and (iv) urban flow, to assess the generalizability of the present idea for a wide range of complex datasets. SWAG-based UQ can be applied regardless of the network architecture, and therefore, we demonstrate the applicability of the method for two types of neural networks: (i) global field reconstruction from sparse sensors by combining convolutional neural network (CNN) and multi-layer perceptron (MLP); and (ii) far-field state estimation from sectional data with two-dimensional CNN. We find that SWAG can obtain physically-interpretable confidence-interval estimates from the perspective of model-form uncertainty. This capability supports its use for a wide range of problems in science and engineering.
