Introduction
Scene Graph Generation (SGG) is a fundamental computer vision task that aims to transform an image into a structured representation of objects and their semantic relationships, typically represented as triplets like [subject] - [predicate] - [object]. While traditional SGG models have made significant strides, they are often constrained by a "closed-vocabulary" setting, meaning they can only recognize a predefined set of relationships encountered during training.
Open-Vocabulary SGG (OV-SGG) seeks to overcome this by leveraging Vision-Language Models (VLMs) like CLIP to align visual features with arbitrary text descriptions. However, standard OV-SGG methods often rely on simplistic, global prompts (e.g., "a person riding a bicycle") that fail to capture the nuanced "micro-interactions" defining a relationship. Furthermore, the cubic growth of possible subject-predicate-object combinations—the "triplet explosion"—poses a significant scalability challenge.
The RAHP Framework
To address these challenges, researchers from ShanghaiTech University introduced Relation-Aware Hierarchical Prompting (RAHP). This framework shifts the focus from global scene descriptions to fine-grained, region-specific interactions.
The core of RAHP lies in its hierarchical approach to prompt generation:
- Entity-aware Prompts: To mitigate the triplet explosion, RAHP clusters over 150 object categories into broader "super-entities" (e.g., grouping "male" and "female" under "human"). This reduces the search space while maintaining essential contextual information for relationship prediction.
- Region-aware Prompts: This component utilizes Large Language Models (LLMs), specifically GPT-3.5, to decompose complex predicates into specific physical interactions. For instance, the relationship "sitting on" is broken down into descriptions like "hips and thighs rest on the seat" or "back is supported by the backrest." This allows the model to ground its predictions in localized visual evidence.
- VLM-guided Dynamic Selection: Since not all generated descriptions are applicable to every image, RAHP employs a dynamic selection mechanism. It uses the VLM to compare visual features against the bank of region-aware prompts, filtering out irrelevant noise and focusing on the most pertinent descriptions.
- Hierarchical Prediction Aggregation: Final predictions are made by combining similarity scores from both the entity level (broad context) and the region level (fine-grained details), ensuring a robust and comprehensive understanding of the scene.
Experimental Evaluation
The RAHP framework was rigorously evaluated on two benchmark datasets: Visual Genome (VG150) and Open Images v6 (OIV6). The primary focus was on the model's ability to generalize to "novel" relationships—predicates that were not present in the supervised training set.
Key Results
RAHP demonstrated state-of-the-art performance across multiple tasks, including Predicate Classification (PredCLS) and Scene Graph Detection (SGDet).
Key findings include:
- Superior Generalization: On Visual Genome, RAHP improved the Novel Mean Recall (mR@100) by 7.76 points over previous leading methods like PGSG.
- Scalability on Large Datasets: On Open Images v6, the model showed a dramatic improvement, achieving a 21.56-point gain in total Recall@100 and a 25.26-point gain in novel Mean Recall@100 compared to the baseline.
- Architectural Flexibility: RAHP is designed as a "plug-and-play" module, successfully enhancing the performance of various underlying SGG architectures such as PE-NET and SGTR.
Conclusion and Future Directions
The success of RAHP underscores a critical insight: visual relationships are inherently local. By leveraging LLMs as "knowledge distillers" to provide fine-grained visual cues, models can better align pixels with semantic concepts.
While RAHP significantly advances OV-SGG, limitations remain. The current entity clustering may occasionally obscure fine-grained distinctions, and the diversity of prompts is limited by the LLM's output. Future research will explore more sophisticated clustering techniques and the integration of multi-modal LLMs to generate even more grounded, image-specific descriptions.
Summary updated