TL;DR
Training models to detect visual relationships (like "person riding horse") usually requires expensive, exhaustive annotations of every object and interaction. This paper proposes a way to learn these complex relations using only image-level predicate labels (e.g., just knowing the word "riding" applies to the image). By training a Graph Neural Network (GNN) to classify these predicates and then "explaining" its predictions through sensitivity analysis, the authors can pinpoint the specific subject-object pairs responsible for the action.
What Problem Does This Paper Address?
Visual Relationship Detection (VRD) involves identifying triplets in the form of (subject, predicate, object). While object detection has come a long way, detecting interactions is significantly harder. The main hurdle is the combinatorial explosion: if you have 100 object categories and 70 predicates, there are 700,000 possible relationships.
Collecting "fully supervised" data—where humans draw boxes around every subject and object and label the interaction—is prohibitively expensive and often results in "long-tailed" distributions where rare interactions are never seen. Previous "weakly-supervised" attempts used image-level triplet labels (knowing "person-ride-dog" is in the image), but this paper goes a step further by using predicate-only labels, the weakest form of supervision used for this task to date.
Methods
The authors decompose the problem into a pipeline that moves from coarse image labels to fine-grained spatial detections:
- Object Detection: They use a pre-trained Faster R-CNN to identify all potential objects in an image.
- Graph Construction: They represent the image as a fully-connected graph where nodes are detected objects (with visual and spatial features) and edges represent potential relationships.
- Predicate Classification (The GNN): A GNN is trained to predict which predicates are present in the image. Crucially, the GNN architecture encodes an inductive bias for pairwise relations; it learns to aggregate information across edges to make an image-level prediction.
- Explanation via Sensitivity Analysis: Once the GNN predicts a predicate (e.g., "eating"), the authors use a backward pass to calculate the gradient of that prediction with respect to the graph's nodes and edges. This "explanation" identifies which specific pair of objects (nodes) and which connection (edge) most contributed to the "eating" label.
- Directional Prior: Because a simple "eating" label doesn't tell the model who is eating what, the authors use a frequency-based prior (calculated from a small validation set) to ensure the model chooses "person eats apple" over "apple eats person."
Datasets
The method was evaluated on three distinct benchmarks:
- HICO-DET: Focused on Human-Object Interaction (HOI), containing over 150,000 annotated instances.
- Visual Relationship Detection (VRD): A dataset for generic object-to-object relations (e.g., "bottle on table").
- UnRel: A challenging dataset specifically designed for "unusual" triplets (e.g., "person riding dog") to test how well the model generalizes to rare scenarios.
Key Insights and Ideas
- Graphs are better than Pixels for Explanations: Traditional explanation methods like Grad-CAM produce blurry pixel-level heatmaps. By performing explanations on a graph, the "heatmap" is naturally discretized into objects and pairs, making it much easier to recover a clean
(subject, predicate, object)triplet. - Inductive Bias is a Powerful Substitute for Labels: By forcing the model to process data through a graph structure that mimics the structure of relationships, the model learns to "look" at pairs of objects even though it was never explicitly told which pairs were interacting during training.
- The Directionality Dilemma: The authors highlight a fundamental limit of predicate-only supervision: it is inherently "direction-blind." Without a semantic prior (like language or frequency), a model cannot know if a "touching" relation flows from A to B or B to A.
Key Results
Despite using significantly weaker labels than its competitors, the proposed method achieved impressive results:
- HICO-DET: The model outperformed several fully-supervised baselines, achieving a Mean Average Precision (mAP) of 28.04 (using a human-object prior) compared to the 19.40 of the previous state-of-the-art "Analogies" method.
- VRD: On the generic relationship task, the model achieved a Recall@100 of 13.2, which is remarkably close to weakly-supervised methods that had access to full triplet labels (15.3).
- Zero-Shot Generalization: The model showed a strong ability to detect "unseen" relationships in the UnRel dataset, proving that learning predicates independently of specific object pairs allows for better generalization to weird or rare scenarios.
Limitations and Future Work
The most significant limitation is the reliance on a directional prior. The model currently needs a frequency-based "cheat sheet" to know which way a relationship flows. The authors suggest that future work could replace this with a more principled approach, such as using natural language embeddings (word2vec) or a small subset of images with unlocalized triplet labels to disambiguate directionality.
Additionally, the model's performance is capped by the quality of the initial object detector; if the Faster R-CNN misses an object, the GNN has no way to "explain" a relationship involving it.
Summary updated