arXiv:2608.13441cs.CVAug 2026

Manuscript Offprint

arXiv:2608.13441

Edit2TikZ: A Comprehensive and Challenging Benchmark for Scientific Figure Editing with TikZ

Zongyun Zhang, Jiacheng Ruan, Xian Gao, Ruizhu Zhou, Lingcheng Meng, Lining Hu, Ting Liu, Yuzhuo Fu

Abstract

Although multimodal large language models (MLLMs) have shown substantial potential in visual understanding and graphic code generation, editing scientific figures through code presents a greater challenge: a model must jointly recover visual structure, ground the requested change, generate compilable code, and preserve all unrelated content. While existing TikZ benchmarks mainly focus on figure reconstruction and generation, few systematically evaluate instruction-guided scientific figure editing with compilable code. We introduce Edit2TikZ, a comprehensive benchmark for scientific figure editing tasks, featuring 1,548 diverse and high-quality samples. Edit2TikZ combines real-world and controlled synthetic edit cases, supports both textual and visual localization request, and contains multi-step editing, each with step-level annotations. We further construct a human-aligned evaluation framework to measure whether a requested edit is completed while irrelevant content is preserved. Utilizing Edit2TikZ, we evaluate 14 mainstream MLLMs and find that current systems remain unreliable: on average, proprietary models achieve a compilation success rate of merely 75% and remain limited in both figure restoration and edit correctness, while compact models below 9B struggle further with instruction following and complete figure generation. Therefore, we build a mixed training set TikZEditMix and adopt reconstruction-then-editing curriculum learning for compact models. On Qwen3.5-4B, this training improves the compilation success rate from 45.35% to 83.40% and yields an average improvement of 18.7 points across our proposed evaluation metrics. The code and data will be released at attr/Border[0 0 0] user/Subtype/Link/A<</S/URI/URI(https://github.com/Solunny/Edit2TikZ)>>https://github.com/Solunny/Edit2TikZ.

Shanghai Jiao Tong University1

zy.zhang2024@sjtu.edu.cn

1 Introduction

Figure

Figure 1: Previous benchmarks mainly focus on figure reconstruction or chart editing, whereas Edit2TikZ supports varied edit requests across a broad range of figure types.

Multimodal large language models (MLLMs) have shown substantial potential in visual understanding, reasoning, and code generation (Liu et al. 2023). These capabilities create an opportunity for end-to-end scientific-figure editing: when source code is unavailable, a model may receive only a rendered figure and an edit request, then output a compilable graphics program that realizes the requested change. As illustrated in Figure 1, this task must support localized revisions across diverse figure types rather than a single visual genre. This workflow is substantially harder than recognizing figure content or generating code from text alone. The model must recover latent graphical structure from pixels, ground the objects and relations targeted by the instruction, produce a compilable program, and preserve unchanged content.

Existing benchmarks still leave this ability insufficiently evaluated. Graphics-program synthesis benchmarks cover the generation of programs from scientific figures, sketches, or text, including DeTikZify (Belouadi et al. 2024), TikZero (Belouadi et al. 2025), GeoTikzBridge (Sun et al. 2026), and broader image-to-code benchmarks (Periasami et al. 2026). However, these benchmarks mainly evaluate reconstruction or generation, and they do not support edit instructions that test whether a model can modify the requested content while preserving the rest of the figure.

ResourceEdit taskMulti-step editingSourcew/ visual promptEdit typesScopeNumber
DeTikZify (2024)×\times–Real×\times–TikZ scientific figures1,000
GeoTikZBridge (Sun et al. 2026)×\times–Synthetic×\times–Geometry1,000
vTikZ(Reux et al. 2025)✓\checkmark×\timesReal×\times3TikZ scientific/animal figures100
ChartEdit(Zhao et al. 2025a)✓\checkmark×\timesBoth×\times6Chart1,405
Edit2TikZ✓\checkmark✓\checkmarkBoth✓\checkmark8 atomicTikZ scientific figures1,548

Table 1: Comparison of our proposed Edit2TikZ with other related graphics program generation benchmarks.

Chart-editing benchmarks further advance the study of visually grounded figure editing, but they mainly target plotting-library graphics such as bar charts, line charts, and scatter plots (Zhao et al. 2025a; Chen et al. 2026; Li et al. 2026; Kapadnis et al. 2026). This scope does not cover many general scientific figures, such as geometric diagrams, circuit schematics, and model architectures. Existing benchmarks therefore either lack editable instructions, separate visual reconstruction from code editing, or focus on chart-style graphics. As a result, a dedicated benchmark for end-to-end editing of diverse scientific figures into compilable TikZ code is still urgently needed.

To address this gap, we introduce Edit2TikZ, a benchmark of 1,548 samples for scientific-figure editing. Each sample pairs a source figure with an editing instruction and requires the model to produce compilable TikZ code for the revised figure. The benchmark combines real-world and controlled synthetic edit cases and supports both text-based and visual localization requests. We define eight atomic edit operations, and each sample comprises one or more edit units drawn from them. All edit units are annotated and human-verified. We further construct a human-aligned evaluation framework to assess whether the requested modifications are completed while other text, objects, relations, and layout are preserved.

We conduct experiments of 6 open-source and 8 proprietary models on our Edit2TikZ. The results reveal that current systems remain unreliable: proprietary models compile and render only about 75% of test examples on average and remain limited in both figure restoration and edit correctness, while compact models below 9B struggle further with instruction following and complete figure generation. These results show that end-to-end scientific-figure editing requires more than instruction understanding; it also depends on reliable image-to-TikZ reconstruction.

To strengthen compact models on this task, we construct TikZEditMix, a mixed training set that combines scientific-figure editing samples with image-to-TikZ reconstruction samples from DaTikZv3 (Belouadi et al. 2025), and conduct a two-stage curriculum: first learning image-to-TikZ reconstruction, then specializing in scientific-figure editing. On Qwen3.5-4B, this training raises the compilation success rate from 45.35% to 83.40% and improves our proposed metrics by 18.7 points on average.

Our key contributions are as follows:

  • We introduce Edit2TikZ, a comprehensive benchmark for scientific-figure editing that spans diverse figure sources, edit requests, and edit operations.
  • We construct a human-aligned evaluation framework that jointly assesses requested-edit completion and non-target preservation.
  • Evaluation results on 14 MLLMs show that Edit2TikZ remains highly challenging. We therefore build a specialized training set, TikZEditMix, and show that two-stage curriculum learning substantially improves compact-model performance.