Introduction
Knowledge-based Visual Question Answering (VQA) represents a significant challenge in computer vision and natural language processing. Unlike standard VQA, which relies solely on visual cues within an image, knowledge-based VQA requires external information not present in the pixels. For instance, identifying a refrigerator is a visual task, but answering "What is the primary function of this appliance?" requires external common-sense knowledge.
Current approaches typically rely on the implicit memory of large pre-trained language models (PLMs) or unstructured retrieval from sources like Wikipedia. However, implicit memory often lacks niche facts, and unstructured retrieval can be noisy and computationally expensive. This paper introduces LaKo (Late Knowledge-to-text Injection), a framework designed to bridge the modality gap between structured knowledge graphs (KGs) and visual-linguistic data.
The LaKo Framework
LaKo adopts a Retriever-Reader architecture that unifies disparate input modalities into the natural language domain. This allows the model to leverage the sophisticated reasoning capabilities of text-only PLMs like T5.
Knowledge Retrieval and Transformation
The process begins by converting the input image into a textual description using image captioning and Optical Character Recognition (OCR). A specialized stem-based BM25 algorithm then queries a custom-built Knowledge Graph—compiled from ConceptNet, WebChild, DBpedia, and hasPart KB—to retrieve relevant triples.
To ensure compatibility with the language model, these structured triples (e.g., <suit, related_to, business>) are transformed into natural language sentences (e.g., "suit is related to business") using predefined templates.
Late Knowledge Injection
A key innovation of LaKo is the Late Injection strategy. While standard models often concatenate all inputs into a single sequence (Early Injection), LaKo encodes the "Background" (Question + Caption) and the "Knowledge" (Retrieved Sentences) independently. These representations are fused only within the decoder via cross-attention. This decoupling prevents external knowledge from introducing noise during the initial understanding of the core question and visual context, while also improving computational efficiency.
Experimental Results
LaKo was evaluated on the OKVQA dataset, the benchmark for knowledge-based VQA.
Performance and Comparisons
LaKo achieved a state-of-the-art accuracy of 47.01% on the OKVQA test split. Notably, it outperformed PICa-Base, a model utilizing the 175-billion parameter GPT-3, by 3.71%. This demonstrates that a specialized, knowledge-driven architecture can surpass significantly larger general-purpose models.
Ablation Studies
Ablation experiments highlighted the importance of each component. Removing the Knowledge Graph Retrieval (KGR) led to a nearly 3% drop in accuracy. Furthermore, the Late Injection strategy consistently provided a 0.6% to 0.8% performance boost over standard early concatenation, validating the benefits of decoupled encoding.
Conclusion
LaKo demonstrates that converting structured knowledge into natural language and employing a late-injection strategy effectively bridges the gap between vision and external knowledge. By leveraging the reasoning power of text-based PLMs and a high-quality, filtered Knowledge Graph, LaKo sets a new standard for knowledge-based VQA. Future work will explore more advanced retrieval mechanisms and the potential for zero-shot VQA using this knowledge-driven paradigm.
Summary updated