NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zero-shot Visual Question Answering using Knowledge Graph

Zhuo Chen, Jiaoyan Chen, Yuxia Geng, Jeff Z. Pan, Zonggang Yuan, Huajun Chen

Abstract

Standard Visual Question Answering (VQA) models often struggle with "unseen" answers and questions requiring external common-sense knowledge. This paper introduces a Zero-shot Visual Question Answering (ZS-VQA) framework that leverages Knowledge Graphs (KGs) to generalize to concepts absent from training data. By reframing VQA as a mapping task across multiple feature spaces—Knowledge, Semantic, and Object—the proposed model achieves significant performance gains, including a 30–40% boost in zero-shot scenarios.

Introduction: The Challenge of Open-World VQA

Visual Question Answering (VQA) has traditionally operated under a "closed-world" assumption, where models are trained on a fixed set of (image, question, answer) triplets. This limitation prevents models from answering questions about objects or concepts not encountered during training. Furthermore, many queries require external "common sense" knowledge that isn't explicitly contained within the image pixels. For example, identifying an object as a "toy" or knowing it is "used for exercise" requires information beyond basic visual recognition.

Knowledge Graph integration for VQA

Existing knowledge-based VQA methods often use a sequential pipeline: extracting visual concepts, querying a database, and reasoning. However, these systems are prone to error cascading—if the initial object detection fails, the entire reasoning chain collapses. This research addresses these issues by bridging end-to-end learning with external knowledge retrieval, specifically targeting the prediction of answers entirely absent from the training set.

Methodology: VQA as a Mapping Task

The core innovation of this framework is shifting the paradigm from classification (selecting from a fixed label list) to mapping (aligning image-question pairs with entities in a high-dimensional vector space).

Multi-Space Feature Learning

The model projects the joint embedding of an image and a question (I-Q pair) into three distinct spaces to capture different facets of the problem:

  1. Knowledge Space: Directly aligns the I-Q pair with the semantic embedding of the answer.
  2. Semantic Space: Analyzes the question's language to identify the specific relation (e.g., "UsedFor," "IsA") within a KG triplet.
  3. Object Space: Identifies the "anchor" object in the image that serves as the subject for the KG relation.
ZS-VQA framework architecture

Mask-based Learning Mechanism

To integrate Knowledge Graphs without the rigidity of a pipeline, the authors implement a dual masking strategy:

  • Hard Masks: Applied during Zero-shot tasks. The model uses predicted relations and support entities to filter out inconsistent answers in the KG, forcing a choice from a logically valid candidate set.
  • Soft Masks: Used for standard VQA. Instead of a hard cutoff, a "mask score" is added to the probability of answers aligned with the KG. This allows the model to correct visual processing errors if the KG provides strong evidence for a specific answer.

Datasets and Evaluation

The model was evaluated on two primary benchmarks:

  • F-VQA: A standard benchmark for fact-based VQA where questions are supported by KG triplets (e.g., <frisbee, UsedFor, exercise>).
  • ZS-F-VQA: A new split introduced by the authors specifically for zero-shot evaluation. In this split, answers in the test set have zero overlap with those in the training set, providing a rigorous test of the model's generalization capabilities.

Key Results and Insights

The proposed method demonstrates substantial improvements over traditional VQA architectures:

  • Zero-Shot Performance: On the ZS-F-VQA dataset, the model achieved a Hit@1 of 29.39%. In contrast, baseline models like SAN or Up-Down performed near 0% because they are incapable of predicting unseen labels.
  • Standard VQA Improvement: Even in scenarios where answers were seen during training, the model improved performance by 6–9% over baseline end-to-end models. This suggests that KG-masking acts as a powerful regularizer.
  • The Importance of Relations: While many zero-shot models focus on object similarity, this research highlights that the relation (the edge in the KG) is often the most critical information for narrowing down an unseen answer.

Conclusion and Future Work

By representing answers as semantic vectors rather than one-hot labels, the ZS-VQA framework allows models to "understand" novel concepts based on their proximity to known entities. While the model shows great promise, it remains sensitive to hyperparameter selection and the quality of the underlying Knowledge Graph. Future research will focus on more robust KG embedding methods and automated techniques for constructing task-relevant semantics for open-world VQA.

Summary updated

BibTeX
@inproceedings{chen2021zero,
  author = {Zhuo Chen and Jiaoyan Chen and Yuxia Geng and Jeff Z. Pan and Zonggang Yuan and Huajun Chen},
  title = {{Zero-shot Visual Question Answering using Knowledge Graph}},
  booktitle = {ISWC},
  year = {2021},
  doi = {10.1007/978-3-030-88361-4\_9},
}
Figure