Introduction
Scene Graph Generation (SGG) is a critical task in computer vision that involves transforming an image into a structured representation of objects and their interactions. Traditional SGG models have been constrained by a "closed-set" assumption, limited to a small, predefined vocabulary of objects and relations. The OvSGTR (Open-vocabulary Scene Graph TRansformer) framework introduces a paradigm shift, enabling fully open-vocabulary SGG that recognizes novel objects and, crucially, novel relationships.
The Open-Vocabulary Challenge
Historically, SGG models have been trained on datasets like Visual Genome, which contains a fixed set of 150 object and 50 relation categories. When these models encounter unseen entities or interactions—such as a "unicycle" or the action "juggling"—they typically fail or misclassify them. While Open-Vocabulary Detection (OvD) has made strides in identifying novel objects, the "Open-Vocabulary Relation" (OvR) problem remains difficult because relations are abstract and lack explicit spatial boundaries.
As shown in Figure 1, the field has evolved from standard closed-set SGG to models that can handle novel objects (OvD-SGG) or novel relationships (OvR-SGG). OvSGTR targets the most challenging setting: OvD+R-SGG, where both objects and relationships can be outside the training vocabulary.
Methodology: The OvSGTR Framework
OvSGTR reformulates SGG as a vision-language alignment task. Instead of treating relationship detection as a simple classification problem, the model learns to map visual features into a shared semantic space with text embeddings.
The architecture, detailed in Figure 2, consists of several key components:
- Transformer-based Backbone: It utilizes a DETR-like architecture with a frozen Swin Transformer for visual feature extraction and a frozen BERT for text encoding.
- Visual-Concept Alignment: The model aligns visual regions (nodes) and the spatial context between them (edges) with their corresponding text descriptions (prototypes).
- Weakly-Supervised Pre-training: To scale the vocabulary, the authors leverage image-caption data (COCO, Flickr30k, SBU). By parsing captions into (subject, predicate, object) triplets, the model learns thousands of relationships without manual SGG labeling.
- Knowledge Retention: To prevent "catastrophic forgetting" during fine-tuning on specific benchmarks, a teacher-student distillation strategy is employed. This ensures the model retains the broad knowledge acquired during pre-training.
Key Results and Insights
OvSGTR demonstrates significant improvements across various benchmarks:
- State-of-the-Art Performance: On the standard VG150 benchmark (Closed-set), it achieves a Recall@50 of 35.8%, outperforming established models like MOTIFS and VCTREE.
- Superior Generalization: In the most challenging OvD+R-SGG (fully open) setting, OvSGTR achieved a Recall@50 of 13.53%, more than doubling the performance of the previous state-of-the-art (VS³, which scored 5.88%).
- Efficiency: Despite its power, the model is relatively lightweight, with only 41M trainable parameters and an inference time of 0.13s per image.
Conclusion and Future Work
By treating relations as the "glue" of a scene and leveraging the rich semantic information in image captions, OvSGTR breaks the boundaries of traditional scene graph generation. While the reliance on language parsers introduces some noise, the framework's ability to generalize to unseen interactions marks a significant step toward more robust visual understanding. Future work aims to integrate Large Language Models (LLMs) to further refine the quality of extracted triplets and mitigate hallucinations.
Summary updated