Deep Reasoning with Knowledge Graph for Social Relationship Understanding

Zhouxia Wang, Tianshui Chen, Jimmy S. J. Ren, Weihao Yu, Hui Cheng, Liang Lin

Introduction

Recognizing social relationships in images—distinguishing between "colleagues," "friends," or "family"—is a sophisticated task for computer vision. Unlike standard object detection, social relationships are often visually ambiguous; two people might appear in similar poses across vastly different contexts. This paper introduces the Graph Reasoning Model (GRM), a framework that leverages structured "common sense" knowledge to disambiguate these relationships by analyzing the semantic objects surrounding the individuals.

The Challenge of Context

Human perception relies heavily on contextual cues and prior knowledge. For instance, seeing two people near a laptop and a desk strongly suggests a professional relationship, whereas seeing them near a bed or a stove implies a family connection. Traditional computer vision models often treat the background as a generic set of pixels, failing to capture the structured semantic meaning of specific objects.

Figure 2: Semantic objects like 'tie' or 'bottle' act as contextual cues for 'professional' or 'family' relationships.

The authors argue that a model must explicitly understand that certain objects (e.g., a "tie") are statistically correlated with specific social roles (e.g., "professional").

Methods: The Graph Reasoning Model (GRM)

The GRM architecture moves beyond simple feature concatenation by performing explicit reasoning over a knowledge graph. The process involves three primary stages:

  1. Knowledge Graph Construction: A graph is built where nodes represent social relationships and semantic objects. Edges represent co-occurrence probabilities derived from training data, effectively encoding "common sense" into the model.
  2. Gated Graph Neural Network (GGNN): The model uses a GGNN to propagate messages across the graph. Nodes are initialized with visual features (extracted via Faster R-CNN for objects and a dedicated CNN for person pairs). As messages pass through the graph, the person-pair features are iteratively updated based on the detected objects in the scene.
  3. Graph Attention Mechanism: Recognizing that not all objects are equally informative (e.g., a "chair" is ubiquitous), the authors implemented an attention mechanism. This component adaptively weights object nodes, allowing the model to focus on discriminative cues like a "wedding cake" while ignoring irrelevant noise.
Figure 6: The GRM pipeline, showing feature extraction, graph propagation through GGNN layers, and the final label distribution.

Key Insights and Results

The core innovation of GRM is treating context as a collection of semantic entities rather than raw pixels. Ablation studies revealed that the attention mechanism is vital; without it, the inclusion of non-informative objects can actually degrade performance.

The model was evaluated on two major benchmarks:

  • PISC (People in Social Context): GRM achieved a 68.7% mAP on fine-level tasks, a 5.5% improvement over the previous state-of-the-art.
  • PIPA-Relation: The model reached 62.3% accuracy, outperforming competitors by 2.7%.

The most significant gains were observed in fine-grained categories, suggesting that while basic visual features can identify broad social groups, structured reasoning is necessary to distinguish subtle differences, such as "colleagues" versus "commercial" partners.

Limitations and Future Work

While powerful, the GRM is dependent on the accuracy of its underlying object detector. If a critical object (like a wedding ring) is missed, the reasoning chain is broken. Additionally, the knowledge graph is currently static, based on training set statistics. Future research may explore dynamic graphs that incorporate external linguistic knowledge bases to provide more robust and flexible "common sense" reasoning.

Summary updated

BibTeX
@inproceedings{wang2018deep,
  author = {Zhouxia Wang and Tianshui Chen and Jimmy S. J. Ren and Weihao Yu and Hui Cheng and Liang Lin},
  title = {{Deep Reasoning with Knowledge Graph for Social Relationship Understanding}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/142},
}
Figure