KVQA (Knowledge-aware Visual Question Answering) is a subfield of Artificial intelligence and Machine learning that combines computer vision, natural language processing, and knowledge representation. Unlike traditional visual question answering (VQA), which relies solely on the visual content of an image, KVQA systems must also access and reason over external knowledge sources, such as knowledge graphs, encyclopedic databases, or structured facts, to produce accurate answers. This task requires the model to not only recognize objects, scenes, and relationships in an image but also to retrieve relevant world knowledge and perform multi-step reasoning to answer questions that may reference entities, attributes, or facts not directly visible in the image.
The development of KVQA is closely tied to advances in Deep learning and the emergence of large-scale multimodal models. Early VQA datasets, introduced in the mid-2010s, focused on questions answerable from the image alone. However, researchers soon recognized that many natural questions, such as "Who built this building?" or "What is the population of this city?", require external knowledge. This realization led to the creation of KVQA-specific benchmarks and the integration of knowledge bases into neural architectures, often using Transformer (architecture)-based models that can attend to both visual features and textual knowledge representations.
Historical Development
The concept of KVQA emerged from the broader VQA research agenda, which gained traction after the release of the VQA dataset in 2015 by researchers at virginia-tech and Microsoft (AI). The initial VQA task was purely visual, but subsequent work, such as the FVQA (Fact-based Visual Question Answering) dataset introduced in 2016, explicitly required external facts. FVQA provided a knowledge base of triples (subject, relation, object) and tasked models with retrieving relevant facts to answer questions. This was followed by other datasets like KVQA (the namesake, introduced in 2018 by researchers at indian-institute-of-technology-delhi and collaborators), which focused on questions about famous people and places, requiring knowledge from sources like Wikipedia and Freebase.
These early datasets used structured knowledge bases and often relied on Sequence-to-Sequence (Seq2Seq) models or attention mechanisms to combine image features with retrieved knowledge. The introduction of the Transformer (architecture) architecture in 2017, particularly the Multi-Head Attention mechanism, enabled more sophisticated fusion of visual and textual information. By the late 2010s, models such as LXMERT and VisualBERT, which pre-trained on image-text pairs, began to incorporate knowledge modules, although they still struggled with open-domain knowledge that was not present in the training data.
Core Challenges
KVQA poses several unique challenges compared to standard VQA. First, the system must determine when external knowledge is needed; many questions can be answered from the image alone, and unnecessary knowledge retrieval can introduce noise. Second, the retrieval process must be efficient and accurate, often requiring the system to query a large knowledge base in real time. Third, the integration of visual and knowledge-based evidence requires sophisticated reasoning, as the answer may depend on combining multiple facts or resolving contradictions between what is seen and what is known.
Another significant challenge is the Data Augmentation and annotation cost. Creating KVQA datasets requires pairing images with questions that have answers not in the image, which demands manual annotation and knowledge base curation. This has led to the use of semi-automatic pipelines that generate questions from knowledge graphs, but these often produce simplistic or unnatural questions. As a result, many KVQA models are evaluated on limited domains, such as famous landmarks or celebrities, and their performance on open-domain questions remains limited.
Modern Approaches
With the rise of Large language models and multimodal models like GPT-4V (from OpenAI) and Gemini (from Google DeepMind), KVQA has seen a paradigm shift. These models, often built on transformer architectures with billions of parameters, are pre-trained on massive corpora of text and images, implicitly encoding a vast amount of world knowledge. As a result, they can often answer knowledge-based visual questions without explicit retrieval, by leveraging the knowledge embedded in their parameters. This approach, sometimes called "closed-book" KVQA, has shown impressive results on benchmarks like OK-VQA (Outside Knowledge VQA), which was introduced in 2019 and requires external knowledge.
However, closed-book models have limitations, including hallucination (generating plausible but incorrect answers) and difficulty with rare or recent facts. To address this, hybrid approaches combine parametric knowledge with non-parametric retrieval, using techniques like Cross-Attention to fuse retrieved knowledge snippets with visual features. For example, models such as REVEAL and KAT (Knowledge-Augmented Transformer) use a retriever to fetch relevant passages from a knowledge corpus, then feed them to a transformer-based generator. These systems often employ Beam Search or Top-P (Nucleus) Sampling during decoding to produce answers.
The integration of Knowledge graph embeddings has also been explored, where the model learns to reason over graph structures. For instance, some works use graph neural networks to propagate information from retrieved entities, enabling multi-hop reasoning. These methods are particularly useful for questions that require combining multiple facts, such as "Who is the director of the movie starring this actor?"
Evaluation and Benchmarks
Standard benchmarks for KVQA include FVQA, KVQA, and OK-VQA. FVQA (2016) contains around 2,000 questions with a knowledge base of 50,000 facts. KVQA (2018) has over 18,000 questions about 1,800 famous people and landmarks, with answers sourced from Freebase. OK-VQA (2019) is larger, with over 14,000 questions that require outside knowledge, but it does not provide a specific knowledge base, making it more challenging. More recent benchmarks, such as A-OKVQA (2022), extend this with multiple-choice and open-ended questions, and include a knowledge base of image captions and external facts.
Evaluation metrics typically include accuracy (exact match or multiple-choice correctness) and, for generative models, metrics like CIDEr or BLEU. However, these metrics often fail to capture the reasoning quality, and there is ongoing debate about whether models are truly reasoning or simply memorizing patterns. Some researchers have proposed diagnostic datasets that test specific reasoning abilities, such as compositional questions or adversarial examples that require knowledge not in the training distribution.
Applications and Future Directions
KVQA has practical applications in domains such as assistive-technology (helping visually impaired users understand their environment), education (answering questions about historical images or scientific diagrams), and e-commerce (providing product information based on images). In the medical field, KVQA could assist radiologists by answering questions about scans that require knowledge of anatomy or disease, although this remains an active research area.
Future directions include improving the reliability of knowledge retrieval, reducing hallucination in generative models, and developing benchmarks that better reflect real-world complexity. There is also interest in making KVQA models more interpretable, allowing users to see which facts were used to derive an answer. As Generative AI continues to advance, KVQA is likely to become a standard component of multimodal assistants, enabling them to answer a wide range of visual questions with world knowledge.
See Also
- Visual Question Answering
- Knowledge graph
- multimodal-learning
- Retrieval-augmented generation