Leveraging Auxiliary Text for Deep Recognition of Unseen Visual Relationships

Gal Sadeh Kenigsfield, Ran El-YanivarXiv 2019

Abstract

Scene Graph Generation (SGG) remains a challenging task in computer vision due to the long-tail distribution of visual relationships. Standard models often fail to recognize rare or unseen interactions because they rely solely on limited visual training data. This paper introduces RONNIE (Recognition of Unseen Visual Relationships), a novel framework that leverages auxiliary text—including prose from classic literature—to bridge the gap between visual features and linguistic knowledge. By aligning visual representations with semantic embeddings and utilizing an Object-Relationship Mapping (ORM) derived from massive text corpora, RONNIE significantly improves the detection of long-tail and zero-shot relationships.

Introduction: The Challenge of the Long Tail

In computer vision, Scene Graph Generation (SGG) aims to transform an image into a structured graph where nodes represent objects and edges represent their relationships (e.g., "man dribbling ball"). While object detection has matured, identifying the specific interactions between objects remains difficult. The primary obstacle is the "long-tail" distribution: common relationships like "on" or "near" are over-represented in datasets, while thousands of more descriptive interactions (e.g., "standing behind," "dribbling") appear rarely or not at all.

Illustration of the Scene Graph Generation task and the Object-Relationship Mapping (ORM) process used to predict likely interactions between detected objects.

Traditional models struggle with these "unseen" relationships because they lack the contextual knowledge to infer interactions they haven't explicitly seen in images. This research explores whether the vast repository of human knowledge stored in text can be used to help models "see" the unseen.

Methods: The RONNIE Architecture

The proposed model, RONNIE, is built upon four technical pillars designed to integrate linguistic context with visual data:

  1. Object Detection & Contextual Attention: The system utilizes a standard Faster-RCNN for initial object detection, augmented with a "neighbor self-attention" mechanism. This allows the model to consider the spatial and semantic context of surrounding objects when evaluating a specific pair.
  2. Object-Relationship Mapping (ORM): This component serves as the model's linguistic knowledge base. By processing massive text corpora (including image captions and literary prose) into subject-predicate-object triplets, the authors create a statistical map of likely relationships between object pairs.
  3. Relationship Attention: When evaluating two objects, the model queries the ORM for candidate relationships. An attention mechanism then fuses these linguistic candidates with visual features and geometric encoding (relative bounding box positions).
  4. Subject-Object Disambiguation: To prevent common role-swapping errors (e.g., "hat wearing man"), a specific attention layer ensures the model correctly identifies the subject and object of the relationship.
Detailed architecture of the RONNIE model, highlighting the integration of geometric encoding, neighbor self-attention, and auxiliary text attention layers.

Training is guided by a multi-part loss function, including a Cosine Loss that aligns visual relationship representations with Word2Vec semantic embeddings.

Evaluation and Datasets

The model was evaluated on two benchmarks:

  • VG-200: A standard subset of Visual Genome with the 150 most frequent objects and 50 relationships.
  • VG-Min100: A new benchmark designed to test the long tail, featuring 1,845 objects and 450 relationships, including 400 relationships entirely absent from the training set.

Auxiliary text sources were also compared, specifically image captions (MS-COCO, Flickr30k) versus prose-based text from Project Gutenberg.

Key Results and Insights

The experiments yielded several significant findings:

  • Prose Outperforms Captions: Surprisingly, models trained on text from books ($RONNIE_{gut}$) outperformed those trained on image captions. Prose provides a richer, more diverse linguistic context compared to the literal and repetitive nature of captions.
  • Zero-Shot Success: By leveraging word embeddings and ORM, RONNIE can predict relationships it has never seen in images, such as "dribbling," by understanding the linguistic link between "player" and "ball."
  • Performance Gains: On the VG-Min100 dataset, RONNIE achieved a Top-5 accuracy of 78%, compared to 68.5% for the "Motifs" baseline. For rare relationships (fewer than 1,024 training instances), $RONNIE_{gut}$ reached 44.4% accuracy, a significant jump from the 30% achieved by the baseline without auxiliary text ($RONNIE_0$).

Conclusion

RONNIE demonstrates that auxiliary text is a powerful tool for overcoming the data scarcity inherent in visual relationship detection. By treating vision and language as complementary sources of information, the model achieves state-of-the-art performance on long-tail distributions and zero-shot scenarios. Future work will focus on scaling these methods to unlabeled data through pseudo-labeling and improving the model's handling of complex, crowded scenes.

Summary updated

BibTeX
@misc{kenigsfield2019leveraging,
  author = {Gal Sadeh Kenigsfield and Ran El-Yaniv},
  title = {{Leveraging Auxiliary Text for Deep Recognition of Unseen Visual Relationships}},
  year = {2019},
  eprint = {1910.12324},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.12324},
}
Figure