A Unified End-to-End Retriever-Reader Framework for Knowledge-based VQA

Yangyang Guo, Liqiang Nie, Yongkang Wong, Yibing Liu, Zhiyong Cheng, Mohan S. Kankanhalli

Introduction

Standard Visual Question Answering (VQA) models excel at identifying objects and attributes directly visible in an image, such as the color of a car or the number of people in a room. However, they often falter when faced with "knowledge-hungry" questions that require external information not present in the pixels. For instance, answering "Why is this animal endangered?" requires the model to identify an elephant and then retrieve the external fact that elephants are poached for their tusks.

Integrating external knowledge into VQA systems presents three primary challenges: noise and error propagation from massive knowledge bases, disconnected pipelines where the retriever and reader do not learn from each other, and the underutilization of "implicit" knowledge already embedded within vision-language pre-trained (VLP) models. To address these issues, we introduce UnifER (Unified End-to-End Retriever-Reader), a framework that treats knowledge retrieval and answer prediction as a single, joint task.

The UnifER Framework

UnifER consists of two tightly coupled components designed to work in an end-to-end fashion:

  1. The Retriever: This module encodes the image-question pair and potential knowledge entries (sourced from ConceptNet) into a shared latent space. It utilizes cosine similarity to identify and pull the most relevant facts from a pool of millions of entries.
  2. The Reader: This module acts as the reasoning engine, taking the image, the question, and the retrieved knowledge to predict the final answer. The reader is typically initialized with a VLP backbone like ViLT, LXMERT, or VisualBert.

Joint Supervision via the Loss Gap

A core innovation of UnifER is its supervision scheme, which addresses the lack of ground-truth labels for "correct" knowledge retrieval. The authors propose the Loss Gap ($\delta$), calculated as the difference between two training losses:

$$\delta = L_{QI} - L_{KQI}$$

Where:

  • $L_{QI}$ is the loss when the model uses only the Question and Image.
  • $L_{KQI}$ is the loss when the model uses the Question, Image, and retrieved Knowledge.

This $\delta$ represents the "value-add" of the retrieved knowledge. A positive $\delta$ indicates that the knowledge helped the model move closer to the correct answer. This signal is used to supervise the retriever, encouraging it to prioritize facts that reduce the reader's loss. Simultaneously, it allows the reader to filter out "noisy" facts that increase the loss, thereby preventing error propagation.

Experimental Results

UnifER was evaluated on two major benchmarks: OK-VQA, the primary benchmark for open-domain knowledge-based VQA, and FVQA, where questions are explicitly supported by knowledge triplets. ConceptNet served as the external explicit knowledge source, containing over 8 million nodes.

State-of-the-Art Performance

Using the ViLT backbone, UnifER achieved an accuracy of 42.13% on OK-VQA, significantly outperforming previous leading models such as MAVEx (39.20%) and KRISP (38.35%). Notably, UnifER achieved these results with greater efficiency, requiring only ConceptNet, whereas competitors often rely on multiple massive sources like Wikipedia and Google Images.

The Power of Implicit Knowledge

One of the study's most significant findings is the dominance of "implicit" knowledge. When the authors replaced pre-trained VLP weights with random initialization, performance dropped more drastically than when the external knowledge base was removed entirely. This suggests that the multi-modal knowledge baked into VLP models during pre-training is a critical, yet often overlooked, component of VQA success.

Key Insights and Discussion

  • End-to-End Synergy: By connecting the retriever and reader through the loss gap, the retriever learns to find facts that are functionally useful for answering, rather than just semantically similar to the question text.
  • Soft Logic vs. Binary Thresholds: The research found that using continuous functions (like $tanh$ and $sigmoid$) to process the loss gap performed better than hard binary thresholds. This "soft" approach prevents the model from discarding valuable training samples and better handles the inherent ambiguity of knowledge retrieval.
  • Qualitative Improvements: Qualitatively, the model demonstrated an improved ability to "attend" to relevant image regions when provided with helpful knowledge. For example, when retrieved knowledge mentioned "liquid," the model's attention shifted appropriately toward a fire hydrant in the image.

Conclusion and Future Work

UnifER demonstrates that a unified, end-to-end approach to retrieval and reading can significantly advance the state of knowledge-based VQA. By leveraging the loss gap for joint supervision, the model effectively filters noise and capitalizes on the implicit knowledge of VLP backbones.

Future research directions include improving fine-grained recognition for specific visual classes (e.g., rare animal breeds), exploring more sophisticated graph-based knowledge structures, and developing mechanisms for models to recognize when a question cannot be answered by the image alone.

Summary updated

BibTeX
@inproceedings{guo2022unified,
  author = {Yangyang Guo and Liqiang Nie and Yongkang Wong and Yibing Liu and Zhiyong Cheng and Mohan S. Kankanhalli},
  title = {{A Unified End-to-End Retriever-Reader Framework for Knowledge-based VQA}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3547870},
}
Figure