# GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering

GQA builds a question engine that tests visual reasoning beyond answer priors

Drew A. Hudson, Christopher D. Manning · arXiv · 2019-2-25

- **Problem** VQA models can answer many questions by relying on answer priors instead of the image. Earlier balancing fixes only partly work, leaving open questions unbalanced and penalizing models for learning real data properties.
- **Method** GQA generates 22 million compositional questions from Visual Genome scene graphs. Each question carries a functional program, and answer distributions are smoothed by rejection sampling.
- **Results** MAC reached 54.06 overall accuracy on the GQA test set, while humans reached 89.3.

## Why VQA scores can be reached without vision

VQA asks a system to answer free-form questions about an image, which needs object recognition, commonsense and relation reasoning. Many benchmarks can be passed without that work, because real-world images carry strong priors, such as red tomatoes and wooden tables. Models learn these tendencies in the answer distribution and rely on them instead of the scene.

Simple questions that rarely need more than object recognition make the problem worse.

Earlier fixes only partly work. Goyal et al. paired most VQA 1.0 questions with similar images that have different answers, but this leaves open questions unbalanced and does not cover 29% of questions. Agrawal et al. split training and validation sets so their answer distributions differ on purpose, which can penalize models for learning real properties of the training data.

The authors therefore want a balanced test that is harder to game with educated guesses.

## Generating questions from scene graphs

The core idea pairs the content of Visual Genome scene graphs with grammatical question patterns, so each question is grounded in the objects, attributes and relations of one image. Before generation, the scene graphs are cleaned and normalized into an ontology with 2690 classes. Inaccurate or unnatural edges are pruned with detection confidences, n-gram frequencies, co-occurrence statistics and manual curation.

The question engine works over 524 patterns in 117 question groups, with 1878 possible answers. Patterns contain optional phrases and alternative expressions, which are filled at random, and object references can be direct or indirect. Indirect references, such as the bear on the left, produce multi-step questions and make the patterns more flexible.

Decoys cover questions about absent objects or wrong attributes, such as asking whether a red apple is green. For each object, attribute pair or triplet, the engine instantiates a randomly chosen pattern with matching references and decoys. The result is 22,669,678 questions over 113,018 images in the final dataset.

## Functional programs and answer balancing

Each question carries a functional program, a chain of atomic steps such as selecting an object, filtering by attribute, relating objects and querying a property. Because the steps are explicit, two questions that share a program stay linked, and knowing the color of an apple lets a coherent learner answer whether it is red. The authors encode these links as entailment relations between programs and compute the entailed questions recursively.

Balancing starts from the program, which gives a global label for the answer type and a local label that adds the main subject. For each group, the empirical answer distribution is downsampled by rejection sampling toward a smoother target distribution. Probability moves from frequent answers into the tail, while minimum and maximum ratios between neighbouring answers keep the frequency ranking unchanged.

This retains the general real-world tendencies, with the tunable smoothing applied to them.

Balancing is applied to open questions as well as binary ones, which differs from VQA 2.0. The answer entropy rises by 72%, which the authors take as confirmation that the stage works. The final balanced set has 1.7M questions, split 70% train, 10% validation, 10% test and 10% challenge, with all questions of an image in one split.

## Baseline and state-of-the-art accuracy

The baselines are a blind LSTM, an image-only CNN, an LSTM+CNN and two prior models that return the most common answer per group. They reach between 17.82% and 41.07% accuracy, and the LSTM gets only 22.7% on open query questions.

BottomUp reached 49.74 overall accuracy and MAC reached 54.06, compared to 89.3 for humans. The authors read this gap as room for further visual reasoning research, not as a sign that the models are close to human performance.

## Transfer between GQA and VQA

The authors trained MAC on GQA and tested it on VQA, reaching 52.1% before fine-tuning and 60.5% after. Trained and tested on VQA, MAC reached 68.3% and LSTM+CNN reached 51.6%. The authors take this as evidence that GQA questions are a good proxy for human-like questions.

In the other direction, MAC trained on VQA reached 39.8% on GQA before fine-tuning and 46.5% after. So GQA is harder for a model trained on VQA, which the authors read as the further challenge the dataset poses. The transfer test uses only the MAC model.

## Metrics beyond accuracy

Consistency takes the questions a model answered correctly, applies each answer to the questions entailed by it, and averages accuracy over those. Human respondents reach 98.4% consistency, while even the best models are inconsistent on about one question in five. LSTM contradicts itself almost half the time.

Validity checks that an answer lies within the scope of the question, and plausibility checks that the answer occurs with the subject in the dataset. Models fail to give plausible or even valid answers in at least 5 to 15 percent of cases. The authors read this as limited world knowledge, since these properties depend on the answer statistics rather than on the image.

Distribution compares the true and predicted answer distributions with a Chi-Square statistic, where lower values are better. The leading models score lower than the baselines, with MAC at 5.34 compared to 130.86 for Global Prior. Grounding measures the visual attention a model puts on the region the question refers to. BottomUp and MAC reach grounding scores of about 80%, while spatial features give 43%.

The authors attribute the gap to object-informed features giving finer granularity than spatial features.

## Limitations

The plausibility metric may be less precise for infrequent objects because of data scarcity. Human scores come from 4000 random questions, with the majority of 5 answers taken per question. The questions are not natural in the way other VQA datasets are, although they have a rich vocabulary. The test set adds 5k hidden scene graphs collected through crowdsourcing.

The head-to-head comparison with VQA 2.0 and the MAC diagnosis appear in the supplementary, not in this text.

## Paper info

- **Authors**: Drew A. Hudson, Christopher D. Manning
- **Venue**: arXiv · Preprint
- **First published**: 2019-2-25
- **Added**: 2026-11-13
- **Updated**: 2019-5-10
- **Version**: v3
- **arXiv**: 1902.09506
- **Category**: cs.CL · cs.AI · cs.CV · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1902.09506v3) · [PDF ↗](https://arxiv.org/pdf/1902.09506v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Drew A. Hudson, Christopher D. Manning (2019). GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering. arXiv:1902.09506v3. https://arxiv.org/abs/1902.09506v3

**BibTeX**

```
@misc{hudson2019dataset,
  title = {{GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering}},
  author = {Drew A. Hudson and Christopher D. Manning},
  year = {2019},
  eprint = {1902.09506},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.09506v3}
}
```

## Other paper commentary

- [How to Fine-Tune BERT for Text Classification?](https://refivu.com/en/papers/b42bc4b9-8309-43db-89e9-41cd1d0ec800-how-to-fine-tune-bert-for-text-classification.md)
- [Text Classification Algorithms: A Survey](https://refivu.com/en/papers/5134d426-2cd3-4691-aeff-cf1fc4cb8d39-text-classification-algorithms-a-survey.md)
- [Reading Wikipedia to Answer Open-Domain Questions](https://refivu.com/en/papers/0abc2d22-75a1-4c4d-91be-624a590aabec-reading-wikipedia-to-answer-open-domain-questions.md)
- [A Neural Conversational Model](https://refivu.com/en/papers/2838569c-2f3a-45e5-86e6-549de8737d24-a-neural-conversational-model.md)
- [OpenNMT: Open-Source Toolkit for Neural Machine Translation](https://refivu.com/en/papers/d158ab7b-d0c6-4ffd-a069-53d34c28b7eb-opennmt-open-source-toolkit-for-neural-machine-translation.md)
- [FEVER: a large-scale dataset for Fact Extraction and VERification](https://refivu.com/en/papers/59763d9c-0c11-477a-89ee-abea10ff28a0-fever-a-large-scale-dataset-for-fact-extraction.md)
- [Moment Matching for Multi-Source Domain Adaptation](https://refivu.com/en/papers/8dd0a99c-d46a-4b5e-bfd0-6d72f38da2fc-moment-matching-for-multi-source-domain-adaptation.md)
- [Semi-Supervised Learning with Deep Generative Models](https://refivu.com/en/papers/e4821cb7-e7f9-4874-ba36-d94522c55bbb-semi-supervised-learning-with-deep-generative-models.md)
- [The Google Similarity Distance](https://refivu.com/en/papers/bb278d2d-7ba0-4fc6-9c9b-7e248f6965c2-the-google-similarity-distance.md)
- [HOGWILD!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent](https://refivu.com/en/papers/4f25abad-2562-433a-bc64-107b6d812ffb-hogwild-a-lock-free-approach-to-parallelizing-stochastic.md)
- [Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains](https://refivu.com/en/papers/0db80d86-03b8-4275-8e19-39d4c7f0fd3d-fourier-features-let-networks-learn-high-frequency-functions.md)
- [Variational image compression with a scale hyperprior](https://refivu.com/en/papers/862ebff4-6ece-4ccf-a0cf-aa1b89192db4-variational-image-compression-with-a-scale-hyperprior.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [CNN](https://refivu.com/en/terms/06880f5198e6-cnn)
- [Consistency](https://refivu.com/en/terms/ff25802d63e7-consistency)
- [GQA](https://refivu.com/en/terms/912d41ed8914-gqa)
- [Visual Genome](https://refivu.com/en/terms/278e846f67fc-visual-genome)
- [VQA 2.0](https://refivu.com/en/terms/36b9f2e2b271-vqa-2-0)
- [entailment](https://refivu.com/en/terms/3ef94f8ba8b5-entailment)
- [Scene Graph](https://refivu.com/en/terms/28e84075c80a-scene-graph)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d0afea32-dc3f-4529-bea4-dbdd41e95856-gqa-a-new-dataset-for-real-world-visual)
