Reassessing 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 · DOI

TL;DR

This paper reveals that current Vision-and-Language (V&L) models, despite impressive performance on standard benchmarks, struggle significantly with out-of-distribution (OOD) generalization in Visual Question Answering (VQA). The authors argue that models are learning to "solve the dataset" rather than the underlying VQA task, and that current evaluation metrics may be too stringent, unfairly penalizing correct answers.

What Problem Does This Paper Address?

Visual Question Answering (VQA) aims to build systems that can answer natural language questions about images, requiring a deep understanding of both vision and language, and the ability to reason. A key goal is to develop models that can generalize to any image and question. However, current VQA models are typically evaluated on datasets that share the same data distribution as their training data (In-Distribution or IID). This paper investigates whether these models truly learn general VQA skills or if they are merely overfitting to the specific patterns and biases present in their training datasets. The core problem is the lack of a robust evaluation of VQA models' ability to generalize to unseen data distributions, which is crucial for real-world deployment.

Methods

The authors evaluate two prominent V&L models, VILBERT and ALBEF, under various settings:

  • Discriminative vs. Generative: They compare models that classify answers from a fixed set versus those that generate answers freely.
  • Cross-Dataset Evaluation: Models are trained on one VQA dataset and tested on others to simulate OOD scenarios.
  • Multimodal Pretraining: They analyze the impact of pretraining on large image-text datasets on OOD performance.
  • Shared Answer Set Analysis: They investigate how performance changes when only considering questions with answers present in both training and testing answer sets.
  • Human Evaluation: To address potential issues with automatic metrics, they conduct human evaluations to assess the correctness of model responses.

Datasets

The study uses the following VQA datasets:

  • VQAv2: A widely-used dataset with 10 answers per question.
  • GQA: Focuses on compositional reasoning and uses template-generated questions.
  • Visual Genome (VG): Questions are centered around full images or specific regions.
  • VizWiz: A real-world dataset collected from visually-impaired users, presenting unique challenges like poor lighting and unanswerable questions.
  • VQA-CP: A dataset designed to have different answer distributions between train and test splits, specifically targeting overfitting to answer priors.

Key Insights and Ideas

  • Models Learn Benchmarks, Not Skills: The most striking finding is the significant performance drop when models are evaluated on OOD datasets, indicating they learn dataset-specific correlations rather than general VQA capabilities.
  • Generative Models Show Better OOD Robustness: Generative VQA models, which are not restricted to a predefined answer set, tend to be more robust to distribution shifts than discriminative models.
  • Multimodal Pretraining Helps, But Not Always: While multimodal pretraining generally improves OOD generalization, its effectiveness can vary, and it's not always superior to IID performance.
  • Automatic Metrics Can Be Too Stringent: The standard VQA evaluation metrics, which rely on exact string matching, often penalize correct but differently phrased answers, especially in OOD settings. Human evaluation reveals that models can provide correct responses that are unfairly marked as incorrect.
  • VQAv2 as a Stronger Fine-tuning Dataset: Fine-tuning on VQAv2 leads to better OOD generalization compared to other datasets, possibly due to its diversity.

Key Results

  • Performance Drop: A notable drop in VQA accuracy is observed across all models when moving from IID to OOD settings, with VizWiz showing the largest drops. For instance, even the smallest drop (VQAv2 to VG) is around 5.3 percentage points for ALBEFGEN.
  • Generative vs. Discriminative: Generative models consistently show better OOD generalization, with smaller performance drops compared to their discriminative counterparts.
  • Multimodal Pretraining Impact: Figure 3 shows positive percentage point differences for OOD evaluations with multimodal pretraining, indicating its benefit.
  • Human Evaluation vs. Automatic Metrics: Human evaluation can yield significantly higher accuracies (up to 33.5% increase) than automatic metrics, highlighting the limitations of the latter. For example, VILBERTGEN's accuracy increased substantially with human evaluation, especially in OOD settings.

Limitations and Future Work

  • Answer Distribution Focus: The quantitative analysis primarily focused on differences in answer distributions. Future work should explore differences in question and image distributions, and their combinations.
  • Pretraining Data Size: The study notes that increasing multimodal pretraining data size for ALBEF yielded only small improvements, and sometimes even negative effects. Further investigation into why pretraining doesn't always help is needed.
  • Metric Robustness: The authors strongly advocate for developing more robust evaluation metrics for VQA, especially for generative models and OOD scenarios, as current metrics are too stringent.
  • Model Scale: The models studied (VILBERT, ALBEF) were pretrained on millions of image-text pairs, which is smaller than language-only models trained on billions of tokens. Investigating multimodal models trained on larger datasets (e.g., LAION-5B) for OOD robustness is a promising direction.
  • Question Format Overfitting: The paper identifies overfitting to question formats as a significant cause of poor OOD generalization, suggesting future work could explore methods to mitigate this.
  • Ambiguity and Data Quality: Human evaluation revealed issues with dataset ambiguity and quality, suggesting that VQA datasets themselves might need improvement for more reliable evaluation.

Summary updated

BibTeX
@inproceedings{agrawal2023reassessing,
  author = {Aishwarya Agrawal and Ivana Kajic and Emanuele Bugliarello and Elnaz Davoodi and Anita Gergely and Phil Blunsom and Aida Nematzadeh},
  title = {{Reassessing 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