Introduction
ScenarioCLIP introduces a hierarchical framework designed to advance vision-language models (VLMs) beyond simple object recognition toward a sophisticated understanding of complex, multi-object scenes and their relational structures. While standard models excel at identifying individual entities, they often fail to capture the semantic "glue" that defines how these entities interact.
The Compositional Understanding Gap
Standard Contrastive Language-Image Pre-training (CLIP) models suffer from a "bag-of-objects" limitation. While highly effective at identifying a "dog" or a "frisbee," they struggle with compositional understanding—the ability to distinguish between "a dog chasing a frisbee" and "a dog sitting next to a frisbee." This lack of relational modeling prevents models from truly understanding natural scenes. Furthermore, the field has lacked large-scale, diverse datasets with the grounded relational annotations (subject-predicate-object triplets) necessary to train more nuanced models.
The ScenarioCLIP Architecture
To address these challenges, ScenarioCLIP employs a multi-level architecture and a specialized training objective:
- Disentangled Encoders: The framework uses three dedicated encoders for each modality (image and text): Global (entire scene), Object (individual crops), and Relation (focused regions highlighting interactions).
- Relation-Focused Masking: Using the Segment Anything Model (SAM) and Radial Basis Function (RBF) masking, the model generates visual inputs that specifically highlight the interaction area between two objects.
- EMA-based Knowledge Distillation: An Exponential Moving Average (EMA) "teacher" model transfers high-level scene context to finer object and relation levels, ensuring local representations remain consistent with the global context.
- Contrastive Cross-Alignment: The model is trained using contrastive losses at all three levels simultaneously, matching specific object crops to names and relation-focused regions to semantic triplets.
The Action-Genome Dataset
A core contribution of this work is the Action-Genome Dataset, a massive corpus of approximately 615,805 images. It includes 740 action classes, 4,812 object classes, and 225,609 unique relation triplets, curated from five diverse sources including OpenPSG and SemanticKITTI.
The authors developed a robust three-stage pipeline to ensure high-quality annotations:
- Captioning: A VLM Jury System generates initial scene descriptions.
- Grounding: GroundingDINO identifies precise bounding boxes for mentioned entities.
- Segmentation: SAM generates masks for fine-grained localization.
Key Results and Insights
ScenarioCLIP consistently outperforms strong baselines like CLIP and PyramidCLIP across multiple benchmarks:
- Zero-Shot Retrieval: On the Action-Genome Dataset, ScenarioCLIP achieved a 14.19% improvement in Top-1 accuracy for object retrieval and a 3.13% gain for relation retrieval over PyramidCLIP.
- Linear Probing: The model demonstrated superior class separation, improving accuracy by nearly 4% across actions, objects, and relations when the backbone was frozen.
- Qualitative Focus: Grad-CAM visualizations confirm that ScenarioCLIP focuses on the interaction itself (e.g., the specific contact point of a hand holding an object) rather than just the objects or background.
Conclusion and Future Work
By treating relations as first-class citizens, ScenarioCLIP avoids "representation collapse," where different interactions between the same objects appear identical in embedding space. While the current model primarily treats video frames as static scenes, future work will explore modeling temporal dynamics. Additionally, while the multi-encoder approach increases computational overhead, the gains in relational awareness provide a significant step toward true natural scene analysis.
The code and dataset are available at: https://github.com/scenario-clip/ScenarioCLIP
Summary updated