Manuscript Offprint

arXiv:2609.01409

EdiTikZ: Scientific Figure Editing from Revision Trajectories

Christian Greisinger, Zhixue Zhao, Steffen Eger

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Vision-language models (VLMs) have shown strong performance in generating scientific figures from text or images. However, producing publication-ready figures requires iterative refinement, making scientific figure editing an important yet largely unexplored task. Existing approaches rely on costly proprietary agentic systems, focus primarily on evaluation, or construct training supervision from synthetically generated edits. Instead, we leverage naturally occurring scientific revision and development trajectories as a scalable source of supervision. To this end, we introduce DaEdiTikZ, the first large-scale dataset of revision-derived scientific figure edits, constructed by mining 391K plausible TikZ edit pairs from arXiv, GitHub, and TeX SE and inferring 781K directed edit instructions with a VLM conditioned on rendered figures and TikZ code. We further introduce DaEdiTikZ-Bench, a human-refined benchmark with 790 instances, and train two compact Qwen3.5-based EdiTikZ models (4B and 9B) by jointly learning reconstruction and editing, followed by reinforcement learning (RL) with complementary rewards for rendered fidelity and edit application. Automatic evaluation places our 9B model above all tested baselines, while human evaluation with 9 annotators and 4,320 ratings places it above GPT-5.6-Sol and on par with Gemini-3.1-Pro. Under severe out-of-distribution shifts, it remains competitive with GPT-5.6-Sol near its 2K training sequence-length regime. Models and datasets will be released.

1 INTRODUCTION

VLMs are increasingly capable of assisting researchers in multimodal tasks (Eger et al., 2026), including understanding and generating figures (Li et al., 2024b; Wang et al., 2024), tables (Moosavi et al., 2021), slides (Ge et al., 2025), and posters (Pang et al., 2025). These advances are driven by improvements in multimodal alignment (Liu et al., 2023), reasoning (Zhang et al., 2024; Huang et al., 2026), and agentic systems (Koh et al., 2024) that combine planning and tool use to tackle complex scientific workflows (Sun et al., 2026). Despite this progress, producing publication-ready scientific figures requires precise revisions, making the ability to modify existing figures from natural-language instructions an important yet underexplored capability.

Graphics programming languages such as TikZ are the de facto standard in academia due to their precision, interpretability, and seamless integration into the LATEX ecosystem. However, their diverse syntax and steep learning curve make them difficult for humans and VLMs to master (Belouadi et al., 2024a). Prior work has focused on generating TikZ from text (Greisinger and Eger, 2026) or images (Belouadi et al., 2024b), whereas editing requires a model to preserve large parts of a figure while selectively applying requested changes. Recent approaches rely on proprietary agentic systems (Lin et al., 2026b), target specialized domains such as charts (Zhao et al., 2025), or benchmark scientific figure editing (Rahman et al., 2026; Bo et al., 2026). Large-scale training supervision remains limited and predominantly synthetic (Wang et al., 2026; Bo et al., 2026).

In this work, we take a different perspective. Scientific figures naturally evolve through iterative human revisions during research, paper writing, and community discussions. These revisions capture rich but previously overlooked expert decisions about how figures should change, yet remain unused

Table 1: Scientific figure edits produced by GPT-5.6-Sol and our EdiTikZ-9B models before/after RL. Each model receives the source image and VLM-generated edit instruction. Human annotations provide scores for edit application (E), source preservation (P), and visual quality (Q). Overall: ☑: very good, ☑: good, ☑: bad, ☑: very bad. Ground-truth figures are shown for reference.

SourceEdit InstructionGround TruthGPT-5.6-SolEdiTikZ-9BEdiTikZ-9B-RL
![Figure](images/page2_figure1.png)The circular node labeled ψ\psi at the top is changed from having a black outline to having a light green fill. The rectangular boxes labeled AbA^b and BcB^c are changed from having a white fill to having a light blue fill. The label inside the right-hand box is changed from {BA∣a}\{B^A | a\} to {Bb}\{B^b\}. A new rectangular box with a light red fill, labeled p(λ∣a,b)p(\lambda | a, b), is added below the right-hand box. The horizontal red arrow labeled a∈{1,…,m}a \in \{1, \ldots, m\} is rerouted. It now starts from the bottom of the left box, goes down, turns right, and points to the left side of the new red box. A new vertical red arrow labeled bb is added, connecting the bottom of the right box to the top of the new red box. The vertical red arrow labeled λ\lambda is moved to originate from the bottom of the new red box instead of the right-hand box.![Figure](images/page2_figure2.png)
![Figure](images/page2_figure3.png)The title 'Grids with shader-faceted interp' at the top of the plot is removed. The surface geometry is changed from a custom set of coordinates to a mathematical function (hyperbolic paraboloid), resulting in a saddle shape with a peak in the top-left middle and a valley in the bottom middle. The axis ranges are modified: the x-axis now spans from -2 to 2, the y-axis spans from -2 to 2, and the z-axis spans from -4 to 4.![Figure](images/page2_figure4.png)
![Figure](images/page2_figure5.png)The thick blue path (path1) is rerouted. In the first image, it goes from node 6 up to node 7, then right to node 11, and finally to node 15. In the second image, the path from node 6 goes right to node 10, then right to node 14, and finally up to node 15. The thin green path (path2) is rerouted. In the first image, it goes from node 7 right to node 11, then right to node 15. In the second image, the path from node 7 goes down to node 6, then right to node 10, then right to node 14, and finally up to node 15.![Figure](images/page2_figure6.png)
![Figure](images/page2_figure7.png)The point labeled RA7(x)\mathcal{R}_A^7(x) is moved from the right of rA(x)r_A(x) to the left of it (between xx and rA(x)r_A(x)). The blue arrow is reversed; it now points from rA(x)r_A(x) to RA7(x)\mathcal{R}_A^7(x) (leftward) instead of from RA7(x)\mathcal{R}_A^7(x) to rA(x)r_A(x) (rightward). The red point vv and the red point yy are moved horizontally to the left, closer to the vertical dashed line HH. The red double-headed arrow between RA7(x)\mathcal{R}_A^7(x) and vv is shortened to reflect the new, closer positions of the points. The two red lines connecting the top points ( xx and RA7(x)\mathcal{R}_A^7(x)) to the bottom point yy are changed from single-headed arrows to double-headed arrows.![Figure](images/page2_figure8.png)

as supervision for multimodal models. Inspired by how early instruction-tuning methods leverage naturally occurring software revisions (Muennighoff et al., 2024; Wei et al., 2024; Li et al., 2024a), we introduce a scalable framework that recovers plausible scientific figure revision pairs from real-world repositories. Applied to TikZ figures from arXiv, GitHub, and TeX SE, this yields DaEdiTikZ, the first large-scale dataset of revision-derived scientific figure edits, containing 391K edit pairs. Since figures and their programs already exist, we synthesize only the missing edit instruction using a VLM conditioned on rendered figures and TikZ code, yielding 781K directed editing instances. We also introduce DaEdiTikZ-Bench, a human-refined benchmark with 790 editing instances.

Building on DaEdiTikZ, we train two small Qwen3.5-based EdiTikZ models that jointly learn figure reconstruction and editing, followed by RL with complementary rewards for rendered fidelity and edit application. Across three human-evaluation criteria on DaEdiTikZ-Bench, our 9B model performs above GPT-5.6-Sol and on par with Gemini-3.1-Pro. Post-training gains transfer even beyond the 2K-token training horizon to substantially more complex out-of-distribution figures from SPIQA and CharXiv. Table 1 shows representative editing results. Our key contributions are as follows:

• Revision-Derived Supervision: We introduce a scalable framework for recovering plausible edit pairs from naturally occurring collections of related scientific figures.

• Dataset and Benchmark: We release DaEdiTikZ with 391K plausible TikZ edit pairs (781K editing instances), and DaEdiTikZ-Bench with 790 human-refined instances.

• Editing-Specific Post-Training: We jointly train reconstruction and editing during SFT and use GDPO with complementary rewards for rendered fidelity and edit application.

• EdiTikZ Models: We train compact 4B and 9B EdiTikZ models. EdiTikZ-9B-RL outperforms all tested baselines automatically, exceeds GPT-5.6-Sol and matches Gemini-3.1-Pro in human evaluation. It also transfers to substantially more complex OOD figures.

  1. Cross-Version Revisions

  2. Related Figures/Subfigures

  3. TeX SE Discussions

Figure

Figure 1: Sources of figure editing supervision. We recover plausible edit pairs from cross-version revisions (left), related figures and subfigures within shared scientific contexts (middle), and iterative refinements in TeX SE discussions (right).

References (57)