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

Visual Social Relationship Recognition

Junnan Li, Yongkang Wong, Qi Zhao, Mohan S. KankanhalliIJCV 2018 · DOI

TL;DR

This paper introduces a "Dual-Glance" model for recognizing social relationships between people in images, which uses both focused attention on individuals and broader contextual cues. To address the inherent ambiguity in human annotations of social relationships, they also propose an "Adaptive Focal Loss" function that learns from these nuances, leading to state-of-the-art performance.

What Problem Does This Paper Address?

Understanding social relationships is crucial for building more intelligent AI systems that can interact with humans in a socially aware manner. While humans can easily infer relationships like "friends," "family," or "colleagues" from images, this remains a significant challenge for computers. Existing methods often struggle with the wide variations in visual appearance, poses, and occlusions in images, and critically, they tend to ignore the inherent ambiguity present in human annotations of social relationships. This ambiguity arises because different people might interpret the same visual cues differently, leading to disagreements even among expert annotators.

Methods

The core of the proposed solution is the Dual-Glance model. It operates in two stages:

  • First Glance: This module focuses directly on the pair of individuals in question. It uses cropped images of each person and their combined region, processed by shared CNNs, along with geometric features of their bounding boxes. This provides an initial prediction of the relationship.
  • Second Glance (Attentive R-CNN): This module leverages contextual information from the surrounding image. It uses a Region Proposal Network (RPN) to identify potential contextual regions. Crucially, an attention mechanism is employed to selectively focus on the most informative contextual regions for predicting the relationship. This attention is guided by both the "top-down" signal from the first glance (semantic information about the person pair) and "bottom-up" signals from the local image regions. The scores from these contextual regions are then aggregated, weighted by their attention scores.

To handle the ambiguity in annotations, the authors propose an Adaptive Focal Loss. Unlike standard cross-entropy loss that uses hard labels (majority vote), this loss function treats annotations as "soft labels" (a distribution reflecting the agreement among annotators). It adapts the focal loss mechanism to down-weight easy examples and focus on harder ones, while also allowing all annotations to contribute to learning, thus better utilizing the nuanced information from ambiguous labels.

Datasets

The authors introduce a new, large-scale dataset called People in Social Context (PISC). It comprises 23,311 images with 79,244 annotated person pairs and their social relationships. The dataset also includes 66 annotated occupation categories. They also evaluate their method on the Social Domain and Relation (SDR) dataset.

Key Insights and Ideas

  • Context is King (but so is focus): The Dual-Glance model highlights that both direct observation of individuals and the surrounding context are vital for accurate social relationship recognition.
  • Ambiguity is Information: Instead of discarding ambiguous annotations, the Adaptive Focal Loss demonstrates that this uncertainty can be a valuable signal for improving model performance, especially in tasks with subjective interpretations.
  • Attention to Detail (and Context): The attention mechanism in the second glance module is crucial for filtering out irrelevant contextual information and focusing on what truly matters for relationship prediction.
  • Beyond Faces: While facial features are important, the model shows that broader visual cues (clothing, environment, objects) are also critical for inferring relationships.

Key Results

The proposed Dual-Glance model with Adaptive Focal Loss achieves state-of-the-art performance on the PISC dataset.

  • PISC Dataset: The Dual-Glance model outperforms previous methods by a significant margin, achieving +5.2% improvement in domain recognition and +6.5% in relationship recognition compared to the first-glance model.
  • Adaptive Focal Loss: Using the Adaptive Focal Loss with ambiguous training data leads to a substantial improvement of +4.4% mAP over cross-entropy loss with the Dual-Glance model.
  • SDR Dataset: The Dual-Glance model also shows superior performance on the SDR dataset for domain recognition compared to existing methods.
  • Qualitative Results: The paper includes visualizations showing how the Dual-Glance model correctly identifies relationships where the first-glance model fails, often by leveraging specific contextual regions.

Limitations and Future Work

  • Annotation Ambiguity: While the Adaptive Focal Loss addresses annotation ambiguity, the paper acknowledges that the inherent subjectivity of social relationships means perfect agreement is unlikely. Future work could explore more sophisticated ways to model this subjectivity.
  • Person Detection Noise: The model shows robustness to noise from automatic person detectors, but a slight performance drop is observed. Future work could further improve robustness to imperfect person detection.
  • Dataset Bias: The PISC dataset, while large, might still have biases. Future work could involve curating even more diverse datasets.
  • Broader Applications: The authors suggest that the Adaptive Focal Loss could be useful in other tasks with subjective labels, such as sentiment classification or aesthetic prediction.

Summary updated

BibTeX
@article{li2018visual,
  author = {Junnan Li and Yongkang Wong and Qi Zhao and Mohan S. Kankanhalli},
  title = {{Visual Social Relationship Recognition}},
  journal = {Int. J. Comput. Vis.},
  year = {2018},
  doi = {10.1007/s11263-020-01295-1},
}
Figure