Abstract: We describe a very simple bag-of-words baseline for visual question answering. This baseline concatenates the word features from the question and CNN features from the image to predict the answer. When evaluated on the challenging VQA dataset, it shows comparable performance to many recent approaches using recurrent neural networks. To explore the strength and weakness of the trained model, we also provide an interactive web demo and open-source code.
Introduction
Visual Question Answering (VQA) is a multimodal task requiring an AI to answer natural language questions about images. As the field emerged, researchers quickly adopted complex architectures, primarily relying on Long Short-Term Memory (LSTM) networks for language processing and sophisticated attention mechanisms for visual grounding.
This paper takes a step back to evaluate whether such complexity is strictly necessary. The authors hypothesize that many VQA datasets contain significant language biases—patterns where specific words in a question strongly correlate with an answer regardless of the image content. To test this, they propose iBOWIMG (improved Bag-of-Words Image), a simple model designed to exploit these correlations as a robust baseline.
The iBOWIMG Model
The iBOWIMG architecture is intentionally minimalist, designed to be implemented in just a few lines of code. It processes information through four distinct stages:
- Text Processing: Instead of a sequential LSTM, the model uses a Bag-of-Words (BoW) approach. The question is converted into a one-hot vector and passed through a word embedding layer, treating the question as an unordered collection of words.
- Visual Processing: Deep visual features are extracted from the image using a pre-trained GoogLeNet CNN.
- Fusion: The resulting word features and image features are concatenated into a single long vector.
- Prediction: This combined vector is fed into a softmax layer to predict the answer from a fixed set of candidate answers.
Experimental Results
The model was evaluated on the COCO VQA dataset, which at the time contained approximately 370,000 question-answer pairs. Despite its simplicity, iBOWIMG demonstrated remarkable performance:
- Accuracy: On the VQA Open-Ended
test-devset, iBOWIMG achieved 55.72% accuracy. - Comparison: It outperformed the standard LSTM+CNN baseline (53.74%) provided by the original VQA dataset creators and remained competitive with state-of-the-art models like DPPnet (57.22%).
- Efficiency: The model is significantly faster to train than recurrent counterparts, requiring only about 10 hours on a single GPU.
Key Insights and Interpretability
The success of iBOWIMG reveals that word order often plays a secondary role in current VQA benchmarks. The model frequently relies on "language bias"; for instance, if a question begins with "What color is...", the model learns that "red" or "white" are statistically likely answers before even processing the image pixels.
Interestingly, the authors found that even without an explicit attention module, the model can be interpreted using Class Activation Mapping (CAM). This technique visualizes which image regions contribute most to a specific answer prediction. As shown in the visualization below, the model naturally learns to correlate specific words with relevant visual regions.
Conclusion
The iBOWIMG model serves as a cautionary tale for the VQA community. It demonstrates that high performance on benchmarks does not always equate to complex reasoning. While the model lacks the ability to handle complex syntax or logical reasoning (e.g., distinguishing "cat on mat" from "mat on cat"), its performance suggests that future VQA research must focus on tasks that specifically require these higher-level cognitive abilities to move beyond simple statistical correlations.
Summary updated