Abstract
Visual Question Generation (VQG) has seen significant progress in natural image domains, yet educational diagrams—rich in information and conceptual depth—remain largely overlooked. We introduce DiagramQG, a large-scale dataset of 8,372 diagrams and 19,475 questions designed to assess conceptual understanding across diverse academic subjects. Alongside this dataset, we propose the Hierarchical Knowledge Integration (HKI-DQG) framework. By integrating multi-scale visual patches with external knowledge extracted via vision-language models, HKI-DQG generates course-relevant, concept-focused questions that outperform existing baselines and even state-of-the-art closed-source models.
Addressing the Complexity of Educational Diagrams
While AI models have become proficient at describing natural scenes, educational diagrams present a unique challenge. Unlike natural photos, diagrams like charts, maps, and schematics possess high information density and require specialized domain knowledge to interpret correctly.
Current VQG systems typically struggle with three core issues when applied to educational content:
- Context Independence: Models often generate generic questions that ignore specific pedagogical goals.
- Superficiality: Questions frequently focus on simple visual labels (e.g., "What is label A?") rather than deep conceptual relationships (e.g., "How does a decrease in Bivalves affect the Geese population?").
- Knowledge Gaps: Models lack the domain-specific "common sense" required for subjects like biology or physics.
To bridge this gap, we define the Diagram-Driven Course Questions Generation (DDCQG) task, which requires models to generate questions based on a visual diagram constrained by specific academic contexts.
The DiagramQG Dataset
The centerpiece of this research is DiagramQG, a comprehensive benchmark that significantly raises the bar for diagram-based AI. It features over 15,000 unique diagrams across 6 disciplines and 371 distinct courses. Unlike previous datasets that might only provide an answer as a hint, DiagramQG provides Course (context) and Input (target element) constraints to guide the model toward pedagogically useful questions.
The HKI-DQG Framework
To tackle the DDCQG task, we developed the Hierarchical Knowledge Integration (HKI-DQG) framework. This three-stage process moves beyond simple image-to-text pipelines:
- Hierarchical Knowledge Extraction: The model decomposes a diagram into a pyramid of multi-scale patches. It uses a trainable encoder to identify relevant areas and a frozen Vision-Language Model (VLM) to extract raw knowledge sentences from these specific regions.
- Knowledge Selection: To filter out visual "noise," a T5 encoder and attention mechanism identify the knowledge sentences most relevant to the target element and academic course.
- Knowledge Fusion: Finally, selected visual patches, filtered knowledge, and text constraints are fused using cross-modal attention. A T5 decoder then generates the final, conceptually focused question.
Key Results and Insights
The HKI-DQG framework established a new state-of-the-art on the DiagramQG benchmark, achieving a BLEU-4 score of 44.85 and a CIDEr score of 4.04. Notably, it outperformed "closed-source" giants like GPT-4o and Claude-3.5-Sonnet in generating course-relevant questions. While large language models are fluent, they often suffer from "Diagram Interpretation Bias," failing to connect specific visual elements to the deep pedagogical logic required for education.
Furthermore, the model demonstrated excellent generalizability. When tested on natural image datasets like VQG-COCO and OK-VQA, HKI-DQG maintained state-of-the-art performance, proving that its method of integrating vision and external knowledge is robust across different visual domains.
Conclusion and Future Work
DiagramQG and the HKI-DQG framework represent a significant step toward AI-driven educational tools. Future research will focus on expanding the system to generate multiple-choice questions with plausible distractors and improving performance on "long-tail" academic subjects that have fewer training examples. By forcing models to act like students who have "read the textbook" before viewing a diagram, we move closer to AI that truly understands conceptual information.
Summary updated