Few-Shot Visual Relationship Co-Localization

Revant Teotia, Vaibhav Mishra, Mayank Maheshwari, Anand MishraICCV 2021 · DOI

Abstract

Researchers from IIT Jodhpur have introduced Visual Relationship Co-Localization (VRC), a novel task where a model must identify and localize subject-object pairs (like "dog biting frisbee") across a small "bag" of images that share a common but unlabeled action. By combining meta-learning with relationship embeddings, their framework successfully identifies these connections even for predicates never encountered during training.

Introduction

In computer vision, object co-localization—finding the same object category across multiple images—is a well-established task. However, understanding how objects interact is significantly more complex. The authors tackle this challenge through Visual Relationship Co-Localization.

Imagine a set of images: in one, a dog bites a frisbee; in another, a man eats a hot dog; in a third, a woman eats an apple. The common link is the "biting" or "eating" action (the predicate). The difficulty lies in the fact that the model is not provided with the label "biting," and the visual appearance of a dog biting a plastic disc is vastly different from a human eating a snack. Existing Visual Relationship Detection (VRD) models typically rely on a fixed vocabulary of actions seen during training. VRC breaks this mold by requiring the model to localize relationships in a "few-shot" setting, handling unseen predicates by identifying commonalities across a small set (a "bag") of images.

The VRC pipeline: identifying common relationships (e.g., 'biting') across a bag of diverse images.

Methodology

The authors treat VRC as a labeling problem on a fully connected graph, where each image is a vertex and the potential "labels" are all possible subject-object pairs within that image. Their framework utilizes a three-part strategy:

  1. Relationship Embedding (VTransE): To represent a relationship, the model moves beyond raw pixels. It uses a technique that treats the predicate as a "translation vector" in a shared feature space. If the features of the subject are added to the predicate vector, the result should reside near the object features in that space.
  2. Meta-Learning (Relation Network): To determine if two pairs in different images share the same latent predicate, the framework employs a Relation Network. This metric-learning approach learns a similarity score between relationship embeddings. Trained using a meta-learning paradigm across many different "bags," it learns the abstract concept of relationship similarity rather than memorizing specific actions.
  3. Greedy Inference: Finding the absolute optimal set of pairs across all images is computationally NP-hard. To ensure practicality, the researchers use a greedy approximation algorithm that builds the solution incrementally.

Experimental Results

The model was evaluated on two major benchmarks: VrR-VG (Visually Relevant Relationships), which focuses on meaningful interactions by removing statistically biased relationships, and VG-150, a popular subset of the Visual Genome dataset.

The primary metric, VR-CorLoc (Visual Relation Co-Localization), measures the percentage of images where both the subject and object were correctly localized. On the VrR-VG dataset with a bag size of 4, the model achieved a 76.12% VR-CorLoc on predicates it had never seen during training. This performance significantly outperformed baselines using simpler methods like Cosine Similarity, proving the efficacy of the meta-learning Relation Network.

Key Insights

  • Bridging the Semantic Gap: While "biting" looks different in every image, the geometric and semantic shift from subject to object remains consistent. By learning this shift, the model generalizes to unseen actions.
  • The Power of the "Bag": By analyzing multiple images simultaneously, the model uses group commonality to filter out noise. While a single image may contain dozens of relationships, only one is likely to be present across the entire bag.
  • Weak Supervision: Providing minimal assistance—such as identifying the subject in just one image of the bag—drastically improves localization accuracy.

Limitations and Future Work

The current model assumes exactly one common latent predicate per bag. In real-world scenarios, images often share multiple relationships (e.g., "man wearing shirt" and "man holding phone"). Currently, the model selects the relationship with the lowest "cost" and ignores others. Future research may explore multi-predicate co-localization, automatic dataset annotation, and improving image search engines by allowing for complex interaction queries across unlabeled data.

Summary updated

BibTeX
@inproceedings{teotia2021few,
  author = {Revant Teotia and Vaibhav Mishra and Mayank Maheshwari and Anand Mishra},
  title = {{Few-Shot Visual Relationship Co-Localization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01603},
}
Figure