Post-hoc Probabilistic Vision-Language Models

Anton Baumann, Rui Li, Marcus Klasson, Santeri Mentu, Shyamgopal Karthik +3 more
12/8/2024
19 citations
cs.CVcs.LG

Official code: AaltoML/BayesVLM (19 stars, Python, MIT, last commit 2026-02-10).

Abstract

Vision-language models (VLMs), such as CLIP and SigLIP, have found remarkable success in classification, retrieval, and generative tasks. For this, VLMs deterministically map images and text descriptions to a joint latent space in which their similarity is assessed using the cosine similarity.

Show full abstract

However, a deterministic mapping of inputs fails to capture uncertainties over concepts arising from domain shifts when used in downstream tasks. In this work, we propose post-hoc uncertainty estimation in VLMs that does not require additional training. Our method leverages a Bayesian posterior approximation over the last layers in VLMs and analytically quantifies uncertainties over cosine similarities. We demonstrate its effectiveness for uncertainty quantification and support set selection in active learning. Compared to baselines, we obtain improved and well-calibrated predictive uncertainties, interpretable uncertainty estimates, and sample-efficient active learning. Our results show promise for safety-critical applications of large-scale models.

View on arXivView PDF

Code Implementations(1)

AaltoML/BayesVLMOfficial100%
MIT

Code for Post-hoc Probabilistic Vision-Language Models

1910Python, Jupyter NotebookDec 6, 20249 months agoMIT
active-learningbayesian-deep-learningclipsiglipvision-language-models+1 more

Similar Papers

Cite this paper

@article{baumann2024posthoc,
  title  = {Post-hoc Probabilistic Vision-Language Models},
  author = {Anton Baumann and Rui Li and Marcus Klasson and Santeri Mentu and Shyamgopal Karthik and Zeynep Akata and Arno Solin and Martin Trapp},
  year   = {2024},
  eprint = {2412.06014},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06014v5}
}

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

Discussion