Learning to Represent Image and Text with Denotation Graph

Bowen Zhang, Hexiang Hu, Vihan Jain, Eugene Ie, Fei Sha

Introduction

Current state-of-the-art multimodal models, such as ViLBERT and UNITER, typically learn from "flat" image-caption pairs. In this paradigm, each pair is treated as an independent data point, causing models to miss the underlying hierarchical relationships between different examples. For instance, a model might see "a dog sits on the porch" and "two dogs run on the grass" without explicitly recognizing the shared abstract concept of "dogs." This lack of structural understanding hinders generalization to novel combinations of attributes and objects.

The Denotation Graph Framework

To bridge this gap, researchers introduced the Denotation Graph (DG). A DG is a hierarchical structure—specifically a polytree—where nodes represent linguistic phrases of varying levels of abstraction, and edges denote subsumption relations (e.g., "two dogs running" is a specific instance of "two dogs").

Overview of the Denotation Graph framework, illustrating how images are grounded in a hierarchy of descriptive concepts.

Construction and Grounding

The graph is constructed by decomposing full captions into shorter, generic phrases using linguistic parsers and WordNet. Images are then visually grounded by attaching them to the most specific nodes (leaf nodes). Crucially, an image associated with a leaf node is automatically linked to all its abstract parent nodes. This process allows the model to ground abstract phrases like "person" or "instrument" across thousands of diverse images, building a robust "visual vocabulary."

Training Objectives

The authors propose a tripartite loss function to train models within the DG framework:

  • Matching Loss ($\ell_{MATCH}$): A standard alignment loss enhanced with "DG Hard Negatives"—sampling phrases that are linguistically similar but refer to different image sets.
  • Specificity Loss ($\ell_{SPEC}$): Teaches the model that specific descriptions (e.g., "a black dog") should rank higher for a relevant image than generic ones (e.g., "a dog").
  • Edge Prediction Loss ($\ell_{EDGE}$): Forces the model to predict structural relationships between concept nodes based on their embeddings.

Experimental Results

The addition of Denotation Graphs consistently improves the performance of baseline models. As shown in the table below, the DG-enhanced ViLBERT model shows significant gains on the MS-COCO benchmark.

Performance comparison on the MS-COCO 5K test split, demonstrating the impact of Denotation Graph (DG) integration.

Beyond standard retrieval tasks, the DG framework excels in Zero-Shot Transfer. By learning the underlying hierarchy of language, the model becomes significantly better at compositional attribute-object recognition, such as identifying a "purple accordion" even if that specific combination was never seen during training.

Conclusion

Denotation Graphs provide a powerful mechanism for moving beyond flat image-text pairs. By explicitly modeling the hierarchy of language and grounding abstract concepts, models achieve better generalization and finer-grained understanding. Future work will focus on scaling these graphs and refining the automated tools used for their construction.

Summary updated

BibTeX
@inproceedings{zhang2020learning,
  author = {Bowen Zhang and Hexiang Hu and Vihan Jain and Eugene Ie and Fei Sha},
  title = {{Learning to Represent Image and Text with Denotation Graph}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.60},
}
Figure