EKTVQA: Generalized Use of External Knowledge to Empower Scene Text in Text-VQA

Arka Ujjal Dey, Ernest Valveny, Gaurav Harit

Introduction

Text-VQA is an open-ended question answering task that requires models to read and reason about scene text within images. A significant challenge in this field is the "zero-shot" nature of the task: scene text often follows a long-tail distribution, where many entities—such as specific brands, niche products, or book titles—are rarely seen or completely unseen during training. Consequently, models often rely on training data bias; for instance, a model might guess "Apple" when seeing a computer, even if the OCR clearly reads "Commodore," simply because "Apple" appeared more frequently in its training set.

To address this, we propose EKTVQA (External Knowledge-enabled Text-VQA), a framework that leverages external knowledge from the Google Knowledge Base (GKB) to augment scene text understanding. By providing a "dictionary" of external facts, the model can reason about rare entities and mitigate common dataset biases.

Methodology: The EKTVQA Framework

The EKTVQA framework operates in three distinct stages to integrate web-scraped data into the reasoning process:

  1. Extraction: For every text token detected by Optical Character Recognition (OCR), the system queries the Google Knowledge Base to retrieve candidate entities and their descriptions. This stage is particularly effective at multiword entity recognition, binding separate tokens (e.g., "New" and "York") into a single semantic unit.
  2. Validation: Web-scraped data is inherently noisy. To ensure relevance, the model uses the broader image context—including visual objects, question words, and other OCR tokens—to disambiguate candidates. Validity scores are calculated using BERT embeddings to select the knowledge fact that best fits the visual scene.
  3. Reasoning (Constrained Interaction): The validated knowledge is fed into a multimodal transformer. To maintain "node-to-node legitimacy," the framework implements constrained interaction via attention masks. This ensures that specific knowledge facts are linked only to their corresponding OCR tokens during the reasoning process, preventing the model from becoming overwhelmed or confused by irrelevant data.

Datasets and Experimental Setup

The framework was evaluated across three major benchmarks:

  • TextVQA: A standard dataset for reading and reasoning about scene text.
  • ST-VQA (Scene Text VQA): Focuses on questions requiring text recognition in natural scenes.
  • Text-KVQA (Scene): A knowledge-oriented dataset where external facts are essential for answering questions (e.g., identifying an author from a book cover).

Key Insights

  • Contextual Validation: Simply retrieving knowledge is insufficient; filtering it based on visual cues significantly boosts performance compared to aggregating all retrieved facts.
  • Bias Mitigation: External knowledge acts as a semantic "sanity check," reducing the likelihood of the model defaulting to high-frequency but incorrect answers from the training set.
  • Transferable Learning: Interestingly, the model shows improved performance even if external knowledge is only used during training and disabled during testing. This suggests that the external knowledge helps the model learn more robust internal representations of the relationship between text and images.

Results

EKTVQA achieved a 2.5% absolute improvement over non-knowledge baselines across all tested datasets. The results are comparable to state-of-the-art systems like TAP, but without the need for massive, resource-intensive pre-training. Qualitatively, the model demonstrated superior "entity type" correctness, accurately identifying that a question about a "brand" requires a company name rather than a generic word found in the image.

Conclusion and Future Work

While EKTVQA significantly improves reasoning, it remains dependent on the accuracy of the upstream OCR system. Misreadings can lead to failed knowledge queries. Future research could explore adapting this generalized knowledge approach to other multimodal tasks, such as Image Captioning or Vision-and-Language Navigation, where semantic understanding of scene text (like street signs or store names) is critical.

Summary updated

BibTeX
@inproceedings{dey2022ektvqa,
  author = {Arka Ujjal Dey and Ernest Valveny and Gaurav Harit},
  title = {{EKTVQA: Generalized Use of External Knowledge to Empower Scene Text in Text-VQA}},
  booktitle = {IEEE Access},
  year = {2022},
  url = {https://openreview.net/forum?id=hz8NULAe-_9},
}
Figure