Visual Denotations for Recognizing Textual Entailment

Dan Han, Pascual Martínez-Gómez, Koji MineshimaEMNLP 2017

Introduction

Recognizing Textual Entailment (RTE) is a fundamental challenge in Natural Language Processing, requiring a system to determine if a premise text (T) entails, contradicts, or remains neutral toward a hypothesis (H). While human reasoning integrates linguistic structure with world knowledge, machines typically struggle with two distinct hurdles: logical composition (handling quantifiers and negation) and lexical knowledge (understanding that "tall green grass" implies a "field").

Traditional approaches rely on text-only databases like WordNet or the Paraphrase Database (PPDB). However, these resources often lack coverage for creative or descriptive phrases. This paper introduces a hybrid approach that grounds linguistic phrases in "visual denotations"—sets of images retrieved for specific phrases—to bridge these lexical gaps using computer vision.

Methodology

The proposed system builds upon ccg2lambda, a logic-based framework known for high precision. The authors extend this with a three-step visual grounding pipeline:

  1. Candidate Phrase Extraction: A tree-mapping algorithm identifies corresponding nodes between the syntactic trees of T and H, focusing on phrase pairs under six words where semantic relationships likely exist.
  2. Visual Mapping: For each extracted phrase, the system retrieves a set of images via the Google Image Search API. These images are converted into high-dimensional feature vectors using a pre-trained GoogLeNet model.
  3. Asymmetric Similarity Scoring: To determine if phrase A entails phrase B, the system evaluates if the visual representation of A is a subset of B.
The system calculates asymmetric similarity scores between image sets representing source and target phrases.

The scoring mechanism utilizes four primary features: an asymmetric average cosine similarity, maximum similarity (to handle polysemy), overall average similarity, and minimum similarity. These features are then integrated with logical features into a Random Forest classifier.

Experimental Evaluation

The system was evaluated on the SICK (Sentences Involving Compositional Knowledge) dataset, which contains nearly 10,000 sentence pairs. SICK is particularly suitable for this task as its vocabulary is derived from image captions, providing a natural link between text and visual concepts.

Key Results

The integration of visual features provided a statistically significant improvement over the logic-only baseline:

  • Logic-only Baseline: 83.13% accuracy.
  • Logic + Visual Denotations: 84.29% accuracy.
  • Visual-only Ablation: 82.85% accuracy.

The results demonstrate that while visual features are powerful, their true value lies in their interaction with logical structures. The system remained robust regardless of whether 10, 20, or 30 images were used per phrase.

Discussion and Insights

Bridging Lexical Gaps

Visual grounding allows the system to recognize relationships that are absent from standard dictionaries. For instance, while a dictionary might not explicitly link the descriptive phrase "kangaroo that is little" to the concept of a "baby kangaroo," their visual denotations are highly similar, allowing the model to correctly identify entailment.

Visual denotations for phrases like 'little kangaroo' provide a 'soft' way to resolve lexical gaps that brittle logic systems might miss.

The "No Cat" Problem

A notable limitation of visual grounding is its difficulty with negation. An image search for "no cat" typically returns images of cats, which can mislead a purely statistical model. This highlights the necessity of the hybrid approach: the logic system handles the structural negation ("not"), while the visual system provides the semantic content for the noun phrase ("cat").

Conclusion

By grounding linguistic phrases in visual denotations, this research successfully addresses the "brittleness" of logic-based RTE systems. While the current work is optimized for visual-heavy datasets like SICK, future research will explore more abstract domains and investigate which specific syntactic units—such as verbs versus nouns—benefit most from visual grounding across larger datasets like SNLI and MultiNLI.

Summary updated

BibTeX
@inproceedings{han2017visual,
  author = {Dan Han and Pascual Martínez-Gómez and Koji Mineshima},
  title = {{Visual Denotations for Recognizing Textual Entailment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1305},
}
Figure