Leveraging Large Language Models For Scalable Vector Graphics Processing: A Review Boris Malashenko, Ivan Jarsky, Valeria Efimova Abstract . In recent years, rapid advances in computer vision have significantly improved the processing and generation of raster images. However, vector graphics, which is essential in digital design, due to its scalability and ease of editing, have been relatively understudied. Traditional vectorization techniques, which are often used in vector generation, suffer from long processing times and excessive output complexity, limiting their usability in practical applications. The advent of large language models (LLMs) has opened new possibilities for the generation, editing, and analysis of vector graphics, particularly in the SVG format, which is inherently text-based and well-suited for integration with LLMs. This paper provides a systematic review of existing LLM-based approaches for SVG processing, categorizing them into three main tasks: generation, editing, and understanding. We observe notable models such as IconShop, StrokeNUWA, and StarVector, highlighting their strengths and limitations. Furthermore, we analyze benchmark datasets designed for assessing SVG-related tasks, including SVGEditBench, VGBench, and SGP-Bench, and conduct a series of experiments to evaluate various LLMs in these domains. Our results demonstrate that for vector graphics reasoning-enhanced models outperform standard LLMs, particularly in generation and understanding tasks. Furthermore, our findings underscore the need to develop more diverse and richly annotated datasets to further improve LLM capabilities in vector graphics tasks. \english 1. Introduction In recent years, there has been a significant breakthrough in the field of computer vision, particularly in image generation and processing. Modern machine learning models [ 30 , 31 , 40 , 7 ] demonstrate impressive results when working with raster images, enabling advancements in graphic design, art, and data visualization. At the same time, vector graphics are also widely used in digital design. Vector graphics have a fundamentally different structure and offer several advantages, including scalability without quality loss, compact representation, and ease of editing. Vector images are based on mathematical descriptions of shapes such as lines, curves, polygons, and text elements. Unlike raster images, which consist of pixels, vector images store shape information as a set of coordinates and instructions, making them ideal for use in design, web development, and printed media. The most popular vector graphics format is SVG (Scalable Vector Graphics), which is based on XML markup. Figure 1 . Example of smiley face in SVG format (left) and its rasterized analogue (right). Graphical elements in SVG files are text-based and are described using XML tags. For instance, a basic image in SVG format can be depicted as shown in Figure 1 . This approach allows easy editing using text editors and automated modifications using software tools. Moreover, SVG supports CSS styling and dynamic manipulation with JavaScript, making it particularly useful for web applications and interactive graphics. Despite the clear value of vector graphics, the development of methods for their automatic generation and processing is still in its early stages. The earliest pioneering models for vector graphics generation [ 21 , 6 , 18 , 28 ] produced relatively simple images that were often noisy and distorted. However, their quality was insufficient for industrial use. A significant breakthrough in this area came with the introduction of DiffVG [ 20 ] , which enabled iterative vectorization of raster images with subsequent optimization of coordinates and other shape parameters. This led to the development of multiple optimization-based methods for image vectorization [ 22 , 39 , 15 ] and vector domain-specific style transfer methods [ 14 , 32 , 19 ] . Furthermore, the advent of diffusion models [ 30 , 31 , 40 , 23 ] has significantly improved the quality of generated raster images, facilitating substantial improvements in vector image generation through vectorization techniques [ 16 , 39 ] . The high fidelity of diffusion-generated images provides a robust foundation for vectorization processes, leading to more accurate and visually coherent vector outputs. Moreover, these advancements have enabled the optimization of vectorized representations through Score Distillation Sampling (SDS) [ 26 ] loss, which refines the generated vector images by leveraging the gradients of diffusion models, thereby improving their structural consistency and overall quality. However, existing machine learning-based vectorization methods [ 20 , 22 , 3 , 2 , 15 ] still face several serious challenges [ 12 ] . At first, they often require more than 10 minutes to process one image, especially when handling high-quality source images. Secondly, vectorization algorithms can generate an excessive number of primitives, making manual editing and post-processing utterly difficult. Additionally, traditional approaches do not allow designers to intuitively control the generation and editing process using text-based queries, limiting their practical applicability. The study presented in [ 17 ] , which focuses on generating SVGs, deliberately avoids utilizing DiffVG due to its inefficiency and frequent failures. Instead, the authors propose a novel generating approach based on a diffusion process. However, this process operates unconditionally and requires further investigation and refinement to enhance its effectiveness. The emergence of large language models (LLMs) [ 1 , 11 , 42 ] has introduced new possibilities for vector graphics generation and processing, because vector files in SVG format are text-based. XML-based structure makes SVGs an ideal medium for interaction with language models, as LLMs can generate, analyze, and edit SVG code, enabling users to work with vector graphics using natural language commands. This approach simplifies the creation of complex graphic elements, reduces the effort of designers and developers, and fosters new techniques for automated image generation. It is important to note that research on applying large language models to SVG has already started, with several studies demonstrating the potential of this approach. Specifically, some works [ 35 , 4 , 45 ] showcase the feasibility of automatic SVG generation based on textual descriptions, as well as the application of LLMs for editing and optimizing existing vector images. These studies lay the groundwork for future technological advancements that combine the power of language models with the flexibility of vector formats. We believe that, at present, language models are the only viable versatile approach for processing vector images. In this paper, we explore existing methods for generating and processing vector graphics using LLMs, analyze their advantages and limitations, and discuss the future prospects of this field. Our contributions are as follows: • We systematize approaches to vector graphics processing with LLMs. • We verify and reassess prior research findings. • We evaluate recently appeared LLMs, including novel reasoning models, for vector graphics tasks. In this paper, we explore the role of large language models (LLMs) in vector graphics processing, highlighting their potential and drawbacks in SVG generation, editing, and understanding tasks. Section 2 provides an overview of existing LLM-based models capable of SVG processing. Section 3 presents a detailed analysis of benchmark datasets and evaluation frameworks used to assess LLMs’ capabilities in vector-related tasks, covering Image-text bridging, SVGEditBench [ 24 ] , SVG Taxonomy [ 41 ] , VGBench [ 45 ] , and SGP-Bench [ 27 ] . Section 4 describes our experimental methodology, including evaluation metrics, implementation details, and the systematized results obtained in our study. Finally, Section 5 summarizes our findings, discusses limitations, and outlines future directions for research in this field. 2. LLM-Based models capable of SVG processing In this section, we present a review of existing approaches for vector graphic processing that leverage the capabilities of LLMs. Our focus is on (1) specialized models explicitly designed for vector graphics, (2) general-purpose LLMs. We exclude methods that rely on vectorization techniques, because while being effective in certain contexts, they are often computationally intensive and impractical for real-world applications. Additionally, this review does not cover models for text-to-image generation that do not utilize LLMs, since in this research we explore the current capabilities and potential improvements of LLMs in the domains of vector graphic generation, editing, and analysis – areas where LLMs offer distinct advantages. 2.1. IconShop One of the first models leveraging LLM for vector image generation is the IconShop model [ 37 ] , which employs a Transformer Decoder-based autoregressive approach to generate vector icons by effectively capturing long-range dependencies within an SVG sequence. The model’s architecture consists of three main modules: an SVG embedding module, which encodes vector icon sequences using a learnable embedding matrix; a text embedding module, leveraging pre-trained BERT [ 9 ] tokenization to process input textual description; and a Transformer Decoder module, which finally generates text tokens of synthesized SVG image. The model operates within a constrained 100\times 100 bounding box, encoding SVG elements as tokenized sequences that include command types, coordinate arguments, and special markers. During training, text and SVG sequences are padded and concatenated together to a fixed length, allowing the autoregressive transformer to predict the next token based on previous inputs. The IconShop model was trained on the FIGR8 dataset [ 8 ] , which consists of black-and-white images paired with simple, often monosyllabic text labels. Although this dataset provides a suitable foundation for the initial exploration of vector image generation using LLMs, its simplicity also imposes certain limitations. The restricted complexity and diversity of the FIGR8 dataset hinder the model’s ability to generate complex and varied images when faced with complex prompts. This highlights the need for more diverse and richly annotated datasets to fully utilize the potential of state-of-the-art models in the task of generating complex vector graphics. 2.2. StrokeNUWA Another model connected to LLMs for vector image generation is the StrokeNUWA [ 33 ] approach. The authors adapted the successful autoregressive image generation approach based on VQ-VAE [ 36 ] to operating vector graphics. Similarly to raster images, StrokeNUWA utilizes VQ-VAE to convert vector images into a compressed representation as a sequence of tokens. Subsequently, an Encoder-Decoder Language Model generates vector images from textual descriptions. During training, the encoder remains frozen, meanwhile the decoder constructs its token vocabulary based on VQ-VAE and is responsible for the autoregressive generation of these tokens. The resulting token sequence is then decoded by the VQ-VAE decoder to reconstruct the final image. Despite its novel approach, the results presented by the authors are limited to simple images composed of unfilled curved lines. This raises concerns about the model’s applicability in practical settings, as its current capabilities appear significantly constrained. 2.3. StarVector A recently introduced model, StarVector [ 29 ] , enables the generation of vector images conditioned on textual prompts or input raster images. In this work, the authors present a Multi-Modal Large Language Model (MLLM) trained to process conditioning tokens derived from either an image encoder [ 10 ] or textual input. The model operates in an autoregressive manner, generating tokens that represent the output vector image based on the given conditioning input. The study addresses three interrelated tasks: vector image generation from textual descriptions, raster-to-vector conversion, and diagram generation. To facilitate a comprehensive evaluation, the authors introduce multiple datasets of varying complexity. The assessment of model performance is conducted using their custom benchmarking framework, SVG-Bench [ 29 ] . For image vectorization, in addition to standard metrics such as MSE, SSIM, and LPIPS, the authors employ DinoScore [ 25 ] and further assess the number of generated tokens and conduct user studies. In the text-to-image generation task, the evaluation is based on FID, CLIP-FID, and CLIP Score metrics. The reported results are promising, demonstrating the model’s capability to produce high-quality vector images. However, despite its effectiveness, the generated images still exhibit noticeable artifacts, particularly when processing complex prompts. Moreover, reproducibility remains an issue, as the authors have not yet released the code, pre-trained models, benchmarks, or datasets. 2.4. Empowering LLMs to Understand and Generate Complex Vector Graphics One of the most recent models for vector image generation and analysis using LLMs is SVG4LLM, introduced in [ 38 ] . In this work, the authors propose the new Vision-Language Large Model (VLLM) while introducing a key innovation: the integration of SVG-specific tokens into the shared token vocabulary. This enhancement enables the model to better capture the structural characteristics of the SVG code, leading to more accurate and coherent generation and analysis of vector graphics. In addition, the study focuses on the challenge of annotating SVG images. To address this, the authors curated a specialized annotated dataset, which was utilized during training to improve the model’s understanding of vector graphics. The reported results demonstrate strong performance, showcasing the potential of the model in both generation and analysis tasks. However, it is important to note that the dataset, source code, and trained model weights have not yet been released publicly. As a result, independent verification of the reported findings is currently impossible. 2.5. General-Purpose LLMs Models, such as GPT-4 [ 1 ] , LLaMA [ 11 ] , and Qwen [ 42 ] , have demonstrated impressive capabilities in a wide range of natural language processing (NLP) tasks, but their application to vector graphics remains underexplored. Unlike specialized models trained explicitly for SVG generation and manipulation, general-purpose LLMs possess broad adaptability and a vast pre-trained knowledge base, enabling them to reason about and process SVG code without domain-specific fine-tuning. Recent studies suggest that while these models can perform basic SVG-related tasks – such as code generation, semantic understanding, and structural editing – their effectiveness remains inconsistent, especially when dealing with intricate vector compositions. Moreover, the reliance on tokenization strategies optimized for textual data often leads to inefficiencies when encoding geometric primitives and SVG-specific commands. Despite these challenges, the flexibility of general-purpose LLMs could make them a valuable tool for exploratory research in SVG processing, particularly when combined with fine-tuning or retrieval-augmented generation techniques. As the capabilities of foundation models continue to expand, their role in vector graphics processing is likely to grow, driving the need for improved tokenization strategies and fine-grained task-specific adaptation. 3. Benchmarks Scalable Vector Graphics (SVG), being a text-based format, aligns well with LLMs, allowing direct manipulation without rasterization. Although early studies [ 35 , 4 ] have shown that models like GPT can interpret and edit SVG, they mainly emphasize qualitative examples rather than systematic evaluation. To truly assess LLMs’ capabilities in processing vector graphics, standardized benchmarks and metrics are essential. This section examines recent efforts to establish such benchmarks. 3.1. Image-text bridging The paper [ 5 ] presents the first systematic approach to evaluate LLMs on visual understanding tasks using SVG as a bridge between image and text data. To explore the visual reasoning capabilities of LLMs, the authors tested models on a range of tasks, including visual question answering, image classification under distribution shifts, few-shot learning, and image generation through visual prompting. An example for one of the tasks is presented on Figure 2 . Figure 2 . Image-text bridging [ 5 ] dataset curation. The figure is adapted from original paper. The results showed that GPT-4 performed moderate in understanding and working with SVG representations, especially in visual reasoning and answering questions. However, the models struggled with tasks requiring delicate visual details. While the study highlighted the potential of LLMs to handle a range of visual tasks without explicit visual encoders, it also exposed current limitations, suggesting that enhanced SVG representations may be needed for more complex visual reasoning. 3.2. SVGEditBench Another benchmark, called SVGEditBench [ 24 ] , is specifically designed to quantitatively evaluate LLMs abilities to edit SVG. The benchmark consists of six distinct editing tasks: changing colors, setting contours, cropping to half, rotating, applying transformations, and compressing SVG code, which allows a comprehensive evaluation of model performance (see examples in Figure 3 ). By providing structured prompts and using clear quantitative metrics like Mean Squared Error (MSE) and compression ratios, the benchmark enables direct comparison in editing tasks. The experimental results demonstrated that GPT-4 consistently outperformed GPT-3.5 across almost all tasks, showing superior accuracy in applying edits and understanding SVG structures. GPT-4 also displayed more sophisticated strategies, like optimizing code through intelligent smoothing in compression tasks. Despite these strengths, the study highlighted that even advanced models sometimes struggle with complex editing tasks, particularly when precision in SVG syntax is required. Figure 3 . Example of all tasks except compression for a single sample from SVGEditBench [ 24 ] . 3.3. SVG Taxonomy Visual analytics is one of the SVG’s possible applications, enabling the automation of tasks such as statistical analysis, data filtering, and other data workflow processes. SVG’s code-based structure allows for complex visual manipulations, improving efficiency and accessibility in data exploration. The paper [ 41 ] examines how well LLMs can handle such tasks on SVG-based charts. The study used GPT-4-turbo [ 1 ] with zero-shot prompts to test 10 low-level visual analytic tasks on SVG code. These tasks ranged from basic data extraction to more complex operations involving mathematical reasoning and pattern recognition. The model was also tested on sorting and identifying data distributions, as illustrated in Figure 4 , which presents examples of different chart types used in the evaluation. The results showed that GPT-4-turbo excelled in pattern recognition tasks such as clustering and anomaly detection, but struggled with mathematical tasks, often generating inaccurate or hallucinated results, especially when the charts lacked value labels. Increasing data points amount did not always enhance performance, in certain cases improving numerical accuracy but also increasing the errors number. The study highlights LLMs’ potential and limits in visual analytics, suggesting hybrid methods could improve the results, while better prompts and fine-tuning might overcome current weaknesses. Figure 4 . Example of a versatile prompt and various chart types from the SVG Taxonomy [ 41 ] benchmark. 3.4. VGBench The authors of the work [ 45 ] took a step further by not only evaluating LLMs’ ability to understand or edit vector graphics but generate. In the VGBench, they introduced two key components for comprehensive model assessment: Vector Graphics Question Answering (VGQA) for evaluating vector graphics understanding and Vector Generation (VGen) for assessing generation capabilities. VGQA focuses on tasks like identifying colors, categories, and usage of depicted subjects across different vector formats such as SVG, TikZ [ 34 ] , and Graphviz [ 13 ] . A semi-automated pipeline was used to create question-answer pairs. Based on rasterized SVG images, GPT-4V [ 44 ] generated the initial dataset, which was later filtered out by human annotators to ensure quality. This setup allowed the authors to thoroughly evaluate how well LLMs can interpret various aspects of vector graphics, from basic features to complex semantic relationships, as illustrated in Figure 5 . The VGen assessed the models’ ability to generate vector graphics from textual descriptions. GPT-4V first produced captions for existing images, and LLMs were then asked for generating corresponding vector graphics code based on these descriptions. The quality of the generated graphics was evaluated using CLIP Score and Fréchet Inception Distance (FID), measuring both semantic alignment with the text and visual similarity to the originals. Results showed that LLMs, particularly GPT-4, demonstrated capabilities in both understanding and generating vector graphics, especially for high-level semantic formats such as TikZ and Graphviz. In contrast, a low-level format like SVG, based on geometric primitives, is a greater challenge for the models. Figure 5 . Examples of VGQA tasks for color, category, and usage, along with a sample from VGen – both subtasks of VGBench. Ground truth answers are highlighted. 3.5. SGP-Bench In the paper [ 27 ] , the authors follow a novel approach by not only evaluating LLMs’ abilities to understand vector graphics code (symbolic graphics programs, SGP), but also exploring how to enhance these capabilities. They introduced SGP-Bench, which evaluates two main aspects: (1) semantic understanding, where models answer questions about images without seeing them (illustrated in Figure 6 ), and (2) semantic consistency, which tests how robustly LLMs interpret programs when compiled objects undergo transformations like rotations or translations. Moreover, the authors proposed Symbolic Instruction Tuning (SIT), a fine-tuning method using instruction-based data derived from symbolic graphics programs. The SIT technique is aimed to improve LLMs’ understanding of structured data. The results showed that LLM demonstrates abilities to interpret symbolic graphics. However, significant limitations remain, particularly in tasks requiring complex spatial reasoning or understanding fine-grained details. Large proprietary models consistently outperform smaller open-source models, reflecting a clear scaling effect. SIT notably enhanced model performance, not only improving understanding of symbolic programs, but also boosting general reasoning abilities across other benchmarks. Figure 6 . Random samples from SGP-Bench [ 27 ] with highlighted ground truth answers. Notably, the second, third, and last examples are ambiguous. 3.6. Summary To fully utilize the potential of vector graphic processing benchmarks, we can aggregate all tasks from these benchmarks and categorize them into three main groups: generation, editing, and recognition. The Table 1 summarizes the number of tasks related to SVG in each category across different benchmarks, providing an overview of their distribution and focus areas. As can be seen from the table, no single benchmark comprehensively covers all three task categories, we recommend using two or more benchmarks to fully evaluate the capability of LLMs to work with SVG data. Benchmark Generation Editing Understanding Image-Text bridging [ 5 ] - - 3 SVGEditBench [ 24 ] - 6 - SVG Taxonomy [ 41 ] - 5 5 VGBench [ 45 ] 2 - 3 SGP-Bench [ 27 ] - - 5 Table 1 . SVG-related task aggregation by type across benchmarks. Our analysis reveals that a significant portion of samples in both VGBench and SGP-Bench are inaccurate due to synthetic data generation without thorough validation. This highlights the need for human-based filtering to ensure data quality, particularly for such a complex task. Another common limitation across all benchmarks is the relatively low complexity of the SVG files in the datasets. In real-world scenarios, SVG images often contain 500 or even 1000 paths, whereas the benchmark datasets are significantly simpler. To illustrate this, we present the Table 2 , which contains additional SVG-related statistics for benchmarks where initial datasets are available. Specifically, we compute the average number of nodes (SVG tags), figures, paths, and points. Here, "points" refer to individual numerical values rather than coordinate pairs, as some points are represented by a shift along a single axis and encoded as a single number. Points are counted for paths, lines, polygons, and polylines. Benchmark Average statistics Nodes Figures Paths Points SVGEditBench 8.89 7.82 6.12 337.22 SVG Taxonomy 26.85 7.96 3.98 55.58 VGBench 25.45 7.76 5.64 414.76 SGP-Bench 11.83 7.81 5.50 334.38 Table 2 . Average number of nodes (SVG tags), figures, paths, and points for each available benchmark. 4. Experiments In this section, we apply the methods using the methods with code available on benchmarks, which include the original datasets and evaluation scripts. Additionally, we assess a diverse set of LLMs to evaluate their performance across these benchmarks. 4.1. Metrics Each benchmark includes its own specific metrics. However, to ensure consistency and enable the aggregation of scores across different benchmarks, we normalize these metrics. Additionally, since we evaluate multiple LLMs on a large set of tasks, we subsample the original datasets to reduce their size and computational budget. 4.1.1. SVGEditBench There are 6 tasks in this benchmark, each evaluated using the MSE as the base metric. Calculated MSE values can be small and vary across tasks, we normalize all metrics based on the ground truth values presented in the original paper. For each task t and model m , let s^{m}_{t} denote the score achieved, and s^{0}_{t} represent the baseline MSE when no edits are applied. We rescale the MSE for each task to ensure values range from 0 to 1 . We calculate the normalized score \hat{s}_{t} as in Equation 1 . The resulting benchmark score is the average across the six tasks. \hat{s}_{t}=\begin{cases}\sqrt{\frac{s_{t}^{0}-s_{t}}{s_{t}^{0}}},&s_{t}