Explanation-based Weakly-supervised Learning of Visual Relations with Graph Networks

Federico Baldassarre, Kevin Smith, Josephine Sullivan, Hossein Azizpour

Introduction

Training models for Visual Relationship Detection (VRD)—identifying triplets like (subject, predicate, object)—traditionally requires exhaustive and expensive annotations. While object detection has matured, detecting interactions remains a significant challenge due to the combinatorial explosion of possible relationships. For instance, a dataset with 100 object categories and 70 predicates yields 700,000 potential interactions. This paper addresses the data bottleneck by proposing a method to learn these relations using only image-level predicate labels (e.g., knowing the word "riding" applies to an image), the weakest form of supervision used for this task to date.

Methodology

The authors decompose the problem into a multi-stage pipeline that transitions from coarse image-level labels to fine-grained spatial detections:

  1. Object Detection: A pre-trained Faster R-CNN identifies potential objects within the image.
  2. Graph Construction: The image is represented as a fully-connected graph where nodes represent detected objects (encoded with visual and spatial features) and edges represent potential relationships.
  3. Predicate Classification: A Graph Neural Network (GNN) is trained to predict image-level predicates. The architecture is designed with an inductive bias for pairwise relations, learning to aggregate information across edges.
  4. Explanation via Sensitivity Analysis: To localize the relationship, the authors perform a backward pass to calculate the gradient of the GNN's prediction with respect to the graph's nodes and edges. This "explanation" identifies the specific subject-object pair most responsible for the predicted predicate.
  5. Directional Prior: To resolve the inherent ambiguity of predicate-only labels (e.g., distinguishing "person eats apple" from "apple eats person"), a frequency-based prior is employed to determine the direction of the relationship.
The proposed pipeline: from object detection to graph-based predicate classification.

Key Insights and Ideas

Graphs vs. Pixels for Explanations

Traditional explanation methods, such as Grad-CAM, often produce blurry pixel-level heatmaps that are difficult to map back to specific objects. By performing explanations on a discretized graph structure, the "heatmap" naturally identifies specific object pairs, making it significantly easier to recover clean triplets.

Visualization of explanation heatmaps in complex scenes.

Inductive Bias and Supervision

By forcing the model to process data through a graph structure that mimics the structure of relationships, the model learns to focus on pairs of objects even without explicit triplet labels. However, the authors note a fundamental "direction-blindness" in predicate-only supervision, necessitating the use of semantic or frequency-based priors to disambiguate the flow of interaction.

Experimental Results

The method was evaluated on three benchmarks: HICO-DET (Human-Object Interaction), VRD (Generic relations), and UnRel (Unusual triplets).

  • HICO-DET: The model achieved a Mean Average Precision (mAP) of 28.04, outperforming several fully-supervised baselines (e.g., the "Analogies" method at 19.40).
  • VRD: The model reached a Recall@100 of 13.2, performing remarkably close to weakly-supervised methods that utilized full triplet labels (15.3).
  • Zero-Shot Generalization: On the UnRel dataset, the model demonstrated a strong ability to detect "unseen" or rare relationships (e.g., "person riding dog"), proving that independent predicate learning generalizes better than joint triplet learning.

Conclusion

This research demonstrates that high-quality visual relationship detection is possible with minimal supervision. By leveraging the structured nature of graphs and the interpretability of sensitivity analysis, the model effectively bridges the gap between image-level concepts and spatial localizations. Future work aims to replace frequency-based directional priors with more principled approaches, such as natural language embeddings or small subsets of unlocalized triplet data.

Summary updated

BibTeX
@inproceedings{baldassarre2020explanation,
  author = {Federico Baldassarre and Kevin Smith and Josephine Sullivan and Hossein Azizpour},
  title = {{Explanation-based Weakly-supervised Learning of Visual Relations with Graph Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=HOuZNnxTceq},
}
Figure