Revisiting the Role of Language Priors in Vision-Language Models

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

Introduction

Vision-language models (VLMs) have made a profound impact on artificial intelligence due to their ability to tackle a variety of visual understanding tasks in a zero-shot manner, without requiring task-specific fine-tuning. This paper investigates generative VLMs—models explicitly trained for next-word generation given an image—and explores their zero-shot performance on discriminative tasks like image-text retrieval.

The authors demonstrate that generative VLMs can be effectively repurposed for these tasks using a simple probabilistic metric called the VisualGPTScore. Furthermore, by introducing a training-free $\alpha$-debiasing technique that accounts for inherent linguistic priors, the authors achieve state-of-the-art zero-shot performance on challenging benchmarks, effectively isolating true "visual understanding" from merely "knowing how English sounds."

The Problem with Current Benchmarks

Modern VLMs, such as CLIP, are powerful but frequently fail at fine-grained compositional reasoning. For instance, they might confuse "a horse eating grass" with "grass eating a horse." To evaluate these models, researchers rely on various benchmarks. However, many popular benchmarks are "leaky": they contain linguistic biases that allow "blind" models—which completely ignore the image—to perform surprisingly well.

The authors identify two primary scenarios in current evaluation benchmarks that highlight the double-edged nature of language priors:

  1. Scenario 1 (Implausible Negatives): Negative captions are linguistically unnatural (e.g., word-shuffled gibberish). In this case, a model's internal language prior acts as a "cheat code," helping it pick the correct answer simply because it sounds more natural, regardless of the image.
  2. Scenario 2 (Realistic Negatives): Negative captions are realistic and plausible. Here, a model's language prior can become a "trap." It may lead the model to prefer a highly common but incorrect caption over a rare but correct one.
Two scenarios of train-test shifts in retrieval tasks. Left: Scenario 1 with implausible negatives. Right: Scenario 2 with realistic negatives where the language prior favors the incorrect caption.

Methodology: VisualGPTScore and Debiasing

To address these biases without resorting to expensive retraining, the authors propose a unified probabilistic framework featuring two key innovations:

1. VisualGPTScore

Instead of relying on standard contrastive scores, the authors use generative VLMs (like BLIP or LLaVA) to compute the probability of a text string given an image: $P(\text{text}|\text{image})$. This is calculated by averaging the log-likelihoods of each token in the caption, providing a direct measure of how well the text aligns with the visual evidence.

2. $\alpha$-Debiasing

To handle the distribution shifts between the model's training data and the test benchmarks, they derive a debiased scoring function:

$$\text{Score} = \frac{P_{\text{train}}(\text{text}|\text{image})}{P_{\text{train}}(\text{text})^\alpha}$$

  • When $\alpha = 0$, the formula yields the raw generative score.
  • When $\alpha = 1$, it completely removes the influence of the language prior, effectively computing the Pointwise Mutual Information (PMI) between the image and the text.

3. Efficient Prior Estimation

Calculating the language prior $P_{\text{train}}(\text{text})$ typically requires access to the original training dataset. To bypass this, the authors introduce a "null image" approach. By feeding the model Gaussian noise images and averaging the resulting text probabilities, they obtain a robust and computationally cheap estimate of the model's inherent linguistic bias.

Experimental Setup

The study evaluates this framework across nine diverse vision-language benchmarks, categorizing them into:

  • Compositional Benchmarks: ARO (VG-Relation, VG-Attribution, COCO-Order, Flickr30k-Order), Crepe, SugarCrepe, and VL-CheckList.
  • Alignment Benchmarks: Winoground and EqBen (designed specifically to penalize blind models).
  • Large-scale Retrieval: COCO and Flickr30K.
  • Zero-shot Classification: ImageNet1K.

Key Findings

  • The "Blind" Baseline is a Menace: On benchmarks like ARO, a language-only model (ignoring the image entirely) can achieve near-perfect accuracy. This reveals that these benchmarks often measure linguistic fluency rather than actual visual grounding.
  • Generative Models Excel at Composition: Generative VLMs, by their autoregressive nature of predicting the next token, appear to capture object relations and attributes more effectively than standard contrastive models.
  • State-of-the-Art Zero-Shot Performance: The VisualGPTScore, when paired with $\alpha$-debiasing, achieves state-of-the-art results on challenging alignment benchmarks like Winoground and EqBen. It outperforms much more complex, computationally heavy methods that rely on LLMs like ChatGPT for scoring.
  • Consistent Gains: Debiasing consistently improves performance. On the SugarCrepe benchmark, setting $\alpha=1$ improved the BLIP model's average accuracy from 91.8% to 95.0%.
  • Winoground Breakthrough: Using LLaVA-1.5 with the debiased score, the authors achieved a "Group Score" of 27.5 on Winoground, a massive leap over the previous best scores of ~12-15.

Limitations and Future Work

While highly effective, the approach has limitations. The performance ceiling is ultimately dictated by the underlying VLM's capabilities; debiasing cannot magically instill knowledge of concepts the model never learned. Additionally, computing generative scores for thousands of candidates in large-scale retrieval tasks remains computationally heavier than simple dot products in a contrastive space.

Future work may explore more sophisticated sampling methods for prior estimation and apply these probabilistic insights to train inherently less biased VLMs from the ground up.

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