# VQA v2 (2017)

> 1.1 million questions about COCO photos, each answered by ten people.

Page: https://mralbu.github.io/ai-datasets/d/vqa-v2

## Key facts

- Category: Vision
- Task: Visual question answering
- Creators: Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, Devi Parikh (Virginia Tech, Army Research Laboratory, Georgia Tech)
- Size: 204,721 images, 1.1 million questions, 11 million answers
- Splits: train 443,757, validation 214,354, test 447,793
- Input: A COCO photo and an open-ended question about it
- Labels: Ten free-form answers per question, typed as yes/no, number or other
- License: CC BY 4.0 (annotations); images under COCO's Flickr terms
- Paper: [Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answering](https://arxiv.org/abs/1612.00837)
- Homepage: https://visualqa.org/
- Hugging Face: [lmms-lab-encoder/VQAv2](https://huggingface.co/datasets/lmms-lab-encoder/VQAv2)
- Sampled at Hub revision 32665d35052eb4a6d4414851c3c829a72754915a (2026-11-08)

## Why it matters

The first VQA dataset (2015) asked people to write questions about a photo that a smart robot could not answer without seeing it. Models soon did well anyway, partly without looking: "what color is the banana?" is usually yellow, and "is there a…?" is usually yes. Version 2 fixed this by pairing each question with a similar image that has a different answer, so language priors alone stop working. It became the standard test of vision-language models for years, from bottom-up attention and ViLBERT to Flamingo and the first multimodal LLMs.

## Worth knowing

- A model's answer earns a third of the credit per person who gave it, up to full credit at three of ten; that is the percentage shown with each answer. The official scorer averages over leave-one-out subsets, so three matches score 0.90.
- About 38% of questions are yes/no, 12% are about numbers, and the rest are "other".
- Many questions have no single right answer. Ten people often disagree on counting, colors and how much detail to give.
- The images are COCO's, so VQA, COCO captions and Visual Genome often describe the same photos.

## Get the data

A Parquet copy of the validation and test questions with their COCO images; validation has all ten answers, while test answers were never released. Training questions and annotations are on visualqa.org.

```bash
# pip install -U huggingface_hub
hf download lmms-lab-encoder/VQAv2 --repo-type dataset \
  --local-dir vqa-v2
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("lmms-lab-encoder/VQAv2")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/lmms-lab-encoder/VQAv2@~parquet/default/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [DAQUAR](https://www.mpi-inf.mpg.de/departments/computer-vision-and-machine-learning/research/vision-and-language/visual-turing-challenge): 2014, 12,000 questions about indoor scenes from NYU Depth V2
- [VQA v1](https://visualqa.org/vqa_v1_download.html): 2015, the first version, with the language-prior problem
- [Visual Genome](https://huggingface.co/datasets/ljnlonoljpiljm/visual_genome): 2016, 1.7 million questions plus scene graphs (on this site: https://mralbu.github.io/ai-datasets/d/visual-genome)
- [VizWiz](https://vizwiz.org/): 2018, photos and spoken questions from blind people
- [GQA](https://cs.stanford.edu/people/dorarad/gqa/): 2019, compositional questions generated from Visual Genome's scene graphs
- [TextVQA](https://huggingface.co/datasets/lmms-lab-encoder/textvqa): 2019, questions that require reading text inside photos (on this site: https://mralbu.github.io/ai-datasets/d/textvqa)
- [DocVQA](https://huggingface.co/datasets/HuggingFaceM4/DocumentVQA): 2020, reading scanned forms, tables and documents (on this site: https://mralbu.github.io/ai-datasets/d/docvqa)
- [MMMU](https://huggingface.co/datasets/MMMU/MMMU): 2023, college-level questions about images (on this site: https://mralbu.github.io/ai-datasets/d/mmmu)
- [MS COCO](https://huggingface.co/datasets/rafaelpadilla/coco2017): 2014, the source of its images (on this site: https://mralbu.github.io/ai-datasets/d/coco)

## Landmark papers

- [Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answering](https://arxiv.org/abs/1707.07998) (2018)
- [ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks](https://arxiv.org/abs/1908.02265) (2019)
- [Flamingo: a Visual Language Model for Few-Shot Learning](https://arxiv.org/abs/2204.14198) (2022)

## Papers on this site that use it

- [Flamingo (2022)](https://mralbu.github.io/ai-datasets/p/flamingo.md): Bridged a frozen vision encoder and a frozen LLM with gated cross-attention so one model learns new visual tasks from a few examples in the prompt.
- [BLIP-2 (2023)](https://mralbu.github.io/ai-datasets/p/blip-2.md): Connected off-the-shelf frozen ViTs and frozen LLMs through a compact 188M-parameter Querying Transformer trained in two stages.
- [Molmo (2024)](https://mralbu.github.io/ai-datasets/p/molmo.md): Matched proprietary frontier VLMs using only open weights and newly collected human speech captions and 2D pointing data—with zero distillation from closed VLMs.
- [PaliGemma (2024)](https://mralbu.github.io/ai-datasets/p/paligemma.md): Paired SigLIP and Gemma-2B with a linear projection, prefix-LM attention and unfrozen multi-resolution pretraining to build a compact 3B transfer base model.
