Heterogeneous Graph Learning for Visual Commonsense Reasoning

Weijiang Yu, Jingwen Zhou, Weihao Yu, Xiaodan Liang, Nong Xiao

TL;DR

The researchers propose Heterogeneous Graph Learning (HGL), a framework designed to bridge the semantic gap between vision and language for Visual Commonsense Reasoning (VCR). By moving beyond simple object-to-object relationships and instead building "heterogeneous" bridges between visual concepts and linguistic words, the model achieves state-of-the-art performance and provides more interpretable reasoning paths.

What Problem Does This Paper Address?

Visual Commonsense Reasoning (VCR) is a step beyond standard Visual Question Answering (VQA). It doesn't just ask "What is happening?" but also requires models to answer "Why is it happening?" and "What will happen next?" This requires solving three sub-tasks:

  1. Q→A: Predicting the correct answer.
  2. QA→R: Providing a convincing rationale for that answer.
  3. Q→AR: Solving both simultaneously.

The authors identify a major flaw in existing approaches: they often treat vision and language as separate silos. Some models use "homogeneous" graphs (linking objects to objects or words to words), which creates "information isolated islands." For example, a model might recognize a "person" and a "bottle" in an image, and the word "pours" in a sentence, but it struggles to align the visual entities with the functional action described in the text.

Comparison of homogeneous and heterogeneous graphs

As illustrated above, HGL aims to build the missing bridges between these domains, connecting visual nodes directly to linguistic nodes to form a cohesive, heterogeneous understanding of the scene.

Methods

The HGL framework consists of three primary components designed to integrate intra-graph (within one domain) and inter-graph (across domains) reasoning.

The Heterogeneous Graph Learning (HGL) framework architecture
  • Vision-to-Answer Heterogeneous Graph (VAHG): This module aligns visual objects from the image with candidate answer words. It uses an attention-based mechanism to calculate correlations between visual nodes and linguistic nodes, allowing information to flow adaptively between the two.
  • Question-to-Answer Heterogeneous Graph (QAHG): Similar to VAHG, this module aligns the question's vocabulary with the candidate answers to ensure semantic agreement between what is being asked and what is being proposed as a solution.
  • Contextual Voting Module (CVM): Standard object detectors (like Faster R-CNN) focus on local boxes, often missing the "big picture" (e.g., recognizing it's a "rainy day" or a "formal party"). CVM uses a global voting mechanism to replenish local object features with long-range scene context, providing a more holistic understanding of the environment.

The outputs of these modules are refined through a "guidance mechanism" and merged using a learned parser before being fed into a final classifier.

Datasets

The model was evaluated on the Visual Commonsense Reasoning (VCR) benchmark, a massive dataset containing:

  • 290,000 multiple-choice QA problems.
  • 110,000 movie scenes.
  • Complex language requirements (average answer length is >7.5 words; rationales are >16 words).

Key Insights and Ideas

  • Breaking the "Isolated Island" Effect: The core insight is that reasoning isn't just about understanding objects or understanding text independently—it's about the alignment between them. By creating edges between a visual "person" node and a linguistic "pours" node, the model can perform "functionality-based" inference.
  • Dual-Path Reasoning: By using both a primal (VAHG) and a dual (QAHG) module, the framework ensures that the answer is grounded in both the visual evidence and the linguistic context of the question.
  • Global vs. Local: The inclusion of the CVM highlights that commonsense often resides in the background or the "vibe" of a scene, which local bounding boxes typically ignore.

Key Results

HGL significantly outperformed the then-state-of-the-art baseline (R2C) across all VCR metrics:

  • Q→A Accuracy: Improved by 5.0% (reaching 70.1% on the test set).
  • QA→R Accuracy: Improved by 3.5% (reaching 70.8% on the test set).
  • Q→AR Accuracy: Improved by 5.8% (reaching 49.8% on the test set).

Qualitative results showed that the model could successfully "attend" to the right evidence. For instance, when asked why a person was angry, the VAHG correctly aligned the visual representation of the person's face with the linguistic concept of "witness" and "gritting teeth" in the rationale.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain open for exploration:

  • Dependency on Object Detectors: Like most VCR models of its era, HGL relies on pre-defined bounding boxes. If the detector misses an object, the graph reasoning cannot recover it.
  • Computational Complexity: Building and evolving heterogeneous graphs for every question-answer pair is computationally intensive compared to simple feed-forward transformers.
  • Interpretability Limits: While the graph weights provide some insight into "where the model is looking," they don't fully explain the logic of the commonsense jump (e.g., why a person in a courtroom is likely a lawyer).

The authors suggest that future work could involve even more complex graph structures or integrating external knowledge bases to further bolster the "commonsense" aspect of the reasoning.

Summary updated

BibTeX
@inproceedings{yu2019heterogeneous,
  author = {Weijiang Yu and Jingwen Zhou and Weihao Yu and Xiaodan Liang and Nong Xiao},
  title = {{Heterogeneous Graph Learning for Visual Commonsense Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure