Data Augmentation for Visual Question Answering

Kushal Kafle, Mohammed A. Yousefhussien, Christopher KananINLG 2017 · DOI

Introduction

While computer vision researchers have long relied on simple techniques like flipping or cropping images to improve model training, applying similar logic to Visual Question Answering (VQA) is significantly more complex. In VQA, a model must interpret an image and answer a natural language question. A simple spatial transformation of the image, such as flipping, can invalidate the logic of a question like "Is the cat on the left?"

In this work, Kafle et al. explore methods to bridge this gap by introducing two distinct data augmentation strategies for VQA. They demonstrate that even synthetic questions can provide a significant performance boost for state-of-the-art models, particularly in challenging reasoning tasks.

Problem Statement

Deep learning models are notoriously data-hungry. In standard image classification, data augmentation is a common "free lunch" that improves generalization. However, VQA training data consists of triplets: an image, a question, and an answer. Manually annotating these triplets is expensive and slow. Existing VQA datasets, while large, still leave a significant "human-machine gap" in performance. The authors argue that current algorithms are bottlenecked by the volume of training data and seek a way to generate new, high-quality QA pairs automatically.

Methodology

The researchers explored two primary avenues for generating new training data:

1. The Template Augmentation Method

This rule-based method leverages existing semantic metadata from the COCO dataset, such as segmentation masks and object labels. Using hand-crafted templates, they generated four types of questions:

  • Yes/No: "Is there a [object] in the picture?"
  • Counting: "How many [object] are there?"
  • Object Recognition: "What [super-category] is in the image?"
  • Scene/Activity: "Is this indoor or outdoor?"

2. The LSTM Augmentation Method

This generative approach trained a stacked Long Short-Term Memory (LSTM) network on existing VQA data to learn how to generate questions based on image features. To mitigate "noise"—nonsensical or incorrect questions—the authors used a baseline VQA model to filter out pairs where the model's confidence was low.

Table 1: Distribution of augmented question types across different generation methods.

The study evaluated these methods on two major benchmarks: COCO-VQA, featuring real-world images with human-generated questions, and COCO-QA, where questions were generated by an NLP algorithm parsing COCO captions.

Key Results and Insights

The augmentation strategies yielded several critical findings:

  • Counting Improvements: The template method significantly improved numerical reasoning. Because templates were tied to ground-truth segmentation masks, they provided a massive, clean "practice set" for counting tasks.
  • Naturalness vs. Correctness: While the LSTM method produced more human-like phrasing, it suffered from "label noise"—generating questions that did not align with image content. The Template method, though rigid, was more effective due to its high accuracy.
  • Model Agnostic Benefits: Augmentation helped both simple Multi-Layer Perceptron (MLP) baselines and complex architectures like Multimodal Compact Bilinear pooling (MCB).
Table 2: Performance comparison of MLP models with various augmentation strategies on COCO-QA and COCO-VQA datasets.

On the COCO-VQA dataset, template-based augmentation provided a 1.6% relative increase in accuracy for the MLP model. For the advanced MCB model, accuracy improved from 64.7% to 65.28%. Notably, the "counting" category saw the largest improvement (+1.74%) for the MLP model.

Conclusion

The primary limitation identified was label noise in the generative (LSTM) approach. Future work should focus on robust training methods capable of handling noisy labels. Furthermore, there is a significant opportunity to scale these methods to virtually unlimited data by utilizing web-scraped images, provided generative reliability can be improved.

Summary updated

BibTeX
@inproceedings{kafle2017data,
  author = {Kushal Kafle and Mohammed A. Yousefhussien and Christopher Kanan},
  title = {{Data Augmentation for Visual Question Answering}},
  booktitle = {INLG},
  year = {2017},
  doi = {10.18653/v1/w17-3529},
}
Figure