Abstract
Visual Question Generation (VQG) research focuses predominantly on natural images while neglecting the diagram, which is a critical component in educational materials. To meet the needs of pedagogical assessment, we propose the Diagram-Driven Course Questions Generation (DDCQG) task and construct DiagramQG, a comprehensive dataset with 15,720 diagrams and 25,798 questions across 37 subjects and 371 courses. Our approach employs course and input text constraints to generate course-relevant questions about specific diagram elements. We reveal three challenges of DDCQG: domain-specific knowledge requirements across courses, long-tail distribution in course coverage, and high information density in diagrams. To address these, we propose the Hierarchical Knowledge Integration framework (HKI-DDCQG), which utilizes trainable CLIP for identifying relevant diagram patches, leverages frozen vision-language models for knowledge extraction, and generates questions with trainable T5. Experiments demonstrate that HKI-DDCQG outperforms existing models on DiagramQG while maintaining strong generalizability across natural image datasets, establishing a strong baseline for DDCQG.
The Challenge of Educational Diagrams
While Visual Question Generation (VQG) has made significant strides, it has historically suffered from a "natural image" bias. Most models are trained to ask questions about common objects in everyday scenes, such as cats in kitchens or cars on streets. However, in pedagogical settings, diagrams—such as food webs, circuit boards, or historical timelines—are the primary vehicles for information.
Generating questions from diagrams is significantly harder for three primary reasons:
- Domain-Specific Knowledge: Effective questions require an understanding of specialized concepts. For instance, one cannot ask a meaningful question about a "Bivalve" without understanding its role in ecological interactions.
- Information Density: Diagrams pack far more discrete objects and complex relationships into a single frame than a typical photograph.
- The Long-Tail Problem: Educational content is highly diverse. While "Introductory Biology" may have thousands of diagrams, niche subjects like "20th Century American History" may have very few, making it difficult for models to generalize.
DiagramQG: A New Benchmark for Pedagogy
To address these challenges, researchers introduced DiagramQG, the first large-scale dataset specifically designed for course-relevant question generation. The dataset features 15,720 diagrams and 25,798 questions, covering 6 major disciplines and 371 distinct courses.
Diagrams in this set average 10.5 objects per image, compared to just 3.3 in standard natural image datasets like VQG-COCO. To guide generation, each entry includes a "Course" constraint (e.g., Ecological Interactions) and an "Input" constraint (e.g., Bivalves), ensuring the resulting questions are pedagogically relevant rather than superficial.
The HKI-DDCQG Framework
The proposed Hierarchical Knowledge Integration (HKI-DDCQG) framework utilizes a three-stage pipeline to bridge the gap between visual data and domain knowledge:
- HierKnowExtract: The system decomposes a diagram into a pyramid of patches at different scales. A trainable CLIP model identifies which specific patches are most relevant to the input text and course context.
- KnowSelect: A frozen Vision-Language Model (VLM), such as Qwen2.5-VL, acts as a knowledge extractor. It analyzes the relevant patches to generate descriptive knowledge sentences.
- KnowFusionQG: A trainable T5 encoder-decoder fuses the visual patches, course constraints, and extracted knowledge. A gated cross-modal attention mechanism ensures the final question is grammatically fluent and pedagogically deep.
By freezing the heavy VLM and only training the CLIP and T5 components, the framework remains computationally efficient while leveraging the VLM's vast internal knowledge base.
Key Results and Insights
HKI-DDCQG establishes a new state-of-the-art for the DDCQG task. On the DiagramQG dataset, the framework (using Qwen2.5-7B and T5-Large) achieved a CIDEr score of 4.04, significantly outperforming general-purpose models like GPT-4o (2.20) and Claude 3.5 Sonnet (2.05).
Beyond diagrams, the model demonstrated strong generalizability, outperforming specialized models on natural image datasets like K-VQG (30.12 CIDEr vs. the previous best of 22.79). Human validation by subject-matter experts confirmed that the model produces high-quality, relevant assessment items suitable for classroom use.
Future Directions
While HKI-DDCQG represents a major step forward, limitations remain. The model currently focuses on open-ended questions and does not yet generate multiple-choice options or "distractors," which are essential for automated testing. Future research will focus on developing "full-stack" assessment tools capable of generating both complex questions and plausible incorrect answers simultaneously.
Summary updated