Generating Natural Language Explanations for Visual Question Answering using Scene Graphs and Visual Attention

Shalini Ghosh, Giedrius Burachas, Arijit Ray, Avi ZiskindarXiv 2019

Abstract

In this paper, we present a novel approach for the task of eXplainable Question Answering (XQA), i.e., generating natural language (NL) explanations for the Visual Question Answering (VQA) problem. We generate NL explanations comprising of the evidence to support the answer to a question asked to an image using two sources of information: (a) annotations of entities in an image (e.g., object labels, region descriptions, relation phrases) generated from the scene graph of the image, and (b) the attention map generated by a VQA model when answering the question. We show how combining the visual attention map with the NL representation of relevant scene graph entities, carefully selected using a language model, can give reasonable textual explanations without the need of any additional collected data (explanation captions, etc). We run our algorithms on the Visual Genome (VG) dataset and conduct internal user-studies to demonstrate the efficacy of our approach over a strong baseline. We have also released a live web demo showcasing our VQA and textual explanation generation using scene graphs and visual attention.

1. Introduction

Deep learning models for Visual Question Answering (VQA) have achieved high accuracy but remain notoriously opaque. For instance, if a model identifies a room as a "living room," users often cannot discern if the model recognized key objects like a sofa or merely identified carpet textures. This lack of transparency hinders trust, particularly in sensitive applications or for visually impaired users.

Overview of the XQA framework: The system generates natural language justifications by mapping internal model attention onto structured scene graph data.

To address this, we propose a framework for eXplainable Question Answering (XQA). Unlike previous methods that rely on visual heatmaps—which can be difficult for non-experts to interpret—our approach generates human-readable natural language justifications grounded in the image's content without requiring specialized datasets of human-written explanations.

2. Methodology

Our multi-modal approach integrates three core components to bridge the gap between internal mathematical weights and coherent language:

2.1 The VQA Model

We utilize a standard architecture employing ResNet152 for image processing and an LSTM for text. A critical feature is the attention layer, which produces a heatmap indicating the image regions most influential in generating the answer.

The VQA architecture utilizes an attention mechanism to identify influential image regions before classification.

2.2 The Scene Graph and Explanation Generator

We leverage the Visual Genome (VG) dataset to provide a structured representation of the image, including objects, relationships, and region descriptions. The Explanation Generator then ranks potential phrases from the scene graph using a scoring function based on:

  • Attention Overlap: The degree to which a phrase's bounding box aligns with the model's visual attention.
  • Linguistic Relevance: An AzureLM language model scores how well the phrase fits the context of the question and answer.
  • Specificity: Preference is given to richer descriptions and tighter bounding boxes.

3. Results

We conducted an internal user study with workers rating approximately 2,000 generated explanations. The multi-modal approach (combining visual attention and natural language) consistently outperformed a baseline using only linguistic relevance.

Key findings include:

  • Win Rates: The multi-modal approach was preferred in 52% to 55% of cases, compared to only 24% to 30% for the NL-only baseline.
  • Qualitative Success: For the question "What room is this?", the system successfully justified its "Living room" answer with: "Because I can see: A sofa along the wall, pillows on sofa, a lamp, and a table."

4. Conclusion and Future Work

This research demonstrates that model attention can serve as a faithful bridge to external knowledge bases like scene graphs, enabling zero-shot explanations. Future work will focus on reducing template dependency, moving toward fully trainable pipelines, and incorporating higher-level knowledge abstraction (e.g., using WordNet) to improve the sophistication of the generated justifications.

Summary updated

BibTeX
@misc{ghosh2019generating,
  author = {Shalini Ghosh and Giedrius Burachas and Arijit Ray and Avi Ziskind},
  title = {{Generating Natural Language Explanations for Visual Question Answering using Scene Graphs and Visual Attention}},
  year = {2019},
  eprint = {1902.05715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.05715},
}
Figure