NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Referring Relationships

Ranjay Krishna, Ines Chami, Michael S. Bernstein, Li Fei-Fei

Abstract

This paper introduces the task of Referring Relationships, where a model must localize two entities in an image based on a structured relationship triplet (e.g., <person - kicking - ball>). By modeling predicates as "attention shifts" rather than static visual patterns, the authors developed an iterative model that uses the context of one entity to find the other. This approach significantly outperforms standard object detection and relationship baselines by effectively handling the cyclic dependencies inherent in visual relationships.

Introduction: The Challenge of Disambiguation

In computer vision, identifying a "person" is a largely solved problem, but identifying the correct person in a crowded scene remains a significant challenge. Traditional object detectors treat images as collections of independent objects, often failing to distinguish between multiple instances of the same category.

While "Referring Expression" tasks have attempted to solve this using natural language, these models often conflate linguistic errors with visual ones. This research simplifies the problem by using structured triplets: Subject-Predicate-Object.

The Referring Relationships task: localizing subject and object based on a triplet.

The core challenge is the cyclic dependency of relationships: it is often easier to find a small, non-distinct object (like a soccer ball) if you first find the person kicking it. Conversely, knowing where the ball is helps confirm which person is the "kicker." Furthermore, predicates like "carrying" look vastly different depending on the object involved, making traditional appearance-based models struggle with high variance.

Methods: Symmetric Stacked Attention Shifting (SSAS)

The authors propose a model called Symmetric Stacked Attention Shifting (SSAS). Its architecture relies on two main components:

  1. Attention Modules: These provide an initial "grounding" or guess for where the subject and object might be, based on their categories and image features extracted via a ResNet-50 CNN.
  2. Predicate Shift Modules: This is the paper's primary innovation. Instead of trying to classify what "kicking" looks like, the model treats the predicate as a spatial and semantic shift. If the model has a high-confidence guess for the "person," the "kicking" shift module moves that attention to the area where a "ball" is likely to be found.

The model is iterative, passing messages back and forth to refine localizations. In the first iteration, it finds the subject and object independently. In subsequent iterations, it uses the subject's location to shift attention toward the object, and vice versa, refining the results until they converge. Performance typically saturates around three iterations, suggesting this cyclic message passing is highly efficient.

Datasets and Evaluation

The model was evaluated on three distinct datasets to test different capabilities:

  • CLEVR: A synthetic dataset of geometric shapes used to test spatial reasoning (left, right, front, behind) without real-world noise.
  • VRD (Visual Relationship Detection): A real-world dataset with 100 object categories and 70 predicates, testing the model's ability to learn from sparse data.
  • Visual Genome: A massive real-world dataset where 61% of relationships involve ambiguous entities (multiple instances of the same class), serving as the primary benchmark for disambiguation at scale.

Key Insights

  • Predicates as Operations, Not Appearances: By modeling a predicate as a shift in attention, the model bypasses the "appearance variance" problem. It learns the logic of the relationship—for instance, that if a person is carrying something, that something is usually in their hands.
  • Zero-Shot Localization: Because the model learns the logic of the shift, it can find objects even if their category label is masked. For example, following a "wearing" shift from a person can localize an unknown object correctly.
  • Modularity and Interpretability: Shift modules can be stacked to traverse a "scene graph," effectively "walking" through the image via relationships. Unlike "black box" models, these shifts can be visualized as heatmaps, revealing intuitive biases like looking below a subject to find a "ridden" object.

Results and Limitations

The SSAS model outperformed all baselines across CLEVR, VRD, and Visual Genome. On CLEVR, it achieved a 0.32 Mean IoU gain over the baseline. Despite these gains, the model still faces challenges with fine-grained failures, such as when two instances of the same category perform the same action (e.g., two people both wearing skis). Additionally, dataset noise in Visual Genome sometimes leads to the model being penalized for correct predictions that were missing from the ground truth annotations.

Summary updated

BibTeX
@inproceedings{krishna2018referring,
  author = {Ranjay Krishna and Ines Chami and Michael S. Bernstein and Li Fei-Fei},
  title = {{Referring Relationships}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00718},
}
Figure