Abstract
The problem of grounding VQA tasks has seen an increased attention in the research community recently, with most attempts usually focusing on solving this task by using pretrained object detectors. However, pre-trained object detectors require bounding box annotations for detecting relevant objects in the vocabulary, which may not always be feasible for real-life large-scale applications. In this paper, we focus on a more relaxed setting: the grounding of relevant visual entities in a weakly supervised manner by training on the VQA task alone. To address this problem, we propose a visual capsule module with a query-based selection mechanism of capsule features, that allows the model to focus on relevant regions based on the textual cues about visual information in the question. We show that integrating the proposed capsule module in existing VQA systems significantly improves their performance on the weakly supervised grounding task. Overall, we demonstrate the effectiveness of our approach on two state-of-the-art VQA systems, stacked NMN and MAC, on the CLEVR-Answers benchmark, our new evaluation set based on CLEVR scenes with ground truth bounding boxes for objects that are relevant for the correct answer, as well as on GQA, a real world VQA dataset with compositional questions. We show that the systems with the proposed capsule module consistently outperform the respective baseline systems in terms of answer grounding, while achieving comparable performance on VQA task.
Introduction
In Visual Question Answering (VQA), providing the correct answer is only half the battle. To ensure model reliability and interpretability, we must determine if the system arrived at its conclusion for the right reasons—a challenge known as visual grounding.
Traditional grounded VQA systems typically rely on object-level features extracted from pre-trained detectors like Faster R-CNN. However, this dependency introduces significant bottlenecks: a fixed vocabulary limited to the detector's training classes and the high cost of manual bounding box annotations. This research addresses weakly-supervised grounding, training models to answer questions and localize relevant objects simultaneously using only textual question-answer pairs as supervision, without explicit spatial guidance during training.
Methodology: The Visual Capsule Module
The core innovation of this work is the integration of Capsule Networks into established VQA architectures like MAC and Stacked Neural Module Networks (SNMN). Unlike standard convolutional feature maps, capsules represent visual entities through groups of neurons that encode both the presence and properties (pose) of an object.
Soft-Masking Mechanism
A critical component of this architecture is the query-based soft-masking module. While traditional capsule networks often use "hard masking" to select a single winning class, this is too restrictive for VQA where the relevant visual features are initially unknown. The soft-masking mechanism generates a probability distribution over capsule types based on a textual query derived from the question. This allows the model to attend to relevant features in a differentiable, end-to-end manner.
Experimental Setup and Datasets
The approach was evaluated on two primary benchmarks:
- GQA: A real-world dataset with complex scenes and compositional questions.
- CLEVR-Answers: A new evaluation set introduced by the authors. By augmenting the synthetic CLEVR dataset with ground-truth bounding boxes for objects essential to each question, the researchers established a precise metric for grounding accuracy.
Key Results and Insights
The integration of the capsule module ("Caps" variants) consistently outperformed baseline models in grounding metrics such as Overlap and IOU, while maintaining or slightly improving VQA accuracy.
- Grounding Performance: On CLEVR-Answers, the MAC-Caps model improved the IOU F1-score from 19.73% to 29.71%. The SNMN-Caps variant saw an even larger jump from 42.11% to 51.18%. On the real-world GQA dataset, MAC-Caps significantly boosted the Overlap F1-score for all referenced objects from 27.47% to 52.96%.
- Parameter Efficiency: Interestingly, adding capsules often reduced the total parameter count. For instance, SNMN-Caps achieved a ~15.6% reduction in learned parameters compared to its baseline while delivering superior grounding.
- Background Modeling: The capsule routing mechanism naturally learned to represent background elements. This proved vital for questions where the correct answer was "none" or "0," as the model learned to "attend to nothing" rather than focusing on irrelevant objects.
Conclusion
This research demonstrates that Capsule Networks provide a powerful framework for weakly-supervised visual grounding. By treating capsules as object proxies and employing a soft-masking mechanism, VQA systems can learn to "find the reason" for their answers without expensive spatial annotations. While computational overhead and real-world scene complexity remain challenges, this work paves the way for more interpretable and efficient VQA systems.
Summary updated