Abstract
Despite recent advances in Visual Question Answering (VQA), it remains a challenge to determine how much success can be attributed to sound reasoning and comprehension ability. We seek to investigate this question by proposing a new task of rationale generation. Essentially, we task a VQA model with generating rationales for the answers it predicts. We use data from the Visual Commonsense Reasoning (VCR) task, as it contains ground-truth rationales along with visual questions and answers. We first investigate commonsense understanding in one of the leading VCR models, ViLBERT, by generating rationales from pretrained weights using a state-of-the-art language model, GPT-2. Next, we seek to jointly train ViLBERT with GPT-2 in an end-to-end fashion with the dual task of predicting the answer in VQA and generating rationales. We show that this kind of training injects commonsense understanding in the VQA model through quantitative and qualitative evaluation metrics.
Introduction
Modern Visual Question Answering (VQA) models have reached impressive performance levels on standard benchmarks. However, a significant concern persists: are these models truly reasoning about the visual and linguistic input, or are they merely exploiting statistical shortcuts and dataset biases? Traditional interpretability methods, such as visual attention maps or unimodal perturbations, often fail to capture the holistic reasoning required for complex visual tasks.
This paper addresses this gap by introducing the task of rationale generation. By requiring a model to produce a free-form natural language explanation for its predicted answer, researchers can better evaluate the model's underlying comprehension. Furthermore, the authors hypothesize that training a model to explain itself can serve as a powerful regularizer, forcing the model to learn more robust commonsense reasoning.
Methodology
The authors propose a framework that bridges a multimodal VQA model, ViLBERT, with a generative language model, GPT-2. The core challenge in this joint architecture is maintaining differentiability between the classification-based VQA task and the autoregressive generation task.
Differentiable Answer Embedding
In a standard multiple-choice VQA setup, the model selects a discrete answer choice, which is a non-differentiable operation. To enable end-to-end training, the authors implement a "soft" selection mechanism. They calculate a predicted answer embedding by taking the weighted average of the embeddings for all four possible answer choices, where the weights are the softmax probabilities predicted by the VQA model. This weighted embedding is then fed into GPT-2 as a prefix to guide the rationale generation.
Training Paradigms
Two primary training setups were evaluated:
- ViLBERT-Fr (Frozen): ViLBERT's weights are kept static, and only the GPT-2 module is trained to generate rationales based on the fixed VQA outputs.
- ViLBERT-Ra (Rationale): Both models are trained jointly. The loss function is a combination of the VQA cross-entropy loss and the language modeling loss from GPT-2. A KL-Divergence regularizer is added to ensure the VQA model does not diverge too far from its optimized state while learning to generate rationales.
Experimental Results
The models were evaluated on the Visual Commonsense Reasoning (VCR) dataset, which provides ground-truth rationales for every question-answer pair.
Quantitative Performance
Contrary to the common trade-off between interpretability and performance, the results show that joint training actually improves the primary VQA task. The ViLBERT-Ra model achieved a VQA accuracy of 70.45%, surpassing the baseline performance of 69.58%. Additionally, the quality of the generated rationales improved significantly across all standard NLP metrics, including BLEU-1, ROUGE-L, and semantic Cosine Similarity.
Qualitative and Human Evaluation
Qualitative analysis revealed that ViLBERT-Ra produces more coherent and contextually relevant explanations than the frozen baseline. In a blind human evaluation of 100 random samples, judges preferred the rationales generated by the jointly trained model 80% of the time (by majority vote). This suggests that the joint training objective successfully injects a higher degree of commonsense understanding into the model.
Conclusion
This work demonstrates that rationale generation is not only a viable metric for model interpretability but also a beneficial training objective. By forcing VQA models to explain their reasoning in natural language, we can mitigate reliance on dataset biases and improve overall performance. Future work may explore scaling these models to larger batch sizes and refining the generation process to eliminate minor artifacts, such as the occasional generation of incorrect proper names.
Summary updated