arXiv(opens in a new tab)cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.12262

Diagram-MMU: A Multi-Modal Benchmark for Scientific Diagrams

Weihao Bo, Shan Zhang, Yanpeng Sun, Jie Liu, Yongke Yao, Jinhao Du, Wei He, Kai Zou, Zechao Li, Jingdong Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multimodal Large Language Models (MLLMs) have been growing the capability for scientific writing and collaboration. For example, OpenAI Prism is a free workspace for scientific writing and collaboration. One important feature in Prism is turning scientific diagrams directly into LaTeX TikZ code. In this paper, we build a benchmark, Diagram-MMU, a multi-modal benchmark designed to assess MLLMs’ ability for scientific diagram parsing and understanding. Diagram-MMU features 3.7k curated diagrams and 18.3k human-validated questions across six domains. It evaluates MLLMs on three tasks common in vibe writing workspaces: diagram-to-code parsing, diagram-to-code editing, and diagram question answering, alongside agentic settings per task. The evaluation of 12 MLLMs reveals that diagram-to-code tasks are more challenging than diagram question answering: models can reason well over diagrams but struggle to parse and edit them, underscoring the need for methods to enhance MLLMs’ capability in diagram-to-code generation. Under agentic settings, most models improve parsing and editing performance but degrade on question answering, while Claude-4.6 Opus consistently improves across all three tasks.

1 Introduction

In the wake of significant advancements in large language models (LLMs) [1, 2, 3], multimodal large language models (MLLMs) [4, 5, 6, 7] have rapidly evolved to extend their versatility across vision–language tasks [8, 9, 10, 11]. To bring these capabilities into everyday research workflows, OpenAI Prism [12] provides a free vibe writing workspace where any researcher who writes in LaTeX can draft papers, generate figures, and convert scientific diagrams into TikZ code.

Scientific diagrams are the primary visual medium through which researchers convey experimental results, mathematical relationships, molecular structures, and circuit topologies [13, 14, 15]. A researcher working with diagrams needs to: (1) parse a diagram into editable TikZ code so it can be included in a manuscript; (2) edit a diagram–changing colors, labels, data values, or layout–to fit specific requirements; and (3) describe or reason about diagram to interpret domain-specific semantics of symbols, or even perform hypothetical reasoning (what-if) about how answers change conditioned on modified diagrams.

Table 1: Comparison with diagram-to-code and question-answering benchmarks. #Diag.: unique diagrams across diagram types (#Diag. Type). Tasks include three fundamental tasks (evaluating how to think): Diagram-to-Code Parsing (D2C-P), Diagram-to-Code Editing (D2C-E), and Diagram Question Answering (DQA), alongside agentic settings (evaluating how to act). Evaluation spans multi-levels: object-level F1 for fine-grained element grounding, CrystalBLEU for TikZ syntax correctness, image-level for visual appearance similarity, and answer accuracy (Acc.) for DQA. Benchmarks without TikZ Code (✗) target Python charts, HTML WebUIs, SVG graphics, or no code (ChartE3). ✓ – is partially supported (limited editing or text-only input). ⊘\oslash denotes the synthetic diagrams.

Data Tasks Evaluation Metrics Benchmark TikZ Code #Diag. Type #Diag. D2C-P D2C-E DQA Agentic Object CBLEU Image Answer Acc. Diagram-to-Code Parsing ChartMimic ⊘\oslash [14] ✗ 1 2.4k ✓ ✓ – ✗ ✗ ✓ ✓ ✓ ✗ InfiBench-V [16] ✗ 2 0.3k ✓ ✗ ✗ ✗ ✗ ✓ ✓ ✗ Plot2Code [17] ✗ 1 0.1k ✓ ✗ ✗ ✗ ✗ ✓ ✓ ✗ SVG-Diagrams [18] ✗ 4 0.5k ✓ ✗ ✗ ✗ ✗ ✗ ✓ ✗ DiagramGenBenchmark [19] ✓ 2 0.4k ✓ ✓ – ✗ ✗ ✗ ✓ ✓ ✗ AutomaTikZ [20] ✓ 4 1.0k ✓ – ✗ ✗ ✗ ✗ ✓ ✓ ✗ DeTikZify [21] ✓ 4 1.5k ✓ ✗ ✗ ✗ ✗ ✓ ✓ ✗ Image2Struct [22] ✓ 4 0.3k ✓ ✗ ✗ ✗ ✗ ✗ ✓ ✗ Diagram-to-Code Editing ChartE3 [23] ✗ 1 0.8k ✗ ✓ ✗ ✗ ✓ ✗ ✓ ✗ ChartM3⊘\oslash [24] ✗ 1 1.0k ✗ ✓ ✗ ✗ ✗ ✓ ✓ ✗ Diagram Question Answering CharXiv [13] ✗ 1 2.3k ✗ ✗ ✓ ✗ ✗ ✗ ✗ ✓ ChartQA [25] ✗ 1 1.0k ✗ ✗ ✓ ✗ ✗ ✗ ✗ ✓ SGP-Bench ⊘\oslash [26] ✗ 2 3.5k ✗ ✗ ✓ – ✗ ✗ ✗ ✗ ✓ MATHEMETRIC ⊘\oslash [15] ✗ 3 1.2k ✗ ✗ ✓ ✗ ✓ ✗ ✗ ✓ Diagram-MMU (Ours) ✓ 6 3.7k ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓

To assist with the above tasks, MLLMs need strong foundational abilities in perception, coding, domain knowledge, and reasoning (e.g., how to think [7]). Moreover, in the vibe writing workspace, models also need to know how to act (agentic ability [7]): searching TikZ for unfamiliar syntax, coding based on the provided visual objects, building on TikZ codes to apply edits, or deciding which of these steps to invoke for task solving. Most existing benchmarks (Table 1) cover narrow diagram types (predominantly charts) with Python or SVG as the code representation, include a single task (coding, editing, or question answering), and no current benchmark designs agentic settings during evaluation.

We introduce Diagram-MMU, a multi-modal benchmark designed to assess MLLMs’ ability across diagram-to-code parsing (D2C-P), diagram-to-code editing (D2C-E), and diagram question answering (DQA), alongside agentic evaluation settings. This benchmark comprises a carefully curated dataset sourced from TikZ/LaTeX documentations, with a selection and filtering process to control quality. The final 3,744 unique diagrams paired with 18,305 evaluation samples are cross-validated by 13 graduate students. Specifically, (1) we adopt TikZ code, which is commonly used in paper writing in LaTeX and integrates directly into Overleaf and Prism, and cover six scientific diagram types including charts, planar geometry, 3D shapes, graphs, chemistry, and circuit diagrams (Fig. 1)–for the first time covering chemistry and circuits for diagram-to-code tasks; (2) for evaluation metrics on diagram-to-code tasks, we use three levels: image-level measuring visual appearance similarity, code-level measuring syntactic correctness, and our object-level F1 scores measuring the basic objects that the code draws; (3) we design 16 controllable evaluation settings (Table 4): 3 for foundational ability and 13 for agentic ability–context utilization, tool use, state management, and planning. Importantly, for tool use we build our TikZ search tool as an MCP server [27], enabling MLLMs to selectively access relevant references, reducing the noise of web search and the context rot caused by loading full PDF manuals.

Figure

Figure 1: Demo illustration of the six types of diagrams in Diagram-MMU.

Overall, Diagram-MMU is the first benchmark to test both foundational and agentic abilities for solving scientific diagram-related tasks. Evaluation on 12 MLLMs (6 closed-source, 6 open-source) reveals the key findings on foundational ability: (1) Models can reason well over diagrams (DQA accuracy up to 86%) but struggle to code them (D2C-P object-level F1 ranges 31–57%), revealing perception and coding limitations; (2) Models that fail on diagram-to-code parsing also struggle with editing (D2C-E) and answering tasks (DQA); (3) Gemini-3.0 Pro achieves the most balanced profile across three tasks. On the agentic ability, (4) agency benefits editing more than parsing, likely because textual editing instructions help guide tool and context use; (5) most models degrade from excessive retrieval or poorly targeted queries in the TikZ search process, while Claude-4.6 Opus has the strongest tool use ability; (6) planning is the weakest agentic capability, especially on DQA (−-0.3 to −-8.8 accuracy degradation). Diagram-MMU serves as a pilot evaluation testbed for scientific diagram parsing, editing, and understanding in vibe writing workspaces, and we hope it inspires further works.

References (51)