A Corpus of Natural Language for Visual Reasoning

Alane Suhr, Mike Lewis, James Yeh, Yoav Artzi

Introduction

The quest for machines that truly "understand" the world often centers on the intersection of vision and language. However, existing benchmarks frequently fall into two categories: Visual Question Answering (VQA) datasets that use real-world images but require only shallow reasoning, or synthetic datasets like CLEVR that demand deep reasoning but use template-generated language.

The Cornell Natural Language Visual Reasoning (NLVR) dataset bridges this gap. It consists of over 92,000 pairs of natural language statements grounded in synthetic images, challenging models to perform complex set-theoretic and spatial reasoning using diverse, human-written sentences.

Examples of NLVR image-sentence pairs requiring complex spatial and set-theoretic reasoning.

Methods: Eliciting Complex Reasoning

The core task in NLVR is binary classification: given an image and a statement, the model must decide if the statement is True or False. To ensure the language was linguistically rich and required deep reasoning, the authors employed a unique two-stage crowdsourcing process.

In Stage 1 (Sentence Writing), workers were shown four images simultaneously. They were tasked with writing a single sentence that was true for exactly two of the images and false for the other two. This "discriminative" constraint forced workers to move beyond simple descriptions (e.g., "There is a circle") and instead use complex logic involving cardinality, negation, and spatial relationships.

The four-image display used in the first stage of crowdsourcing to elicit discriminative, complex natural language statements.

In Stage 2 (Validation), different workers labeled the truth value of these sentences across all images to ensure robust ground-truth labels.

Dataset Characteristics

NLVR contains 92,244 image-sentence pairs with 3,962 unique sentences. Compared to benchmarks like VQA, NLVR sentences exhibit significantly higher frequencies of:

  • Cardinality (66%): Statements involving counting or exact numbers of objects.
  • Spatial Relations (66%): Descriptions of relative positions between objects.

Despite the simple synthetic visuals (shapes in boxes), the human descriptions are linguistically diverse, featuring universal quantification ("every box has..."), coreference, and complex coordination.

Key Insights and Results

The researchers evaluated several baseline architectures, including standard CNN+RNN pipelines, Neural Module Networks (NMN), and models using structured "cheat sheet" data (object coordinates and properties).

  • Best Image-Based Model: The Neural Module Network (NMN) achieved 66.12% accuracy.
  • Best Structured Model: A MaxEnt classifier using hand-engineered features from the structured data achieved 68.04% accuracy.
  • Baselines: Text-only and Image-only models hovered around 56%, confirming that the dataset cannot be "gamed" by looking at only one modality.

The results highlight a "counting bottleneck." Models performed significantly worse on sentences involving negations and coordinations. Even with access to perfect structured data, the best model only reached ~68% accuracy, suggesting that the primary difficulty lies in logical reasoning rather than computer vision.

Conclusion

NLVR serves as a rigorous challenge for the AI community, particularly for developing models capable of handling set-theoretic reasoning and complex spatial arrangements. While the synthetic nature of the visuals removes real-world noise, it focuses the evaluation on the model's ability to ground complex, natural language in a visual context. Future work will likely involve scaling these reasoning challenges to more naturalistic scenes.

Summary updated

BibTeX
@inproceedings{suhr2017corpus,
  author = {Alane Suhr and Mike Lewis and James Yeh and Yoav Artzi},
  title = {{A Corpus of Natural Language for Visual Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-2034},
}
Figure