Probabilistic Language-Image Pre-Training

Sanghyuk Chun, Wonjae Kim, Song Park, Sangdoo Yun

Abstract

Vision-language models (VLMs) embed aligned image-text pairs into a joint space but often rely on deterministic embeddings, assuming a one-to-one correspondence between images and texts. This oversimplifies real-world relationships, which are inherently many-to-many, with multiple captions describing a single image and vice versa. We introduce Probabilistic Language-Image Pre-training (ProLIP), the first probabilistic VLM pre-trained on a billion-scale image-text dataset using only probabilistic objectives, achieving a strong zero-shot capability (e.g., 74.6% ImageNet zero-shot accuracy with ViT-B/16). ProLIP efficiently estimates uncertainty by an "uncertainty token" without extra parameters. We also introduce a novel inclusion loss that enforces distributional inclusion relationships between image-text pairs and between original and masked inputs. Experiments demonstrate that, by leveraging uncertainty estimates, ProLIP benefits downstream tasks and aligns with intuitive notions of uncertainty, e.g., shorter texts being more uncertain and more general inputs including specific ones. Utilizing text uncertainties, we further improve ImageNet accuracy from 74.6% to 75.8% (under a few-shot setting), supporting the practical advantages of our probabilistic approach.

Introduction: The Problem with Deterministic Embeddings

Most current vision-language models, such as CLIP, rely on deterministic embeddings. They map an image or a piece of text to a single point in a high-dimensional Euclidean space. This approach assumes a strict one-to-one correspondence: one image matches exactly one caption.

In reality, the relationship between images and text is many-to-many. A single photo of a train station could be described as "a train," "a train station," or "a train parked next to a station." Conversely, the word "dog" matches millions of different images. When deterministic models try to force these multiple relationships into single points, they often end up at an "average" location that doesn't truly represent any of the inputs well. This leads to instability during training and limits the model's ability to reason about ambiguity.

Comparison of deterministic vs. probabilistic embedding spaces. ProLIP captures multiplicity by covering various distributions, whereas deterministic models fail to capture the ambiguity.

Methods: Probabilistic Language-Image Pre-training (ProLIP)

To address these limitations, Probabilistic Language-Image Pre-training (ProLIP) maps each input to a Gaussian distribution defined by a mean ($\mu$) and a diagonal covariance ($\sigma^2$), rather than a single point vector.

Key technical innovations include:

  • The Uncertainty Token ([UNC]): To estimate uncertainty without adding heavy extra modules, a special [UNC] token is added to the input sequence. While the standard [CLS] token predicts the mean, the [UNC] token predicts the variance. This approach is computationally efficient and requires negligible extra parameters.
  • Probabilistic Pairwise Contrastive Loss (PPCL): A new, more stable version of probabilistic matching losses. It uses a log-sigmoid formulation to ensure smooth convergence even when training on massive, noisy datasets.
  • Inclusion Loss: This novel objective enforces a "distributional inclusion" relationship. It teaches the model that general concepts (like the word "animal") should "include" specific instances (like an image of a cat) in the embedding space. It also enforces that a full image or text should "include" its masked (partial) version.
Extracted figure from page 2 of Probabilistic Language-Image Pre-Training

Datasets and Evaluation

  • Training: The model was trained on the DataComp 1B dataset, which contains 1.28 billion image-text pairs.
  • Evaluation: The standard DataComp evaluation suite (38 tasks including ImageNet variants, VTAB, and retrieval) was used to assess performance.
  • Hierarchy Benchmarks: To test if the model truly understands "inclusion," the authors used HierarCaps (captions with four levels of detail) and created a new dataset, HierarImgs, featuring images with hierarchical segmentation masks.

Key Insights

  • Intuitive Uncertainty: The model's learned uncertainty aligns with human logic. Shorter, more general captions (e.g., "screenshot" or "graphic") exhibit much higher uncertainty than long, detailed descriptions.
  • Text Generality: ProLIP naturally learns that text distributions are usually broader than image distributions, effectively capturing the idea that a caption is a summary that "includes" many possible visual realizations.
  • Hierarchy Awareness: Through the inclusion loss, the model learns semantic hierarchies (e.g., "bird" $\rightarrow$ "blue bird" $\rightarrow$ "blue bird on a branch").
  • Bayesian Prompting: By using the model's own uncertainty estimates to re-weight text prompts—a method called Bayesian Prompt Re-Weighting (BPRW)—classification accuracy can be significantly boosted in few-shot settings.

Results

  • Zero-Shot Accuracy: ProLIP achieved 74.6% zero-shot accuracy on ImageNet using a ViT-B/16 backbone, outperforming the deterministic CLIP baseline (73.5%) trained on the same data.
  • Few-Shot Boost: Utilizing text uncertainties via BPRW further improved ImageNet accuracy to 75.8%.
  • Robustness: ProLIP showed superior performance across various distribution shift benchmarks, such as ImageNet-A and ImageNet-R, suggesting that probabilistic modeling helps the model generalize better to out-of-distribution data.

Limitations and Future Work

  • Context Length: The current model is limited to a context length of 64 tokens. While standard for many VLMs, this restricts the model's ability to process very long, detailed descriptions.
  • Diagonal Covariance: A diagonal covariance is assumed for simplicity and efficiency. Exploring full covariance or more complex distribution types (like Mixture of Gaussians) could capture even more nuanced relationships, though it would be mathematically more challenging.
  • Computational Cost: While the [UNC] token is efficient, training on a billion-scale dataset still requires significant hardware resources.

Summary updated

BibTeX
@inproceedings{chun2025probabilistic,
  author = {Sanghyuk Chun and Wonjae Kim and Song Park and Sangdoo Yun},
  title = {{Probabilistic Language-Image Pre-Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=D5X6nPGFUY},
}
Figure