Revisiting the Role of Language Priors in Vision-Language Models

Zhiqiu Lin, Xinyue Chen, Deepak Pathak, Pengchuan Zhang, Deva Ramanan · DOI

Abstract

Vision-language models (VLMs) are impactful in part because they can be applied to a variety of visual understanding tasks in a zero-shot fashion, without any fine-tuning. We study generative VLMs that are trained for next-word generation given an image. We explore their zero-shot performance on the illustrative task of image-text retrieval across 8 popular vision-language benchmarks. Our first observation is that they can be repurposed for discriminative tasks (such as image-text retrieval) by simply computing the match score of generating a particular text string given an image. We call this probabilistic score the Visual Generative Pre-Training Score (VisualGPTScore). While the VisualGPTScore produces near-perfect accuracy on some retrieval benchmarks, it yields poor accuracy on others. We analyze this behavior through a probabilistic lens, pointing out that some benchmarks inadvertently capture unnatural language distributions by creating adversarial but unlikely text captions. In fact, we demonstrate that even a "blind" language model that ignores any image evidence can sometimes outperform all prior art, reminiscent of similar challenges faced by the visual-question answering (VQA) community many years ago. We derive a probabilistic post-processing scheme that controls for the amount of linguistic bias in generative VLMs at test time without having to retrain or fine-tune the model. We show that the VisualGPTScore, when appropriately debiased, is a strong zero-shot baseline for vision-language understanding, oftentimes producing state-of-the-art accuracy.

Introduction

Vision-Language Models (VLMs) like CLIP have fundamentally changed how AI systems bridge the gap between visual and textual information. Despite their success, these models often suffer from a "bag-of-words" limitation, where they struggle to differentiate between sentences with identical words but different meanings (e.g., "the horse is eating the grass" vs. "the grass is eating the horse").

Generative VLMs, which predict the next word in a sequence given an image, offer a promising alternative for complex reasoning. However, these models introduce a significant new challenge: Language Priors. Because they are trained on vast corpora of text, they develop strong internal preferences for common linguistic patterns. This research explores how these priors affect benchmarking and proposes a method to harness generative power while neutralizing harmful biases.

Repurposing Generative VLMs: The VisualGPTScore

To use generative models for discriminative tasks like image-text retrieval, we introduce the VisualGPTScore. Instead of adding a classification head, we leverage the model's inherent likelihood estimation. We calculate the probability of a text string $T$ given an image $I$: $P(T|I)$. For autoregressive models, this score can be computed efficiently in parallel, allowing off-the-shelf generative models to be used directly for zero-shot retrieval.

The Dual Nature of Language Priors

The performance of VisualGPTScore varies wildly across benchmarks. We identify two distinct scenarios that explain this behavior:

  1. Scenario 1 (Unrealistic Negatives): Many benchmarks use "negative" captions that are grammatically nonsensical or "word salads." In these cases, the model's language prior helps it pick the correct answer simply because the correct caption is the only one that sounds like natural English.
  2. Scenario 2 (Realistic Negatives): Harder benchmarks use realistic-sounding but incorrect captions. Here, the language prior can lead the model astray if the incorrect caption describes a more "likely" event in the training data than the actual visual scene.
Visualizing Scenario 1 (unrealistic negatives) and Scenario 2 (realistic negatives).

As shown in the figure above, a model might correctly identify a duck because the alternatives are gibberish (Scenario 1), but might incorrectly claim people are "cooking" in a kitchen when they are actually "posing" because "cooking in a kitchen" is a more frequent linguistic pattern (Scenario 2).

Mitigating Bias with $\alpha$-debiasing

To address these biases, we propose a probabilistic post-processing technique called $\alpha$-debiasing. By applying Bayes' Rule, we can reweight the VisualGPTScore using the model's "blind" language prior $P(T)$:

$$\text{Score} \propto \frac{P(T|I)}{P(T)^\alpha}$$

When $\alpha=1$, the score represents the Pointwise Mutual Information (PMI), measuring how much the image specifically increases the likelihood of the text. To estimate $P(T)$ without retraining, we use a Monte Carlo approach, feeding the model "null" images (Gaussian noise) to observe its baseline linguistic preferences.

Key Results and Discussion

Our evaluation across nine diverse benchmarks reveals several critical insights:

  • The Power of the "Blind" Baseline: On benchmarks like ARO, a language model that ignores the image entirely can outperform state-of-the-art vision models, highlighting a crisis in current benchmarking practices.
  • State-of-the-Art Retrieval: When properly debiased, generative models like BLIP and LLaVA achieve SOTA results on SugarCrepe and VL-CheckList. Notably, on the difficult Winoground dataset, $\alpha$-debiasing improved the Group Score significantly, outperforming more complex multi-stage pipelines.
  • Generative Superiority: Once language priors are controlled, generative models prove far more capable of understanding object relations and attributes than traditional discriminative models like CLIP.

Conclusion

This work demonstrates that while language priors can mask a model's true visual reasoning capabilities, they can be effectively managed through simple probabilistic adjustments. By using $\alpha$-debiasing, researchers can turn generative VLMs into robust tools for zero-shot understanding that truly "see" the image rather than just guessing based on linguistic probability. Future work should focus on integrating these debiasing principles directly into the training phase of vision-language architectures.

Summary updated

BibTeX
@inproceedings{lin2024revisiting,
  author = {Zhiqiu Lin and Xinyue Chen and Deepak Pathak and Pengchuan Zhang and Deva Ramanan},
  title = {{Revisiting the Role of Language Priors in Vision-Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=J5VB1h3Aed},
}
Figure