Abstract
Asking questions about visual environments is a crucial way for intelligent agents to understand rich multi-faceted scenes, raising the importance of Visual Question Generation (VQG) systems. Apart from being grounded to the image, existing VQG systems can use textual constraints, such as expected answers or knowledge triplets, to generate focused questions. These constraints allow VQG systems to specify the question content or leverage external commonsense knowledge that can not be obtained from the image content only. However, generating focused questions using textual constraints while enforcing a high relevance to the image content remains a challenge, as VQG systems often ignore one or both forms of grounding. In this work, we propose Contrastive Visual Question Generation (ConVQG), a method using a dual contrastive objective to discriminate questions generated using both modalities from those based on a single one. Experiments on both knowledge-aware and standard VQG benchmarks demonstrate that ConVQG outperforms the state-of-the-art methods and generates image-grounded, text-guided, and knowledge-rich questions. Our human evaluation results also show preference for ConVQG questions compared to non-contrastive baselines.
Introduction
Visual Question Generation (VQG) is the task of training an agent to ask meaningful questions about a scene. However, early VQG systems often suffered from "genericity," producing repetitive, broad questions like "What is the person doing?" for almost any image containing a human. To address this, researchers introduced textual constraints—such as expected answers or knowledge triplets—to guide the model toward more specific outputs.
Despite these constraints, a new problem emerged: models often ignore one of the inputs. They might generate a question that fits the text constraint but has no relevance to the specific image, or vice versa. The ConVQG framework tackles this "multimodal grounding" gap, ensuring that the generated question is the unique intersection of what is seen and what is known.
Methodology
ConVQG is built upon the BLIP vision-language framework, utilizing a Vision Transformer (ViT) for image encoding and a BERT-based encoder for text. These inputs are fused into a joint multimodal embedding ($Q_{it}$), which a decoder then converts into a natural language question.
The core innovation is a dual contrastive objective used during training. To prevent the model from "cheating" by over-relying on a single modality, the researchers created two auxiliary, frozen modules:
- IQGM (Image-only): Generates a question based solely on the image.
- TQGM (Text-only): Generates a question based solely on the text constraint.
During training, the model is optimized to make its joint embedding close to the ground-truth question but—crucially—far away from the image-only and text-only versions. This forces the model to find information that is only present when both modalities are combined.
Experimental Results
The model was evaluated across several diverse benchmarks, including K-VQG (knowledge-aware), VQA 2.0 (standard VQA), VQG-COCO (engaging questions), and FVQA (zero-shot transfer).
ConVQG consistently outperformed existing state-of-the-art (SOTA) methods across all metrics (BLEU-4, METEOR, and CIDEr):
- K-VQG: On the "Answer" constraint task, ConVQG nearly doubled the CIDEr score of previous methods (from 0.39 to 0.78).
- VQA 2.0: On the "Small" test set, it achieved a BLEU-4 of 33.1, significantly higher than the previous best of 28.1.
- Human Evaluation: In head-to-head comparisons, human annotators preferred ConVQG’s questions over non-contrastive baselines, citing better grounding in both the image and the provided knowledge.
Conclusion
ConVQG demonstrates that contrastive learning can be used to "prune" generic outputs by treating unimodal generations as negatives. This approach makes the model flexible and constraint-agnostic, performing well whether the text input is a single word, a caption, or a formal knowledge triplet. While challenges like occasional hallucinations remain, this framework provides a robust path toward more intelligent, context-aware visual agents.
Reference: Mi, L., Montariol, S., Castillo-Navarro, J., Dai, X., Bosselut, A., & Tuia, D. (2024). ConVQG: Contrastive Visual Question Generation with Multimodal Guidance. arXiv:2402.12846v1 [cs.CV].
Summary updated