TL;DR
Scene Graph Generation (SGG) often struggles when visual cues are ambiguous or missing. This paper introduces KeMRA, a model that uses accompanying textual descriptions to "fill in the blanks" of an image by aligning visual objects and relationships with textual knowledge triplets using a cross-modal attention mechanism.
The Challenge of Visual Ambiguity in SGG
Scene Graph Generation aims to transform an image into a structured graph of (subject, predicate, object) triplets—for example, (man, holding, trophy). However, most SGG models rely solely on pixel data. In real-world conditions where images might be poorly lit, occluded, or depict subtle actions, visual-only models often fail to identify the correct relationship.
The authors observe that in many contexts, such as social media, images are accompanied by text. While this text provides vital context (e.g., a caption stating "Kobe Bryant wins his NBA MVP" clarifies that the man is "holding" the trophy), effectively integrating this data is difficult. Simple concatenation of text and image features often leads to "semantic disparity," where the model fails to map specific words to their visual counterparts.
Methodology: The KeMRA Model
The proposed KeMRA (Knowledge-enhanced Scene Graph Generation with Multimodal Relation Alignment) model addresses this by explicitly aligning textual and visual information at multiple levels.
The architecture follows a multi-stage pipeline:
- Feature Representation: Visual features are extracted using a pre-trained Faster R-CNN, while textual representations are derived from BERT, specifically targeting "knowledge triplets" (entity, relation, entity) extracted from the text.
- Cross-modal Object-level Alignment: A Cross-modal Attention (CMA) module ensures the model maps specific words to visual objects, creating "textual-guided" visual representations.
- Visual Context Extraction: The model uses a Stacked Motif Network backbone to generate initial contextualized visual representations of the scene.
- Relation-level Alignment: This core innovation uses a second CMA module to align visual triplets with textual knowledge triplets. This allows the model to "complete" missing visual context by leveraging explicit relations described in the text.
- Fusion and Prediction: Finally, aligned multimodal features are concatenated and passed through a Multi-Layer Perceptron (MLP) to classify the predicate between object pairs.
Experimental Setup and Results
The researchers evaluated KeMRA on the MNRE-SG dataset, an extension of the Multimodal Neural Relation Extraction (MNRE) dataset. The authors manually annotated 5,724 images and 9,741 sentences with scene graph ground truth.
Performance was measured using mean Recall@20 (mR@20) across two subtasks:
- Predicate Classification (Predcls): Predicting relationships given ground truth boxes and labels.
- Scene Graph Classification (SGcls): Predicting both labels and relationships given ground truth boxes.
As shown in the results, KeMRA significantly outperforms traditional SGG models like Motifs and VCTree. Notably, it achieves a ~10-point improvement over the Motifs baseline in the SGcls task. Ablation studies further confirmed that the combination of CMA and BERT features is critical for this performance boost, proving that textual knowledge is a powerful supplement for resolving visual ambiguity.
Key Insights
- Text as a Semantic Bridge: Textual triplets act as semantic anchors. If a visual action like "holding" is unclear, the textual triplet
(Kobe Bryant, awarded, NBA MVP)guides the model toward the correct predicate. - Alignment is Crucial: The failure of simple concatenation highlights that alignment—ensuring the model understands "Kobe" in text corresponds to the "man" in the bounding box—is the essential step for multimodal SGG.
- Two-Stage Robustness: By aligning at both the object and relation levels, the model builds a more comprehensive understanding of the scene than single-level alignment would allow.
Limitations and Future Work
While promising, the KeMRA approach has dependencies that warrant further investigation:
- Text Availability: The model's performance boost depends on paired, descriptive text, which may not be available in all SGG benchmarks (e.g., Visual Genome).
- Extraction Pipeline: The reliance on a pre-trained information extraction model for textual triplets introduces a potential point of failure if the text processing produces noisy data.
- Dataset Scale: Future research should focus on scaling this approach to larger, more diverse datasets beyond the current 5.7k annotated images.
Summary updated