OmniSVG: A Unified Scalable Vector Graphics Generation Model
Abstract Scalable Vector Graphics (SVG) is an important image format widely adopted in graphic design because of their resolution independence and editability. The development of autonomous SVG generation workflows is continuously drawing attention from both designers and researchers in the AIGC community. However, existing methods either produce unstructured outputs at huge computational cost or are limited to generating monochrome icons of over-simplified structures. To produce high-quality and complex SVG adhering to multi-modal instructions, we propose OmniSVG, a unified SVG generation framework that inherits knowledge from a pre-trained Vision-Language Model (VLM). By parameterizing SVG commands and coordinates into discrete token sequences, the auto-regressive nature enables us to seaminglessly adapt modern VLMs to the direct SVG generation. To further advance the development of SVG synthesis, we introduce MMSVG-2M, a multimodal dataset with two million richly annotated SVG assets, along with a standardized evaluation protocol for conditional SVG generation tasks. Extensive experiments show that OmniSVG outperforms existing methods and demonstrates its potential for integration into professional SVG design workflows.
Introduction. Scalable Vector Graphics (SVG) have become a cornerstone of modern digital design because of their resolution independence, compact file size, and inherent editability. Widely adopted in professional workflows from UI/UX design to industrial CAD systems, SVG enables precise manipulation of geometric primitives (e.g., Bézier curves, polygons) while maintaining high precision and consistent visual quality across varying resolutions. However, creating high-quality SVG content remains challenging for non-experts, requiring mastery of specialized tools or intricate XML syntax.
Existing methods adopt either optimization-based methods or auto-regressive approaches to generate SVG contents.
The optimization-based methods [34, 12, 29] iteratively refine the SVG parameters by minimizing the differences between the input image and the raster image created by differentiable vector graphics rasterizers. Though these methods are sufficient for reconstructing SVG icons, they suffer from significant computational overhead when scaling up to more intricate samples and produce unstructured outputs with redundant anchor points, harming the editability of the reconstructed SVG samples. In contrast, auto-regressive methods build transformer models or adapt pre-trained Large Language Models (LLMs) to directly generate XML parameters [59] or codes [56, 42] representing SVGs. Benefiting from the end-to-end learning pipeline, the auto-regressive method is a more scalable approach [5] as it can learn directly from a large collection of SVG samples. However, existing auto-regressive approaches are limited to basic SVG contents [11, 24, 53] because of the limited context length and the scarcity of complex SVG data.
In this paper, we propose OmniSVG that harnesses native VLMs [1] for various end-to-end multimodal SVG generation tasks. By parameterizing SVG coordinates and commands into discrete tokens, OmniSVG decouples structural logic from low-level geometry, mitigating the “coordinate hallucination” problem prevalent in code-based LLMs, and produces vivid and colorful SVG results. Additionally, the next token prediction training objective enables OmniSVG to complete SVGs with diverse generation results given some partial observations. Compared to traditional auto-regressive SVG generation methods, OmniSVG is able to parameterize SVGs exceeding 30k tokens, facilitating the generation of detailed and complex SVG contents. Building upon pre-trained VLMs, our method natively integrates the ability to reason upon visual and textual instructions to synthesize editable, high-fidelity SVGs across diverse domains, from icons to intricate illustrations and anime characters.
To advance the development of SVG synthesis, we introduce MMSVG-2M, a multi-modal SVG synthesis dataset with two million richly annotated assets, encompassing icons, illustrations, and anime designs.
We also establish a standardized evaluation protocol, MMSVG-Bench, for “Text-to-SVG” and “Image-to-SVG” generation. Extensive experiments show that OmniSVG can produce highly detailed and complex SVG contents, surpassing prior art both quantitatively and qualitatively.
To summarize, our key contributions include:
• We introduce OmniSVG, a family of end-to-end multimodal SVG generators that leverage native VLMs for generating complex and detailed SVGs, from simple icons to intricate anime characters. • We present MMSVG-2M, a large-scale dataset comprising two million SVG assets, along with a standardized evaluation protocol for various multi-modal SVG generation tasks, providing a comprehensive resource for future research. • Extensive experiments show that OmniSVG surpasses prior SVG generation methods both qualitatively and quantitatively, highlighting its potential for integration into professional SVG design workflows.
Related work. SVG Generation. Early attempts to generating SVGs directly utilize architectures like RNNs [18, 41, 19, 44, 45], VAEs [4, 32, 48, 46, 51], and Transformers [4, 57] to compress SVG commands into latent representations. Meanwhile, DeepSVG [4] further parameterizes SVGs using a dual transformer architecture but struggles with geometric consistency. Recently, the advent of large language models (LLMs) [30, 64, 52, 61, 5, 6, 63, 62, 49] unleashes the potential of generating SVGs via XML code synthesis [59, 56, 42]. However, the limited context length of existing LLM-based SVG generation methods [56, 42, 59] poses significant challenges in handling complex SVGs that exceed 10k tokens. In this paper, we explore the potential of native Vision-Language Models (VLMs) in multi-modal SVG generation. By combining pre-trained VLMs with SVG command parameterization, we validate that OmniSVG is able to follow multi-modal instructions and generate vivid and complex SVGs.
Image Vectorization. Recent advancements in vectorization harness diffusion models paired with differentiable rasterizers, using techniques like score distillation sampling [37, 22, 7] and specialized regularizers [29, 34] to convert raster images into SVG paths. While these methods achieve remarkable results, they face limitations such as over-smoothing, color over-saturation, and lack of editability, often producing tangled paths that fail to capture hierarchical structures inherent in professional SVG designs. In this paper, we present an end-to-end approach that follows multi-modal instructions to generate high-quality SVGs with improved path clarity and editability.
SVG Datasets and Benchmarks. The lack of suitable datasets for complex SVG structures presents a significant challenge. Existing datasets [11, 24, 53] primarily focus on simplified path-based SVGs or monochrome icons, overlooking the intricate layered structures and rich color semantics found in real-world designs. For example, FIGR-8-SVG [11] focuses on monochromatic icons, while StarVector [42] proposes categorized datasets, including illustrations, icons, emojis, and fonts. Therefore, existing datasets only present simple SVG samples that do not exceed 8.2k tokens, failing to capture the complexities of layered structures and rich color semantics. Benchmark evaluations, such as VGBench [70], further highlight gaps in multi-format testing and the absence of comprehensive coverage for illustrative SVGs. To this end, we introduce MMSVG-2M, a multimodal SVG synthesis dataset comprising two million richly annotated assets, including icons, illustrations, and complex anime designs. We also present a standardized evaluation protocol, MMSVG-Bench, to evaluate diverse multi-modal SVG generation tasks with varying complexity.
Method. To support end-to-end training for multi-modal SVG generation, OmniSVG parameterizes a series of atomic SVG path commands into a sequence before feeding into a pre-trained VLM with multi-modal instructions.
SVG Tokenizer. As illustrated in Sec. 3, our MMSVG-2M dataset simplifies an SVG by removing all attributes and using five basic path commands (see Tab. 1). After the simplification, an SVG script G is represented as the combination of M paths, G = {Pi}M i=1. Here, Pi is the i-th path containing Ni commands, Pi = {Cj i }Ni j=1, where Cj i is the j-th command in the i-th path. Each command is represented as Cj i = (U j i , V j i ), containing both the command type identifier U j i ∈{M, L, C, A, Z} and the corresponding location argument V j i .
To generate colored SVG contents, we assign special tokens for hex values to control the “Fill” (F) attribute, distinguishing it from the original SVG commands and coordinates. To this end, we are able to use a total six types of commands U j i ∈{M, L, C, A, Z, F} to parameterize a colored SVG parameterization.
Specifically, our SVG tokenizer transforms SVG scripts Xs into an ordered SVG token sequence within the same representation space as the pre-trained VLM. Following IconShop [57], we flatten the layered structure of the SVG script by concatenating different paths into a single command sequence, where each path begins with the drawing commands followed by point coordinates. Therefore, each SVG sequence could be represented as a flattened sequence. As the generation identifier, we apply special tokens like <SOP> and <EOS> to the two ends of a SVG sequence, identifying the begining and ending of a SVG sequence. We assign special tokens for each command type, i.e. {M, L, C, A, Z, F}. To shorten the length of the SVG sequence, we further merge the 2D point coordinates into one token with a mapping function: < x, y >→x × w + y, where w is the width of the image. The SVG sequence are then lifted into the same embedding space as the pre-trained VLM with a learnable embedding layer.
Model Architecture. OmniSVG adopts Qwen2.5-VL [1], an open-sourced VLM that excels at understanding intricate vision-text inputs, as its backbone (Fig. 2) to produce precise and compact SVG outputs. OmniSVG is trained to predict the SVG suffix tokens (xs) conditioned on the mutlimodal instruction prefix tokens (xc) with the standard next-token prediction objective.
Conclusion. We introduce OmniSVG, a unified framework for multimodal SVG generation that leverages pre-trained Vision-Language Models (VLMs). By parameterizing SVG commands and coordinates as discrete tokens, OmniSVG efficiently decouples structural logic from geometry, addressing issues like "coordinate hallucination" while maintaining design expressiveness. Our method outperforms existing approaches in both quality and efficiency, offering high-quality, editable SVG across various design domains. Additionally, we proposed MMSVG-2M, a large-scale multimodal dataset with two million annotated SVG assets and a standardized evaluation protocol.
Extensive experiments show that OmniSVG surpasses prior SVG generation methods in various conditional generation tasks, highlighting its potential for integration into professional SVG design workflows.
Limitations. and Future Work. During inference, OmniSVG generates tens of thousands of tokens for complex samples, which inevitably leads to a considerable generation time. OmniSVG is only bounded by vector style image prompt and fails on natural images. As for future work, recent endeavors on multi-token prediction [15, 2] and KV-cache compression [68, 3] provide a promising way to save the generation cost. Additionally, the autoregressive nature of OmniSVG also unlocks future opportunities for in-context learning [67, 69, 47], chain-of-thought reasoning [55, 16], and multi-turn interleaved generation [20, 31], thereby providing a more precise user control.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
Can visual rendering-based rewards effectively improve code and layout quality?- What limits SVG generation quality when inference requires tens of thousands of tokens?
- Can professional design workflows integrate vector generation from pretrained vision-language models?
- Can bounding-box signals replace image encoders for visual output evaluation?
- Do iterative reflection methods underperform single-pass RL for slide generation?
- Does the rendering reward generalize beyond chart editing to other code generation tasks?
- What specific ARIA constraints remain difficult for feedback-driven code generation?
- Can code generation tools learn ARIA attributes from specification summaries?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- What role does self-correction iteration play in generative slide creation?
- Why can differentiable rendering not backpropagate through discrete token sampling in code generation?
- How does rendering-based diagnosis of bias differ from rendering as an active training signal?
- Why is verifying rendered output easier than generating code from scratch?
- What limits SlideCoder to single-slide generation from reference images?
- Why does SlideCoder segment pixels while DocLLM relies only on bounding boxes?
- Does visual perception improve slide generation without text-based program output?
- Does previewing output before submission work better than refining after rendering?
- Why do image generation methods struggle with slide design controllability?
- What emergent abilities appear only in truly unified multimodal systems?
- Can multimodal architectures integrate visual signal without repeating previous vision-language limitations?
- What visual patterns transfer between infographic and UI tasks when trained jointly?