Bayesian generative models can flag performance loss, bias, and out-of-distribution image content

Miguel López-Pérez, Marco Miani, Valery Naranjo, Søren Hauberg, Aasa Feragen
3/21/2025
cs.LGcs.CVstat.ML

No confident code implementation found for this paper.

Abstract

Generative models are popular for medical imaging tasks such as anomaly detection, feature extraction, data visualization, or image generation. Since they are parameterized by deep learning models, they are often sensitive to distribution shifts and unreliable when applied to out-of-distribution data, creating a risk of, e.g. underrepresentation bias. This behavior can be flagged using uncertainty quantification methods for generative models, but their availability remains limited. We propose SLUG: A new UQ method for VAEs that combines recent advances in Laplace approximations with stochastic trace estimators to scale gracefully with image dimensionality. We show that our UQ score -- unlike the VAE's encoder variances -- correlates strongly with reconstruction error and racial underrepresentation bias for dermatological images. We also show how pixel-wise uncertainty can detect out-of-distribution image content such as ink, rulers, and patches, which is known to induce learning shortcuts in predictive models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lpezprez2025bayesian,
  title  = {Bayesian generative models can flag performance loss, bias, and out-of-distribution image content},
  author = {Miguel López-Pérez and Marco Miani and Valery Naranjo and Søren Hauberg and Aasa Feragen},
  year   = {2025},
  eprint = {2503.17477},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.17477v1}
}

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

Discussion