VisualGPTScore: Visio-Linguistic Reasoning with Multimodal Generative Pre-Training Scores

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

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 $\textit{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 $\textit{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

Current Vision-Language Models (VLMs), such as CLIP, have demonstrated remarkable zero-shot capabilities. However, they often struggle with "compositional reasoning"—the ability to understand the specific relationships between objects in a scene. For instance, a model might fail to distinguish between "a horse eating grass" and "grass eating a horse," effectively treating the caption as an unordered "bag-of-words."

Example of adversarial captions in Scenario 1 benchmarks, where negative captions are linguistically implausible.

This paper introduces VisualGPTScore, a method to repurpose generative vision-language models (e.g., BLIP, LLaVA) for discriminative tasks like image-text retrieval. By leveraging the generative likelihood of a text string given an image, we can perform zero-shot reasoning. Crucially, we address a significant evaluation pitfall: many benchmarks are "hackable" because their negative captions are linguistically implausible. In such cases, a text-only model can achieve high accuracy without ever seeing the image.

The Challenge of Linguistic Bias

Benchmarks typically fall into two categories based on the nature of their negative samples. In "Scenario 1," negative captions are ungrammatical or scrambled (e.g., "a white wings spreads its water..."). Here, the raw generative score $P(\text{text}|\text{image})$ is naturally high for the correct caption because it is the only linguistically plausible option.

Probabilistic analysis of linguistic bias across different benchmark scenarios. Scenario 1 (left) features unnatural negative captions, while Scenario 2 (right) features realistic but incorrect negatives.

In "Scenario 2," however, negative captions are realistic but factually incorrect for the given image (e.g., "people are cooking" vs. "people are posing"). In these instances, the model's internal language prior $P(\text{text})$ might favor a common but incorrect caption over a rare but correct one, leading to poor performance. This reveals that many benchmarks measure linguistic plausibility more than true visual understanding.

Methods: VisualGPTScore and $\alpha$-Debiasing

To overcome these biases, we propose two main components:

  1. VisualGPTScore: We use the generative head of a VLM to compute the probability of a text string $T$ given an image $I$: $P(T|I)$. This is calculated as the product of the likelihood of each token in the sequence.
  2. $\alpha$-debiasing: We introduce a training-free post-processing step to reweight the score: $$\text{Score} = \frac{P(T|I)}{P(T)^\alpha}$$ Setting $\alpha=1$ corresponds to calculating Pointwise Mutual Information (PMI), which effectively removes the influence of the caption's general frequency in language.

  3. Efficient Prior Estimation: We estimate the language prior $P(T)$ by passing the text through the VLM with "null" images (Gaussian noise). This "content-free" calibration is computationally efficient and robust, requiring as few as 1-3 noise images.

Key Results and Insights

The study evaluates VisualGPTScore across nine diverse benchmarks, including ARO, Winoground, and SugarCrepe.

  • State-of-the-Art Performance: VisualGPTScore achieves SOTA results on ARO, SugarCrepe, and VL-CheckList without any fine-tuning, often outperforming much more complex, heavily engineered solutions.
  • The "Blind" Baseline Warning: We found that text-only models (like GPT) can outperform many VLMs on benchmarks like ARO, confirming that these datasets often measure linguistic plausibility rather than visual understanding.
  • Significant Gains on Deep Reasoning: On the notoriously difficult Winoground benchmark, $\alpha$-debiasing improved the text score from 27.5 to 36.6.
  • Generative Advantage: Generative VLMs appear to capture object relations and attributes more effectively than discriminative models trained on contrastive objectives.

Conclusion

VisualGPTScore provides a simple, training-free baseline for vision-language understanding. By appropriately debiasing generative scores, we can mitigate the effects of linguistic priors and focus on true visio-linguistic reasoning. While performance is still bounded by the underlying VLM's visual features, this approach offers a significant step forward in zero-shot compositional reasoning. Future work includes extending this logic to tasks like Visual Question Answering (VQA).

Summary updated

BibTeX
@inproceedings{lin2024visualgptscore,
  author = {Zhiqiu Lin and Xinyue Chen and Deepak Pathak and Pengchuan Zhang and Deva Ramanan},
  title = {{VisualGPTScore: Visio-Linguistic Reasoning with Multimodal Generative Pre-Training Scores}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=J5VB1h3Aed},
}
Figure