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

Referring Relationships

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

Abstract

Standard object detectors often struggle with disambiguation in complex scenes. This paper introduces the task of referring relationships, where a model localizes two entities based on a structured triplet (e.g., <person - kicking - ball>). By modeling predicates as iterative "attention shifts" between subjects and objects, the proposed Symmetric Stacked Attention Shifting (SSAS) model effectively disambiguates identical-looking entities and enables zero-shot localization of unseen object categories.

1. Introduction

Object detection has advanced significantly, yet the "which one?" problem remains a challenge. In a crowded scene, such as a soccer match, identifying a generic "person" is trivial, but identifying the specific "person kicking the ball" versus the "person guarding the goal" requires understanding relational context.

While referring expression comprehension uses natural language (e.g., "the guy in the red shirt"), it often conflates vision challenges with linguistic complexities. This work simplifies the input to a structured <subject - predicate - object> triplet to isolate the visual reasoning task. The core challenge is the cyclic dependency: finding the object helps locate the subject, and vice versa.

Input triplets and corresponding output localizations for different relationships in the same scene.

2. Methodology: Symmetric Stacked Attention Shifting (SSAS)

The authors propose a model called Symmetric Stacked Attention Shifting (SSAS). The core innovation is treating predicates not as static visual features, but as spatial and semantic shift operators. The model implements this through several key stages:

  • Initial Grounding: The model generates rough attention maps for the subject and object independently based on their categories.
  • Predicate Shift Modules: Inspired by psychological "moving spotlight" theories, these modules use the predicate to shift attention. For example, in <person - left of - chair>, the "left of" operator takes the person's location and shifts the search area to the right to find the chair.
  • Iterative Message Passing: The model refines localizations by passing "messages" back and forth. The subject's estimated location informs the object's location, which then refines the subject's location in a continuous loop.
  • Convolutional Implementation: These shifts are implemented as learned convolutions, allowing the model to capture complex, non-spatial relationships like "wearing" (shifting from a body to feet for "shoes").
The SSAS architecture illustrating the iterative attention shifting process between subject and object.

3. Datasets and Evaluation

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

  • CLEVR: A synthetic dataset of geometric shapes used to test pure spatial reasoning without real-world noise.
  • VRD (Visual Relationship Detection): A real-world dataset with 100 object and 70 predicate categories, testing performance with limited data.
  • Visual Genome: A massive real-world dataset (100k images) where over 60% of relationships involve ambiguous entities, providing a large-scale testbed for disambiguation.

4. Key Results and Insights

SSAS consistently outperformed state-of-the-art visual relationship models and spatial-only baselines. On the CLEVR dataset, it achieved a 0.778 Mean IoU, significantly higher than the 0.691 of co-occurrence-based models. Key insights include:

  • Predicates as Operators: Treating predicates as functions that transform attention maps bypasses the "appearance variance" problem (e.g., "carrying" looks different depending on the object being carried).
  • Zero-Shot Localization: Because the model learns how predicates link entities, it can localize "unseen" categories. If the model understands "kicking" and knows where the person is, it can find the "ball" even if it was never trained on that specific object category.
  • Interpretability: Visualizing the learned shifts reveals that the model intuitively picks up on dataset biases, such as learning that certain actions typically occur in specific areas of the frame due to standard photography practices.

5. Conclusion and Future Work

Referring relationships provide a powerful framework for scene understanding by leveraging mutual constraints between entities. While the SSAS model shows high precision, performance tends to saturate after approximately three iterations. Future work involves addressing failures in cases of extremely close, overlapping entities and re-integrating this structured "shift" logic back into full natural language referring expression models.

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