SGEITL: Scene Graph Enhanced Image-Text Learning for Visual Commonsense Reasoning

Zhecan Wang, Haoxuan You, Liunian Harold Li, Alireza Zareian, Suji Park, Yiqing Liang, Kai-Wei Chang, Shih-Fu Chang

Introduction

Visual Commonsense Reasoning (VCR) represents a significant challenge in computer vision, requiring models to move beyond simple object recognition to understand complex interactions and causal relationships. Most current Vision-and-Language (VL) models treat images as a "bag of objects," a flat collection of features that ignores the inherent structural and relational context of a scene.

Comparison between previous multimodal Transformers and the proposed SGEITL framework.

The SGEITL (Scene Graph Enhanced Image-Text Learning) framework addresses this by incorporating structured scene graphs into multimodal Transformers. It targets three primary gaps in existing research: the neglect of structural hierarchy in standard attention mechanisms, inefficient random masking during pre-training, and the domain mismatch between generic scene graph datasets and the high-level semantic requirements of VCR.

The SGEITL Framework

SGEITL introduces a sophisticated pipeline designed to capture and utilize relational information effectively through three core components.

Detailed architecture of SGEITL, including scene graph generation, triplet-based masking, and the multihop graph transformer.

Multihop Graph Transformer

Unlike standard Transformers that allow global, unstructured attention, the Multihop Graph Transformer uses a graph distance matrix to regularize interactions. By employing learnable Rational Quadratic (RQ) kernels, the model weights attention based on the number of "hops" between nodes in the scene graph. This prioritizes local interactions (e.g., an object and its immediate predicate) while maintaining the capacity for long-range reasoning across the graph.

Scene-Graph-Aware Pre-training

To improve pre-training efficiency, SGEITL utilizes a triplet-based masking strategy (Masked Node Modeling). Instead of random masking, which might obscure an entire relationship, the model masks only one component of a (subject, predicate, object) triplet at a time. This forces the model to reconstruct the missing element using the remaining two components and the broader context, effectively teaching it the underlying logic of the scene.

Text-VSPNet: Domain-Specific Scene Graphs

To overcome the limitations of generic datasets like Visual Genome, the authors developed Text-VSPNet. This weakly-supervised Scene Graph Generator (SGG) is trained using "pseudo-ground-truth" labels extracted from VCR questions and answers via a semantic parser. This ensures the generated scene graphs are semantically relevant to the specific reasoning tasks at hand.

Key Results and Insights

SGEITL achieves state-of-the-art performance on the VCR benchmark. When integrated into a VL-BERT baseline, it provided an average boost of 2.1% across all VCR sub-tasks. On the official leaderboard, the model reached 76.0% (Q2A), 78.0% (QA2R), and 59.6% (Q2AR).

Beyond VCR, the framework demonstrated strong generalization capabilities, improving performance on GQA (+1.62%) and SNLI-VE (+1.25%) without task-specific tuning. Ablation studies further confirmed that the Rational Quadratic kernel provides a superior, smoother prior for multi-hop reasoning compared to standard Gaussian kernels.

Conclusion

SGEITL demonstrates that moving from a "bag of objects" to a structured scene graph representation is crucial for advanced visual reasoning. By combining multihop graph attention with structure-aware pre-training and text-informed scene graph generation, the framework sets a new standard for visual commonsense reasoning tasks. Future work will focus on scaling these methods to larger datasets and exploring more complex graph structures.

Summary updated

BibTeX
@inproceedings{wang2022sgeitl,
  author = {Zhecan Wang and Haoxuan You and Liunian Harold Li and Alireza Zareian and Suji Park and Yiqing Liang and Kai-Wei Chang and Shih-Fu Chang},
  title = {{SGEITL: Scene Graph Enhanced Image-Text Learning for Visual Commonsense Reasoning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20536},
}
Figure