Abstract
Scene Graph Generation (SGG) is a critical task for bridging the gap between computer vision and high-level reasoning. However, current SGG models are plagued by a "generic predicate bias," where models default to frequent but uninformative labels (e.g., "on," "near") instead of descriptive ones (e.g., "walking on," "parked on"). This paper introduces Retrieval-Augmented Scene Graph Generation (RA-SGG), a framework that treats SGG as a multi-label classification problem with partial annotations. By retrieving semantically similar relations from a curated memory bank, RA-SGG discovers latent fine-grained labels. Our approach incorporates reliable instance selection and unbiased augmentation via inverse propensity scoring to mitigate long-tail distribution issues. Experimental results on Visual Genome and GQA demonstrate that RA-SGG achieves state-of-the-art performance, significantly enhancing the richness and accuracy of generated scene graphs.
Introduction
The goal of Scene Graph Generation (SGG) is to parse an image into a structured representation consisting of objects and their pairwise relationships. Despite significant progress, two major challenges persist: the long-tailed distribution of predicates and semantic ambiguity. In most datasets, a few "head" predicates dominate the annotations, while descriptive "tail" predicates are underrepresented. Furthermore, predicates often overlap; for instance, a "man on a street" could simultaneously be "walking in" that street.
Standard SGG models typically employ a single-label classification paradigm, which forces a competition between general and specific labels. This often leads the model to favor the most frequent, generic predicates to minimize training loss, resulting in "boring" scene graphs that lack the nuance required for downstream tasks like visual question answering or image captioning.
The RA-SGG Framework
To address these issues, we propose the Retrieval-Augmented Scene Graph Generation (RA-SGG) framework. Instead of adhering to the traditional single-label assumption, we treat existing ground-truth labels as partial annotations and seek to discover additional valid latent labels through a retrieval-based mechanism.
Multi-Label Discovery and Retrieval
The core of RA-SGG is a Relation Memory Bank that stores relation embeddings from a pre-trained model. During training, for any given query relation, the Retrieval Module identifies the $K$ nearest neighbors in the visual semantic space. These neighbors provide a set of candidate labels that might be applicable to the query.
Reliable Instance Selection and Unbiased Augmentation
Not all relations benefit from multi-labeling. We introduce a Reliable Multi-labeled Instance Selection step that calculates a "label inconsistency score." If the retrieved neighbors' labels differ significantly from the ground truth, the instance is flagged as potentially multi-labeled. To prevent the model from simply reinforcing the head-class bias, we use Inverse Propensity Scoring (IPS) to sample retrieved labels, giving higher weight to rare, fine-grained predicates.
Multi-Prototype Learning
The model is trained using a multi-prototype objective. The relation embedding is pulled toward both the original ground-truth prototype and the newly discovered fine-grained prototypes. This allows the model to learn that multiple predicates can be simultaneously valid for a single visual relationship.
Experimental Evaluation
We evaluated RA-SGG on the Visual Genome (VG) and GQA benchmarks. Our framework consistently outperformed existing state-of-the-art models across standard SGG tasks, including Predicate Classification (PredCls), Scene Graph Classification (SGCls), and Scene Graph Detection (SGDet).
On Visual Genome, RA-SGG achieved a performance boost of up to 3.6% in terms of F@K (the harmonic mean of Recall and Mean Recall). On the GQA dataset, the improvement was even more pronounced, reaching 5.9%. Crucially, the model showed significant gains in recognizing rare "tail" predicates such as "flying in," "reflected in," and "swimming in," which are typically ignored by vanilla models.
Ablation studies confirmed that the memory bank is highly efficient; storing only 8% of the training data is sufficient to achieve optimal performance gains.
Conclusion
RA-SGG represents a shift in SGG research by embracing the inherent semantic ambiguity of visual relationships. By moving from a single-label to a retrieval-augmented multi-label paradigm, the framework effectively discovers fine-grained information hidden within generic annotations. This approach not only mitigates the long-tail bias but also produces more informative and human-like scene graphs, paving the way for more sophisticated visual reasoning systems.
Summary updated