Structured Multimodal Attentions for TextVQA

Chenyu Gao, Qi Zhu, Peng Wang, Hui Li, Yuliang Liu, Anton van den Hengel, Qi Wu

TL;DR

This paper introduces the Structured Multimodal Attention (SMA) model for TextVQA, a challenging task requiring models to understand text within images to answer questions. SMA tackles limitations in existing models by employing a novel graph attention mechanism to reason over complex relationships between objects and text, and a generative answering module. The authors also provide valuable human-annotated ground-truth OCR data for TextVQA to facilitate future research.

What Problem Does This Paper Address?

Traditional Visual Question Answering (VQA) models excel at understanding visual content but struggle when questions require reading and reasoning about text embedded within images. This is the domain of TextVQA. The core challenges are:

  1. Poor Text Reading (OCR): Existing models often fail to accurately detect and recognize text in natural scenes.
  2. Limited Textual-Visual Reasoning: Models lack the capacity to effectively integrate and reason over both visual elements and the recognized text.
  3. Answer Generation: Discriminative answering mechanisms, common in VQA, are insufficient for TextVQA where answers are often composed of OCR tokens.

Methods

The proposed Structured Multimodal Attention (SMA) model addresses these challenges through a three-module architecture:

  1. Question Self-Attention Module: This module breaks down the input question into six specialized components, each corresponding to different roles (e.g., object, text, object-object relation) within the image. These components generate attention weights that guide the subsequent reasoning process.
  2. Question Conditioned Graph Attention Module: This is the core of SMA. It constructs a "role-aware heterogeneous graph" where objects and text tokens are nodes, and relationships (object-object, object-text, text-text, text-object) are edges. A graph attention mechanism, guided by the question-specific features from the first module, reasons over this graph to infer the importance of different nodes and their relationships. This allows for a deeper understanding of how textual and visual elements interact.
  3. Global-Local Attentional Answering Module: Inspired by the M4C model, this module iteratively generates answers by combining global image/question features with local OCR embeddings. It uses a generative approach, allowing answers to be composed of OCR tokens and general vocabulary, overcoming the limitations of discriminative classifiers.

Datasets

  • TextVQA: Used for training and evaluation. The authors also provide human-annotated ground-truth OCR for this dataset to enable fair evaluation of reasoning capabilities.
  • ST-VQA: Used for evaluation, specifically two tasks.

Key Insights and Ideas

  • Graph Representation for TextVQA: Representing the scene as a heterogeneous graph with distinct roles for objects and text, and explicitly modeling their relationships, is crucial for effective textual-visual reasoning.
  • Role-Aware Attention: Decomposing the question into role-specific components and using these to guide graph attention significantly improves the model's ability to focus on relevant information.
  • OCR Performance is Critical: The study highlights that even with strong reasoning capabilities, inaccurate OCR can severely limit performance. Providing ground-truth OCR data is essential for isolating and evaluating the reasoning component.
  • Generative Answering is Necessary: For TextVQA, where answers are often derived from image text, a generative answering module is more effective than discriminative approaches.

Key Results

  • SMA achieved state-of-the-art (SoTA) performance on the TextVQA dataset, winning first place in the TextVQA Challenge 2020.
  • The model also achieved SoTA on two tasks of the ST-VQA dataset.
  • Ablation studies showed that modeling all four types of relationships (object-object, object-text, text-text, text-object) in the graph attention module led to significant accuracy improvements, with text-object relations being particularly important.
  • The generative answering module provided a substantial accuracy boost (4.33%) compared to a discriminative classifier.
  • Experiments with different OCR systems demonstrated that improved OCR accuracy directly translates to better VQA performance, with SMA benefiting the most from better OCR.

Limitations and Future Work

  • OCR Dependency: While SMA is robust, its performance is still influenced by OCR accuracy. The paper provides ground-truth OCR to address this for research purposes.
  • Commonsense Knowledge: Some failure cases suggest a need for incorporating commonsense knowledge, which is not explicitly addressed by the current model.
  • Answer Range: If the correct answer is not among the top 50 OCR tokens, the model cannot answer.
  • Future Work: The authors suggest further research into improving OCR accuracy and exploring more sophisticated reasoning mechanisms, potentially incorporating commonsense knowledge. The provision of ground-truth OCR data is intended to facilitate future research in these areas.

Summary updated

BibTeX
@article{gao2022structured,
  author = {Chenyu Gao and Qi Zhu and Peng Wang and Hui Li and Yuliang Liu and Anton van den Hengel and Qi Wu},
  title = {{Structured Multimodal Attentions for TextVQA}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2021.3132034},
}
Figure