arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.15306cs.CLcs.CV
收藏

DeTikZify:使用TikZ为科学图形和草图合成图形程序

DeTikZify: Synthesizing Graphics Programs for Scientific Figures and Sketches with TikZ

University of Mannheim(曼海姆大学);University of Technology Nuremberg(纽伦堡工业大学)

Jonas Belouadi, Simone Paolo Ponzetto, Steffen Eger

AI总结:

DeTikZify是一种多模态语言模型,通过新数据集和MCTS推理算法,将草图及现有图形自动合成为TikZ程序,性能超越Claude 3和GPT-4V。

摘要:

创建高质量的科学图形可能既耗时又具有挑战性,尽管在纸上勾画想法相对容易。此外,重新创建未以保留语义信息的格式存储的现有图形同样复杂。为解决这一问题,我们引入了DeTikZify,一种新颖的多模态语言模型,能够基于草图和现有图形自动将科学图形合成为保留语义的TikZ图形程序。为此,我们创建了三个新数据集:DaTikZv2,迄今为止最大的TikZ数据集,包含超过36万个由人类创建的TikZ图形;SketchFig,一个将手绘草图与其对应的科学图形配对的数据集;以及MetaFig,一个包含多样科学图形及相关元数据的集合。我们在MetaFig和DaTikZv2上训练DeTikZify,并结合从SketchFig学习到的合成生成草图。我们还引入了一种基于MCTS的推理算法,使DeTikZify能够迭代优化其输出,而无需额外训练。通过自动和人工评估,我们证明DeTikZify在合成TikZ程序方面优于商业的Claude 3和GPT-4V,且MCTS算法有效提升了其性能。我们公开了代码、模型和数据集。

英文摘要:

Creating high-quality scientific figures can be time-consuming and challenging, even though sketching ideas on paper is relatively easy. Furthermore, recreating existing figures that are not stored in formats preserving semantic information is equally complex. To tackle this problem, we introduce DeTikZify, a novel multimodal language model that automatically synthesizes scientific figures as semantics-preserving TikZ graphics programs based on sketches and existing figures. To achieve this, we create three new datasets: DaTikZv2, the largest TikZ dataset to date, containing over 360k human-created TikZ graphics; SketchFig, a dataset that pairs hand-drawn sketches with their corresponding scientific figures; and MetaFig, a collection of diverse scientific figures and associated metadata. We train DeTikZify on MetaFig and DaTikZv2, along with synthetically generated sketches learned from SketchFig. We also introduce an MCTS-based inference algorithm that enables DeTikZify to iteratively refine its outputs without the need for additional training. Through both automatic and human evaluation, we demonstrate that DeTikZify outperforms commercial Claude 3 and GPT-4V in synthesizing TikZ programs, with the MCTS algorithm effectively boosting its performance. We make our code, models, and datasets publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑