Flat Seeking Bayesian Neural Networks

Van-Anh Nguyen, L. Vuong, Hoang Phan, Thanh-Toan Do, Dinh Q. Phung +1 more
2/12/2026

No official code found. Best implementation: byM1902/flat_bnn (3 stars, BSD-2-Clause, last commit 2023-01-31).

Abstract

Bayesian Neural Networks (BNNs) provide a probabilistic interpretation for deep learning models by imposing a prior distribution over model parameters and inferring a posterior distribution based on observed data. The model sampled from the posterior distribution can be used for providing ensemble predictions and quantifying prediction uncertainty. It is well-known that deep learning models with lower sharpness have better generalization ability. However, existing posterior inferences are not aware of sharpness/flatness in terms of formulation, possibly leading to high sharpness for the models sampled from them. In this paper, we develop theories, the Bayesian setting, and the variational inference approach for the sharpness-aware posterior. Specifically, the models sampled from our sharpness-aware posterior, and the optimal approximate posterior estimating this sharpness-aware posterior, have better flatness, hence possibly possessing higher generalization ability. We conduct experiments by leveraging the sharpness-aware posterior with state-of-the-art Bayesian Neural Networks, showing that the flat-seeking counterparts outperform their baselines in all metrics of interest.

View on arXivView PDF

Code Implementations(1)

byM1902/flat_bnnCommunity56%
BSD-2-Clause

Flat Seeking Bayesian Neural Networks

30Shell, PythonJan 26, 20233 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{nguyen2026flat,
  title  = {Flat Seeking Bayesian Neural Networks},
  author = {Van-Anh Nguyen and L. Vuong and Hoang Phan and Thanh-Toan Do and Dinh Q. Phung and Trung Le},
  year   = {2026},
  eprint = {2302.02713},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.02713},
  journal = {NEURIPS 2023 2023}
}

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/2302.02713.svg)](https://codeofpaper.com/paper/2302.02713)

Discussion