Papers › Post-hoc Probabilistic Vision-Language Models

Post-hoc Probabilistic Vision-Language Models

8 Dec 2024arXiv:2412.06014archive 2025-07-28

Anton Baumann, Rui Li, Marcus Klasson, Santeri Mentu, Shyamgopal Karthik, Zeynep Akata, Arno Solin, Martin Trapp

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.06014")

Code

Syntology Ran 7 of 13 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 5 ran · our draft was wrong.

By repository: official repository: 8 samples from 1 repository, 4 ran; found in paper text by Syntology: 5 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AaltoML/BayesVLM officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 2 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
5ran · our draft was wrong
6unverified

Licence: 5 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_as_optional_tensor AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository ran · honoured contract fingerprinted MIT (permissive) · 84a0c40ffe322d12 · report
_get_output AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository ran · honoured contract MIT (permissive) · c22a08de9aa51a86 · report
_normalize_mean_and_var AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b2ce6787aa1b9885 · report
_std_from_var AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · d07af93e1bec367e · report
BayesVLMEmbeddingOutput AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository unverified MIT (permissive) · cf74575774d01c26 · report
BayesVLMModel AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository unverified MIT (permissive) · b4ce6a07560ec5ce · report
BayesVLMOutput AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository unverified MIT (permissive) · 5aff72f64fe28e99 · report
_diag_cov AaltoML/BayesVLM/bayesvlm/hf/modeling_bayesvlm_clip.py official repository unverified MIT (permissive) · 16e1a732a7be4602 · report
batched naver-ai/prolip/src/prolip/zero_shot_classifier.py found in paper text by Syntology ran · our draft was wrong licence not identified · pointer only · 41856af97765c7ff · report
get_input_dtype naver-ai/prolip/src/prolip/model.py found in paper text by Syntology ran · our draft was wrong licence not identified · pointer only · 4d038cd90610dfa0 · report
get_model_preprocess_cfg naver-ai/prolip/src/prolip/model.py found in paper text by Syntology ran · our draft was wrong licence not identified · pointer only · feaac0348de86b5a · report
build_zero_shot_classifier_with_stds naver-ai/prolip/src/prolip/zero_shot_classifier.py found in paper text by Syntology unverified licence not identified · pointer only · 90f3675f84d92e26 · report
get_cast_dtype naver-ai/prolip/src/prolip/model.py found in paper text by Syntology unverified licence not identified · pointer only · 0529ec3d12d83d1c · report

Tasks

Active LearningUncertainty QuantificationZero-Shot Image Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIPSET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections