DiagramRAG:一个用于科学图表生成的轻量级检索增强框架
DiagramRAG: A Lightweight Framework to Retrieve Scientific Diagram for Figure Generation
AI总结:
提出DiagramRAG框架,通过检索与草图语义和拓扑结构兼容的参考图表,实现草图到科学图表的自动补全与生成。
摘要:
科学图表对于在学术论文中传达复杂方法至关重要。研究人员指定此类图表的一种自然方式是通过粗略草图,其中文本标签、连接器和空间布局表达了早期的语义和拓扑意图。然而,草图通常不完整,不足以直接生成出版质量的图表。现有的基于草图的生成方法主要重构草图本身,而最近的文本驱动图表生成框架依赖文本语义,未能充分利用草图中包含的拓扑结构。在本文中,我们介绍了DiagramRAG,一个轻量级的检索增强框架,用于基于草图的科学图表补全。给定用户草图,DiagramRAG检索与草图内容语义相关且与其结构拓扑兼容的参考图表,并使用它们指导下游图表生成。为了实现高效的结构感知检索,我们将图表表示为知识图谱,在不同简化级别合成草图变体,并训练一个嵌入模型,将草图与共享空间中的兼容图表对齐。检索到的参考进一步提供内容、拓扑和视觉先验,用于补全和渲染最终图表。实验表明,DiagramRAG在DiagramBank和FigureBench上分别达到0.848和0.802的F1分数,并以最佳的VLM-as-a-Judge评分7.170提高了生成质量,同时将推理延迟降低到每个样本35.48秒。我们的代码和数据可在https://anonymous.4open.science/r/DiagramRAG-A262和https://huggingface.co/datasets/anonymous-review-a262/DiagramSketch获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。