LLM Code Customization with Visual Results: A Benchmark on TikZ
Preprint
Abstract
With the rise of AI-based code generation, customizing existing code out of natural language instructions to modify visual results -such as figures or images -has become possible, promising to reduce the need for deep programming expertise. However, even experienced developers can struggle with this task, as it requires identifying relevant code regions (feature location), generating valid code variants, and ensuring the modifications reliably align with user intent. In this paper, we introduce vTikZ, the first benchmark designed to evaluate the ability of Large Language Models (LLMs) to customize code while preserving coherent visual outcomes. Our benchmark consists of carefully curated vTikZ editing scenarios, parameterized ground truths, and a reviewing tool that leverages visual feedback to assess correctness. Empirical evaluation with stateof-the-art LLMs shows that existing solutions struggle to reliably modify code in alignment with visual intent, highlighting a gap in current AI-assisted code editing approaches. We argue that vTikZ opens new research directions for integrating LLMs with visual feedback mechanisms to improve code customization tasks in various domains beyond TikZ, including image processing, art creation, Web design, and 3D modeling.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- An empirical study on low-code programming using traditional vs large language model supportJournal of Systems and Software, 2025
- From Words to Structured Visuals: A Benchmark and Framework for Text-to-Diagram Generation and Editing2025
- PlotGen: Multi-Agent LLM-based Scientific Data Visualization via Multimodal Retrieval Feedback2025
- Large Language Models for Software Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology, 2024
- SVGDreamer: Text Guided SVG Generation with Diffusion Model2024
- IconShop: Text-Guided Vector Icon Synthesis with Autoregressive TransformersACM Transactions on Graphics, 2023
- Spellburst: A Node-based Interface for Exploratory Creative Coding with Natural Language Prompts2023
- On Programming Variability with Large Language Model-based Assistant2023
- CrystalBLEU: Precisely and Efficiently Measuring the Similarity of Code2022
- Simple Fast Algorithms for the Editing Distance between Trees and Related ProblemsSIAM Journal on Computing, 1989