Rethinking Evaluation Practices in Visual Question Answering: A Case Study on Out-of-Distribution Generalization

Aishwarya Agrawal, Ivana Kajic, Emanuele Bugliarello, Elnaz Davoodi, Anita Gergely, Phil Blunsom, Aida Nematzadeh

Abstract

Vision-and-language (V&L) models pretrained on large-scale multimodal data have demonstrated strong performance on various tasks such as image captioning and visual question answering (VQA). The quality of such models is commonly assessed by measuring their performance on unseen data that typically comes from the same distribution as the training data. However, when evaluated under out-of-distribution (out-of-dataset) settings for VQA, we observe that these models exhibit poor generalization. We comprehensively evaluate two pretrained V&L models under different settings (i.e. classification and open-ended text generation) by conducting cross-dataset evaluations. We find that these models tend to learn to solve the benchmark, rather than learning the high-level skills required by the VQA task. We also find that in most cases generative models are less susceptible to shifts in data distribution compared to discriminative ones, and that multimodal pretraining is generally helpful for OOD generalization. Finally, we revisit assumptions underlying the use of automatic VQA evaluation metrics, and empirically show that their stringent nature repeatedly penalizes models for correct responses.

Introduction

Visual Question Answering (VQA) models have reached impressive accuracy on standard benchmarks like VQAV2. However, this performance often fails to translate to real-world applications. This study investigates a critical gap: Out-of-Distribution (OOD) generalization. Current V&L models are often "benchmark solvers" rather than "task learners," showing significant performance collapses when tested on data from outside their training distribution.

Most VQA models are evaluated on "In-Distribution" (IID) data—test sets that share the same biases, question formats, and answer distributions as the training data. This paper asks whether these models are actually learning the high-level skills of visual reasoning and language integration, or if they are simply memorizing dataset-specific correlations (e.g., predicting "white" for any "What color..." question).

Methodology

The researchers conducted an extensive "cross-dataset" evaluation using two state-of-the-art models: ViLBERT (region-based) and ALBEF (patch-based). They evaluated these models across five diverse VQA benchmarks—VQAV2, GQA, Visual Genome (VG), VizWiz, and VQA-CP—without any domain adaptation.

Key methodological choices included:

  • Discriminative vs. Generative: Comparing standard classification-based models against generative models that produce open-ended text.
  • Multimodal Pretraining Analysis: Measuring the impact of pretraining on massive image-text pairs (e.g., Conceptual Captions) on OOD robustness.
  • Human-in-the-loop Evaluation: Using human raters to judge if model answers were "correct" in context, bypassing the limitations of automatic string-matching metrics.

The "Dataset Solver" Trap

A primary finding is that models overfit to specific question formats. For example, a model trained on VQAV2 (where questions are often "What is... sitting on?") might fail on GQA (which asks "What kind of furniture is...?") even if the visual scene and answer ("chair") are identical.

Cross-dataset evaluation of ViLBERT and ALBEF models. Performance significantly drops when models are tested on datasets different from their fine-tuning distribution.

As illustrated in Figure 3, all models showed a "notable drop" in accuracy from IID to OOD. For instance, ALBEF-GEN dropped from ~72% on its training distribution to as low as ~20% on VizWiz. Models fine-tuned on VQAV2 showed the smallest performance drops when tested on other datasets, suggesting it is currently the most robust "general-purpose" training set.

Generative Robustness and Pretraining

Generative models were found to be more robust than discriminative ones. Because they are not "locked" into a fixed vocabulary of the top-k training answers, they generalize better to the "long tail" of possible responses found in new datasets. Additionally, multimodal pretraining generally improves OOD performance by exposing the model to a wider variety of visual and linguistic concepts before it ever sees a VQA-specific task.

The Metric as a Bottleneck

Standard VQA metrics are "stringent" and fundamentally brittle. They rely on exact string matching, which penalizes synonyms (e.g., "on table" vs. "table") or different levels of specificity. This brittleness is much worse in OOD settings where the model hasn't learned the specific "dialect" of the test set.

Comparison between automatic VQA metrics and human evaluation. The dotted regions represent the performance gain when using human judgment, highlighting the brittleness of standard string-matching metrics.

Human evaluation (Figure 6) revealed that automatic metrics underestimate model performance by a huge margin—up to 33.5 percentage points in some OOD cases. Under human evaluation, generative models consistently outperformed their discriminative counterparts, proving they are better at capturing the "intent" of the answer even if they miss the exact string match.

Conclusion

The study reveals that our standard evaluation metrics are fundamentally brittle, frequently penalizing perfectly correct answers that don't exactly match a narrow ground-truth string. While generative architectures and multimodal pretraining improve robustness, there is a clear need for better metrics. The authors advocate for the development of more flexible, semantic-based automatic evaluation metrics to replace the current exact-match paradigm, which is a poor proxy for actual model capability.

Summary updated

Abstract

Vision-and-language (V&L) models pretrained on large-scale multimodal data have demonstrated strong performance on various tasks such as image captioning and visual question answering (VQA). The quality of such models is commonly assessed by measuring their performance on unseen data that typically comes from the same distribution as the training data. However, when evaluated under out-of-distribution (out-of-dataset) settings for VQA, we observe that these models exhibit poor generalization. We comprehensively evaluate two pretrained V&L models under different settings (i.e. classification and open-ended text generation) by conducting cross-dataset evaluations. We find that these models tend to learn to solve the benchmark, rather than learning the high-level skills required by the VQA task. We also find that in most cases generative models are less susceptible to shifts in data distribution compared to discriminative ones, and that multimodal pretraining is generally helpful for OOD generalization. Finally, we revisit assumptions underlying the use of automatic VQA evaluation metrics, and empirically show that their stringent nature repeatedly penalizes models for correct responses.
BibTeX
@inproceedings{agrawal2023rethinking,
  author = {Aishwarya Agrawal and Ivana Kajic and Emanuele Bugliarello and Elnaz Davoodi and Anita Gergely and Phil Blunsom and Aida Nematzadeh},
  title = {{Rethinking Evaluation Practices in Visual Question Answering: A Case Study on Out-of-Distribution Generalization}},
  booktitle = {EACL (Findings)},
  year = {2023},
  doi = {10.18653/v1/2023.findings-eacl.90},
}
Figure