Multi-Modal Graph Neural Network for Joint Reasoning on Vision and Scene Text

Difei Gao, Ke Li, Ruiping Wang, Shiguang Shan, Xilin Chen

Abstract

Visual Question Answering (VQA) in real-world scenes often requires reading and interpreting text. Standard models frequently fail when encountering out-of-vocabulary words or numerical data. We introduce the Multi-Modal Graph Neural Network (MM-GNN), a framework that represents images as a complex graph comprising visual, semantic, and numeric sub-graphs. By utilizing specialized message-passing aggregators, MM-GNN enables joint reasoning across modalities, significantly improving performance on scene text VQA tasks.

Introduction

While standard VQA models excel at object recognition, Scene Text VQA presents unique hurdles. Challenges include interpreting rare brand names, understanding the context provided by the "physical carrier" of the text (e.g., a label on a bottle), and performing numeric reasoning on prices or measurements. Existing approaches often treat OCR tokens as isolated strings, ignoring their visual and numerical properties. MM-GNN addresses this by explicitly modeling the relationships between visual appearance, semantic meaning, and numeric value.

Conceptual overview of how different modalities (visual, semantic, and numeric) perceive an image, illustrating the need for integrated reasoning.

Methodology

The MM-GNN architecture transitions from flat feature vectors to a structured, multi-modal graph representation.

Triple-Graph Construction

The model constructs three fully connected sub-graphs for each image:

  1. Visual Graph ($G_v$): Nodes represent detected objects and text regions, initialized with Faster R-CNN features.
  2. Semantic Graph ($G_s$): Nodes represent the linguistic meaning of OCR tokens, initialized using fastText embeddings.
  3. Numeric Graph ($G_n$): Nodes represent the values of numbers found in the text, using specialized encoders for magnitude and periodic data (like time).

Multi-Modal Aggregators

To facilitate inter-modal communication, three attention-based aggregators guide message passing:

  • Visual-Semantic Aggregator: Links words to their physical carriers (e.g., identifying "STP" as a brand because it appears on a bottle).
  • Semantic-Semantic Aggregator: Performs intra-modal reasoning to clarify ambiguous words using surrounding text.
  • Semantic-Numeric Aggregator: Uses semantic context to enable numeric comparisons, such as identifying the "largest" value in a set.

Answer Prediction

The final node features are processed by an answer prediction module equipped with a copy mechanism. This allows the model to either select an answer from a fixed vocabulary or directly "copy" an OCR token from the image.

Evaluation and Results

MM-GNN was evaluated on the TextVQA and ST-VQA benchmarks. At the time of publication, it achieved state-of-the-art results:

  • TextVQA: Reached 31.44% accuracy, a significant improvement over previous baselines like BERT+MFH (28.96%).
  • Ablation Studies: The full MM-GNN outperformed a "No-GNN" baseline by 4% overall and by over 8% on OCR-specific questions, validating the effectiveness of graph-based reasoning.

Key Insights

A critical finding was that linking text to its visual region (the Visual-Semantic link) provides the most substantial performance boost. Furthermore, treating numbers as values rather than strings is essential for mathematical reasoning. The use of concatenation during GNN updates, rather than simple summation, preserved distinct modal information, leading to better interpretability and sharper attention maps.

Conclusion

MM-GNN demonstrates that structured multi-modal reasoning is vital for tasks involving scene text. While the model remains dependent on the quality of upstream OCR engines, its ability to integrate visual context and numeric values sets a new standard for complex VQA tasks. Future work may involve incorporating external knowledge bases to further resolve linguistic ambiguities.

Summary updated

BibTeX
@inproceedings{gao2020multi,
  author = {Difei Gao and Ke Li and Ruiping Wang and Shiguang Shan and Xilin Chen},
  title = {{Multi-Modal Graph Neural Network for Joint Reasoning on Vision and Scene Text}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01276},
}
Figure