Learning Visual Knowledge Memory Networks for Visual Question Answering

Zhou Su, Chen Zhu, Yinpeng Dong, Dongqi Cai, Yurong Chen, Jianguo Li · DOI

Abstract

Visual Question Answering (VQA) systems often struggle with questions that require external knowledge or reasoning about objects that are not clearly visible. This paper introduces the Visual Knowledge Memory Network (VKMN), which bridges the gap between visual perception and structured human knowledge. By embedding visual features and knowledge triples into a unified memory architecture, VKMN can answer complex questions that standard models cannot. The model demonstrates significant performance gains on VQA benchmarks, particularly for questions requiring common sense and external information.

Introduction: Beyond "Look and Say"

Standard Visual Question Answering (VQA) models typically follow a "look and say" approach: they extract features from an image using a Convolutional Neural Network (CNN), process the question with a Recurrent Neural Network (RNN), and predict an answer. While this works for apparent objectives (e.g., "What color is the car?"), it fails on two harder categories:

  1. Indiscernible objectives: Where the answer is too small or blurry to see clearly (e.g., "What is in the oven?").
  2. Invisible objectives: Where the answer requires external common sense or encyclopedic knowledge (e.g., "What animal likes to eat these fruits?").
Examples of VQA objectives: (a) Apparent, (b) Indiscernible, and (c) Invisible.

Previous attempts to use external knowledge bases (KBs) often struggled with "knowledge inaccuracy"—relying on a single, potentially wrong fact—and failed to effectively fuse visual context with abstract knowledge.

The Visual Knowledge Memory Network (VKMN)

The authors introduce the Visual Knowledge Memory Network (VKMN), a framework designed to integrate visual features and knowledge triples (subject-relation-object) into a unified memory network. This allows the model to reason through complex questions that require information not explicitly present in the image pixels.

The VKMN framework overview, illustrating the flow from question and image to knowledge retrieval and answer decoding.

The VKMN operates through four main stages:

  • Input Module: Uses a ResNet-152 (CNN) for images and an LSTM for questions to produce a "visual attentive feature" ($u$) and a question vector ($t$).
  • Knowledge Spotting: The model extracts relevant "triples" (e.g., <monkey, eats, banana>) from a pre-built knowledge base using sub-graph hashing based on keywords in the question or image captions.
  • Joint Embedding: Instead of just storing text in memory, VKMN creates a joint visual-knowledge embedding. It uses Multimodal Low-rank Bilinear pooling (MLB) to fuse the visual features ($u$) with the knowledge entries ($e$). This ensures the memory "knows" what the knowledge looks like in the context of the current image.
  • Key-Value Memory Network: To handle the fact that any part of a triple might be the "missing" piece the question is asking for, the authors use Triple Replication. They store facts in three different key-value configurations (e.g., using Subject+Relation as the key to find the Target).

Experimental Setup

The model was evaluated on the VQA v1.0 and v2.0 benchmarks. To build the external knowledge base, the authors used relationship annotations from Visual Genome, constructing a specific KB containing approximately 160,000 unique triples extracted from VQA training pairs and the Visual Genome dataset.

Key Results and Discussion

VKMN achieved 66.1% accuracy on VQA v1.0 (test-standard), outperforming several competitive models like MLB and DAN. The model showed its greatest strength in the "Other" category (questions starting with why, how, where, etc.), which typically require the most reasoning. On VQA v2.0, it outperformed the baseline MLB model by a significant margin in this category (57.79% vs 52.95%).

The paper argues that visual features are essential even for knowledge-based questions. For example, if a question asks about an animal in the water, the model must first visually confirm it's a "duck" before it can retrieve knowledge about ducks. By replicating the memory sub-blocks for different parts of a triple, the model becomes robust to different question structures. Furthermore, unlike earlier models that tried to find one perfect fact, VKMN can attend to multiple related facts in its memory and weight them based on relevance, reducing the impact of a single noisy or incorrect retrieval.

Conclusion

The VKMN framework represents a significant step forward in VQA by effectively bridging visual perception and structured knowledge. While the model still faces challenges with spatial reasoning and is constrained by the scope of its knowledge base, its ability to handle indiscernible and invisible objectives marks a clear improvement over traditional "look and say" architectures. Future work will focus on integrating more advanced "structure attention" mechanisms to better handle complex spatial relationships between objects.

Summary updated

BibTeX
@inproceedings{su2018learning,
  author = {Zhou Su and Chen Zhu and Yinpeng Dong and Dongqi Cai and Yurong Chen and Jianguo Li},
  title = {{Learning Visual Knowledge Memory Networks for Visual Question Answering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00807},
}
Figure