ProbVLM: Probabilistic Adapter for Frozen Vision-Language Models

Uddeshya Upadhyay, Shyamgopal Karthik, Massimiliano Mancini, Zeynep Akata
7/1/2023
cs.CVcs.AIcs.LG

Official code: ExplainableML/ProbVLM (46 stars, MIT, PyTorch, last commit 2023-12-21).

Abstract

Large-scale vision-language models (VLMs) like CLIP successfully find correspondences between images and text. Through the standard deterministic mapping process, an image or a text sample is mapped to a single vector in the embedding space. This is problematic: as multiple samples (images or text) can abstract the same concept in the physical world, deterministic embeddings do not reflect the inherent ambiguity in the embedding space. We propose ProbVLM, a probabilistic adapter that estimates probability distributions for the embeddings of pre-trained VLMs via inter/intra-modal alignment in a post-hoc manner without needing large-scale datasets or computing. On four challenging datasets, i.e., COCO, Flickr, CUB, and Oxford-flowers, we estimate the multi-modal embedding uncertainties for two VLMs, i.e., CLIP and BLIP, quantify the calibration of embedding uncertainties in retrieval tasks and show that ProbVLM outperforms other methods. Furthermore, we propose active learning and model selection as two real-world downstream tasks for VLMs and show that the estimated uncertainty aids both tasks. Lastly, we present a novel technique for visualizing the embedding distributions using a large-scale pre-trained latent diffusion model. Code is available at https://github.com/ExplainableML/ProbVLM.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

ProbVLM: Probabilistic Adapter for Frozen Vision-Language Models

466Python, Jupyter NotebookAug 15, 20232 years agoMIT
bayesian-deep-learningpytorchuncertainty-estimationuncertainty-quantificationvision-language-model

Similar Papers

Cite this paper

@article{upadhyay2023probvlm,
  title  = {ProbVLM: Probabilistic Adapter for Frozen Vision-Language Models},
  author = {Uddeshya Upadhyay and Shyamgopal Karthik and Massimiliano Mancini and Zeynep Akata},
  year   = {2023},
  eprint = {2307.00398},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.00398v3}
}

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

Discussion