Knowledge-Guided Cross-Topic Visual Question Generation

Hongfei Liu, Guohua Wang, Jiayuan Xie, Jiali Chen, Wenhao Fang, Yi CaiCOLING 2024

Introduction

Visual Question Generation (VQG) aims to automatically produce meaningful questions from images. While existing models perform well on general datasets, they often fail when tasked with generating questions about specific, unseen topics. In real-world scenarios, such as educational tools or specialized AI assistants, the ability to pivot between topics like "Geography" or "Sports" is crucial. However, manual annotation for every possible topic is infeasible.

To bridge this gap, this research introduces the Cross-Topic Learning VQG (CTL-VQG) task. The goal is to develop models that can learn question-generation patterns from a set of labeled topics and generalize them to entirely new, unlabeled domains.

Overview of the CTL-VQG task and the importance of topic-specific question generation.

The KC-VQG Framework

The authors propose the Knowledge-Guided Cross-Topic VQG (KC-VQG) model. This framework addresses the challenge by separating intuitive visual grounding from implicit semantic knowledge extraction. It consists of three primary components:

1. Image-Topic Feature Extractor (IT-FE)

Using frozen, pre-trained CLIP encoders, this module aligns visual patches with text-based topic embeddings. A custom attention mechanism ensures the model focuses on image regions relevant to the target topic—for example, identifying a basketball when the topic is "sports."

2. Image-Topic Knowledge Extractor (IT-KE)

Many topics require external knowledge not explicitly present in the image. The IT-KE module queries GPT-3.5 using image captions (from BLIP-2) and object detections (from Faster R-CNN) to retrieve relevant knowledge snippets. To prevent "hallucinations" or irrelevant data from degrading performance, a Knowledge Discriminator scores and filters these snippets, selecting only the most pertinent information.

3. Topic and Type-Guided Question Decoder

The final stage uses a distilled GPT-2 model. It takes the filtered knowledge, the desired question type, the topic, and a target answer as a prompt. By cross-attending to the visual features from the IT-FE, it generates a coherent, topic-aligned question.

Experimental Results

The model was evaluated on a refined version of the TDIUC dataset, using a leave-one-out cross-topic testing methodology where the target topic is entirely excluded from training.

Quantitative Performance

KC-VQG demonstrated significant improvements over state-of-the-art baselines in unseen topic scenarios. For instance, in the "activity recognition" category, KC-VQG achieved a BLEU-4 score of 17.24, more than doubling the performance of the best baseline (6.72).

t-SNE visualizations comparing feature distributions, illustrating the effectiveness of the knowledge-guided alignment in separating topic-relevant features.

Qualitative and Human Evaluation

Human trials confirmed the model's superiority in Topic Relevance and Image Relevance. While direct prompting of large models like GPT-3.5 produced higher fluency, KC-VQG was far more effective at adhering to the specific visual and topical constraints of the task.

Key Insights

  • Structural Transferability: The study found that the grammatical structure of questions (e.g., starting with "What" or "Is") transfers well across topics, whereas the content is highly topic-dependent. Cross-topic VQG is essentially about injecting new content into these learned structural paradigms.
  • The Necessity of Filtering: LLMs provide valuable external knowledge, but their output is often noisy. The trainable Knowledge Discriminator is essential for maintaining high-quality generation by selecting knowledge that minimizes question-generation loss.
  • Visual-Semantic Alignment: Leveraging frozen multimodal models like CLIP allows for robust grounding of new text topics to visual features without extensive retraining, preserving the model's general alignment while adapting to specific contexts.

Conclusion

KC-VQG represents a significant step toward flexible, topic-aware visual AI. By combining the intuitive grounding of CLIP with the filtered semantic power of LLMs, the model successfully generates relevant questions for topics it has never seen during training. Future work will focus on upgrading the decoder to more advanced LLMs to improve natural language fluency while maintaining strict topical control.

Summary updated

BibTeX
@inproceedings{liu2024knowledge,
  author = {Hongfei Liu and Guohua Wang and Jiayuan Xie and Jiali Chen and Wenhao Fang and Yi Cai},
  title = {{Knowledge-Guided Cross-Topic Visual Question Generation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure