DiagramRAG: A Lightweight Framework to Retrieve Scientific Diagram for Figure Generation
Not on the map. Why?
Abstract (arXiv)
Scientific diagrams are essential for communicating complex methodologies in academic papers. A natural way for researchers to specify such diagrams is through rough sketches, where text labels, connectors, and spatial arrangements express early semantic and topological intentions. However, sketches are usually incomplete, making them insufficient for directly producing publication-quality diagrams. Existing sketch-based generation methods mainly reconstruct the sketch itself, while recent text-driven diagram generation frameworks rely on textual semantics and do not fully exploit the topological structure contained in sketches. In this paper, we introduce DiagramRAG, a lightweight retrieval-augmented framework for sketch-based scientific diagram completion. Given a user sketch, DiagramRAG retrieves reference diagrams that are both semantically relevant to the sketch content and topologically compatible with its structure, and uses them to guide downstream diagram generation. To enable efficient structure-aware retrieval, we represent diagrams as knowledge graphs, synthesize sketch variants at different simplification levels, and train an embedding model to align sketches with compatible diagrams in a shared space. The retrieved references further provide content, topology, and visual priors for completing and rendering the final diagram. Experiments show that DiagramRAG achieves F1-scores of 0.848 and 0.802 on DiagramBank and FigureBench, respectively, and improves generation quality with the best VLM-as-a-Judge score of 7.170, while reducing inference latency to 35.48 seconds per sample. Our code and data are available at https://anonymous.4open.science/r/DiagramRAG-A262 and https://huggingface.co/datasets/anonymous-review-a262/DiagramSketch.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 43 references that are in the map. First posted on arXiv 27 May 2026.
Builds on
32 of 43 references.
References · 32
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
- 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,109
- 2016Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotationscited by 2,656
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,188
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,173
- 2016A Diagram Is Worth A Dozen Imagescited by 804
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2017Scene Graph Generation by Iterative Message Passingcited by 462
20 more
- 2017Neural Motifs: Scene Graph Parsing with Global Contextcited by 414
- 2016Visual Relationship Detection with Language Priorscited by 334
- 2026Qwen3-VL-Embedding and Qwen3-VL-Reranker: A Unified Framework for State-of-the-Art Multimodal Retrieval and Rankingcited by 230
- 2024Prometheus-Vision: Vision-Language Model as a Judge for Fine-Grained Evaluationcited by 125
- 2018SimGNN: A Neural Network Approach to Fast Graph Similarity Computationcited by 90
- 2023CLIP for All Things Zero-Shot Sketch-Based Image Retrieval, Fine-Grained or Notcited by 79
- 2017Learning to Infer Graphics Programs from Hand-Drawn Imagescited by 74
- 2024Harnessing Diversity for Important Data Selection in Pretraining Large Language Modelscited by 34
- 2023DiagrammerGPT: Generating Open-Domain, Open-Platform Diagrams via LLM Planningcited by 29
- 2026PaperBanana: Automating Academic Illustration for AI Scientistscited by 26
- 2020Optimal Transport Graph Neural Networkscited by 24
- 2026AutoFigure: Generating and Refining Publication-Ready Scientific Illustrationscited by 23
- 2016Viziometrics: Analyzing Visual Information in the Scientific Literaturecited by 15
- 2025DiagramEval: Evaluating LLM-Generated Diagrams via Graphscited by 8
- 2026SciFig: Towards Automating Editable Figure Generation for Scientific Paperscited by 8
- 2025Handling Label Noise via Instance-Level Difficulty Modeling and Dynamic Optimizationcited by 6
- 2026SciFlow-Bench: Evaluating Structure-Aware Scientific Diagram Generation via Inverse Parsingcited by 5
- 2017Dynamic Graph Generation Network: Generating Relational Knowledge from Diagramscited by 3
- 2025SketchAgent: Generating Structured Diagrams from Hand-Drawn Sketchescited by 3
- 2025Not All Documents Are What You Need for Extracting Instruction Tuning Datacited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generation
- 2026SketchJudge: A Diagnostic Benchmark for Grading Hand-drawn Diagrams with Multimodal Large Language Models
- 2026Diagram-MMU: A Multi-Modal Benchmark for Scientific Diagrams
- 2026Knossos and Ariadne: Benchmarking and Learning Complete Diagram Topology Extraction with Vision-Language Models
- 2026GenAI-DrawIO-Creator: A Framework for Automated Diagram Generation
- 2024DeTikZify: Synthesizing Graphics Programs for Scientific Figures and Sketches with TikZ
- 2026When Looks Do Not Lie: Discourse Structure Guided In-Context Learning for Faithful Diagram Generation
- 2026Math-Vision Diagrams: A Comprehensive Benchmark for Evaluating LLM Mathematical Diagram Generation Capabilities