Saved in:
Bibliographic Details
Main Authors: Yu, Xinjiang, Han, Junyi, Chen, Zhuofan, Zhang, Chi, Fu, Xiangyu, Tan, Jingyuan, You, Zirui, Jian, Yixiang, Wang, Yu-Ping, Chai, Chengliang
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.27931
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916053194375168
author Yu, Xinjiang
Han, Junyi
Chen, Zhuofan
Zhang, Chi
Fu, Xiangyu
Tan, Jingyuan
You, Zirui
Jian, Yixiang
Wang, Yu-Ping
Chai, Chengliang
author_facet Yu, Xinjiang
Han, Junyi
Chen, Zhuofan
Zhang, Chi
Fu, Xiangyu
Tan, Jingyuan
You, Zirui
Jian, Yixiang
Wang, Yu-Ping
Chai, Chengliang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_27931
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle DiagramRAG: A Lightweight Framework to Retrieve Scientific Diagram for Figure Generation
Yu, Xinjiang
Han, Junyi
Chen, Zhuofan
Zhang, Chi
Fu, Xiangyu
Tan, Jingyuan
You, Zirui
Jian, Yixiang
Wang, Yu-Ping
Chai, Chengliang
Artificial Intelligence
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.
title DiagramRAG: A Lightweight Framework to Retrieve Scientific Diagram for Figure Generation
topic Artificial Intelligence
url https://arxiv.org/abs/2605.27931