Multi-Clue Reasoning with Memory Augmentation for Knowledge-based Visual Question Answering

Chengxiang Yin, Zhengping Che, Kun Wu, Zhiyuan Xu, Jian TangarXiv 2023 · DOI

Abstract

Knowledge-based Visual Question Answering (KB-VQA) requires models to reason using external information beyond the visual input. We present MCR-MemNN (Multi-Clue Reasoning with Memory Augmentation), a framework that improves reasoning by predicting relation triplets (Subject-Relation-Object) to retrieve relevant facts more reliably. By employing a two-way attention mechanism with memory augmentation, MCR-MemNN effectively fuses visual, semantic, and external knowledge. Our approach outperforms existing benchmarks on FVQA and Visual7W datasets without requiring expensive auxiliary data like dense captions.

Introduction

Standard VQA models are typically "closed-book," limited to identifying objects present in an image. They lack the external context needed to answer questions such as "Which animal is most related to a tiger?" when shown a cat. KB-VQA addresses this by linking images to external Knowledge Bases (KBs) like ConceptNet or DBpedia.

However, existing KB-VQA methods face two major hurdles:

  1. Retrieval Fragility: Many models rely on simple keyword matching or a single search term. If the specific word is absent from the question, the model fails to retrieve necessary knowledge.
  2. Inefficient Fusion: Simple concatenation of image, question, and fact embeddings often fails to capture the nuanced interactions between these distinct modalities.

Methodology

MCR-MemNN addresses these challenges through a multi-stage pipeline designed for robust retrieval and sophisticated reasoning.

Overview of the MCR-MemNN framework illustrating multi-clue retrieval from an external knowledge base.

Relation Phrase Detector and Multi-Clue Retrieval

The process begins with a Relation Phrase Detector, a multi-task classification module that predicts a triplet: $\langle Subject, Relation, Object \rangle$. For instance, given the question "Which animal is most related to tiger?" and an image of a cat, the detector predicts $\langle Cat, RelatedTo, Tiger \rangle$.

Instead of querying the KB with a single term, MCR-MemNN uses both the predicted Subject and Object as clues. This "two-clue" approach significantly increases the probability of fetching the ground-truth fact. If the detector misses the subject but identifies the object correctly, the relevant fact can still be retrieved.

Memory Module and Two-Way Attention

Retrieved facts are encoded using a BiLSTM and stored in a key-value structured Memory Module. This allows the model to efficiently process a large set of candidate facts.

Detailed architecture of the MCR-MemNN system, showing the Visual-Semantic Embedding, Memory, and Attention modules.

The core reasoning engine is a Two-Way Attention mechanism. It facilitates mutual interaction: visual-semantic features are used to attend to the memory to find relevant facts, and the resulting memory summary is then used to re-attend to the image and question. This ensures that external knowledge actively informs and refines the visual understanding of the scene.

Experiments and Results

The model was evaluated on two primary benchmarks: FVQA (Fact-based VQA) and Visual7W + ConceptNet.

Performance on FVQA

MCR-MemNN achieved 70.92% top-1 accuracy on FVQA, significantly outperforming baseline methods like "Out of the Box" (69.35%). It performs comparably to high-complexity graph-based models like "Mucko" (71.28%) but without requiring dense captions for supervision.

Performance on Visual7W

On the Visual7W+ConceptNet dataset, MCR-MemNN reached 64.23% accuracy, a substantial improvement over the previous KDMN-Ensemble baseline of 60.9%.

Key Insights

  • Information Density: Performance peaked when using the Top-40 predicted subjects/objects. Increasing this to Top-100 introduced noise that degraded accuracy, suggesting a trade-off between recall and precision in fact retrieval.
  • Mutual Refinement: The two-way attention mechanism proved vital, as reasoning requires the external knowledge to change the model's perception of the visual scene.

Conclusion and Future Work

MCR-MemNN demonstrates that multi-clue retrieval and memory-augmented attention can significantly enhance KB-VQA performance. While the model is currently bottlenecked by the accuracy of the Relation Phrase Detector and struggles with questions about relationships themselves, it provides a robust framework for integrating external knowledge. Future work will explore multi-hop reasoning and scaling to larger, unstructured knowledge sources.

Summary updated

BibTeX
@misc{yin2023multi,
  author = {Chengxiang Yin and Zhengping Che and Kun Wu and Zhiyuan Xu and Jian Tang},
  title = {{Multi-Clue Reasoning with Memory Augmentation for Knowledge-based Visual Question Answering}},
  year = {2023},
  eprint = {2312.12723},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.12723},
}
Figure