From a Social Cognitive Perspective: Context-Aware Visual Social Relationship Recognition

Shiwei Wu, Chao Zhang, Joya Chen, Tong Xu, Likang Wu, Qimeng Wang, Yan Gao, Yao Hu, Enhong Chen

TL;DR

ConSoR (Contextual Social Relationships) is a novel framework that recognizes social relationships in images by mimicking human social cognition. By leveraging a lightweight adapter on top of frozen CLIP and generating descriptive "Social Prompts," the model captures subtle but decisive visual cues—like wedding rings or intimate stares—achieving a massive 12.2% improvement over previous state-of-the-art methods.

What Problem Does This Paper Address?

Identifying the relationship between people in a photo (e.g., are they colleagues, a couple, or just friends?) is easy for humans but incredibly difficult for AI. Traditional computer vision approaches usually rely on "detect-and-classify" pipelines: they detect people and objects (like chairs or tables) and try to guess the relationship based on co-occurrence.

However, these methods suffer from three major flaws:

  1. Missing Subtle Cues: Standard object detectors often ignore socially significant items like wedding rings or "intimate stares" because they aren't part of standard datasets like COCO.
  2. Ignoring Social Logic: They fail to model properties like transitivity (e.g., if Person A is the child of Person B, and Person B is the partner of Person C, Person A is likely the child of Person C).
  3. The Semantic Gap: There is a huge leap between raw pixels and high-level social concepts that simple classification heads struggle to bridge.

Methods

The authors introduce ConSoR, which approaches the problem from a social cognitive perspective using three key components:

  • Multi-modal Side Adapter Tuning (MSAT): Instead of fully fine-tuning a massive model like CLIP (which leads to overfitting on small social datasets) or using it zero-shot (which has a large domain gap), they attach a lightweight "side adapter." This adapter is parameter-shared between the vision and text branches, ensuring that social concepts are learned in a semantically aligned space.
  • Contextual Interpersonal Reasoning (CIR): This module performs three types of reasoning. It uses self-attention to model relationships between all people in a scene (capturing transitivity), cross-attention to find specific "social-decisive" patches in the image relative to a specific pair of people, and global fusion to incorporate the overall scene context.
  • Descriptive Social Prompts: Instead of training the model to predict a simple one-hot label (e.g., "Category 3"), they construct rich, descriptive sentences. They use CLIP to select the most relevant "visual-vocabs" (Scene, Attribute, Object, and Emotion) for an image and build a prompt like: "In this photo, the social relation is Couple. The photo is taken in a church... there are wedding hairpins... the emotion is joy." The model then uses vision-language contrasting to match the image to the most accurate descriptive prompt.

Datasets

The model was evaluated on two primary benchmarks for social relationship recognition:

  • PISC (People-in-Social-Context): A hierarchical dataset featuring 3 coarse categories (Intimate, Non-Intimate, No Relation) and 6 fine-grained categories (Friend, Family, Couple, Professional, Commercial, No Relation).
  • PIPA (People-in-Photo-Album): A large-scale dataset with 5 broad domains and 16 fine-grained social relations.

Key Insights and Ideas

  • Language as a "Social Lens": The most striking idea is using descriptive language to guide visual attention. By forcing the model to contrast the image against detailed descriptions of scenes and emotions, the model "learns" to look for the specific visual evidence that justifies a social label.
  • Transitivity is a Powerful Signal: The results show that modeling the "social network" within a single image (how everyone relates to everyone else) significantly clears up ambiguity for specific pairs.
  • Efficiency via Side-Tuning: The authors found that a shared side-adapter is more effective than unimodal adapters. It allows the model to inherit CLIP’s vast knowledge while adapting to the niche "vocabulary" of social interactions with very few trainable parameters.

Key Results

ConSoR set a new benchmark for the field with significant quantitative gains:

  • PISC-Fine: Achieved 85.8% mAP, a staggering 12.2% absolute increase over the previous best method (PRM).
  • PIPA-Fine: Achieved 76.4% Accuracy, a 9.8% improvement over previous SOTA.
  • Parameter Efficiency: The MSAT approach reduced the number of trainable parameters from 157M (in a standard fine-tuning setup) to just 20M, while simultaneously reducing GPU memory usage by nearly 40%.
  • Qualitative Success: Visualization shows the model successfully attending to "non-object" cues like microphones in an interview or the presence of a child to distinguish a "Couple" from "Friends."

Limitations and Future Work

The authors acknowledge that while ConSoR is powerful, it still struggles with ambiguous annotations inherent in social datasets (where even humans might disagree on a relationship).

Future directions suggested include:

  • Extending the framework to video-based social recognition, where temporal dynamics (like body language over time) could provide even richer cues.
  • Exploring more complex social reasoning beyond the current three-module CIR.
  • Addressing the "long-tail" problem where certain rare social relationships are underrepresented in training data.

Summary updated

BibTeX
@article{wu2025from,
  author = {Shiwei Wu and Chao Zhang and Joya Chen and Tong Xu and Likang Wu and Qimeng Wang and Yan Gao and Yao Hu and Enhong Chen},
  title = {{From a Social Cognitive Perspective: Context-Aware Visual Social Relationship Recognition}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4i5WYXRGWK},
}
Figure