TL;DR
VectorArk is a robust vision-language model (VLM) framework designed to convert raster images into clean, editable vector graphics (SVGs). By introducing a novel "rounded polygon" representation and an outline-based training pipeline, it successfully overcomes the brittleness of prior methods, enabling high-quality vectorization of messy, real-world inputs like AI-generated images.
What Problem Does This Paper Address?
Converting raster images (pixels) into vector graphics (scalable paths) is a classic computer graphics challenge. While recent data-driven approaches fine-tune VLMs to generate SVG code directly, they suffer from a major flaw: brittleness.
Because these models are typically trained and evaluated on pristine, synthetically rendered SVGs, they generalize poorly to real-world images. A slight change in the rendering backend (e.g., switching from CairoSVG to Skia) can cause existing models to output corrupted geometries. Furthermore, they struggle heavily with low-resolution images or outputs from text-to-image models, which often contain subtle artifacts and distortions.
Additionally, standard SVG path commands (like complex Bézier curves) possess too many degrees of freedom. When translated into text tokens for an autoregressive LLM, they generate excessively long sequences that amplify small coordinate errors over time.
Methods
VectorArk decouples geometry prediction from styling through three core innovations:
- Rounded Polygon Representation: Instead of using standard SVG path commands, VectorArk represents shapes as a polygonal scaffold where each vertex is assigned a "roundness" radius defining an inscribed arc. This reduces a cubic Bézier curve's four parameters to just three, enforcing piecewise-constant curvature and naturally producing smoother, more visually appealing primitives.
- Outline Raster Representation: To prevent the VLM from getting distracted by colors and textures, the input image is first processed by a classical vectorizer to extract a colorless, black-and-white outline. The VLM is trained entirely in this "decolorized" domain to predict clean geometry. Color and layer ordering are restored later via a post-processing step from the original image.
- Degradation Model & Test-Time Scaling: During training, a vectorization-based degradation model artificially blurs and downscales images to simulate real-world imperfections. At inference, the pipeline uses stochastic decoding to generate multiple vector candidates, ranking them using a frozen DINO-ViT encoder to select the output with the highest semantic similarity to the input.
Datasets
The authors benchmarked VectorArk on two recent SVG generation datasets:
- SArena: Categorized by the authors into difficulty tiers based on primitive counts (Easy: <64, Medium: 64–128, Hard: >128 paths).
- SVGenius: Evaluated using its predefined complexity levels.
The model was trained on a massive dataset of approximately 5 million SVGs consisting of icons, logos, and flat graphics.
Key Insights and Ideas
- Constraining Expressivity Improves Accuracy: Standard SVG syntax is too redundant for language models. Restricting the vocabulary to rounded polygons acts as a powerful geometric prior, reducing coordinate drift and sequence length.
- Outlines as a Normalization Step: Forcing the VLM to operate purely on black-and-white outlines eliminates appearance-related training-testing mismatches, making the model highly robust to out-of-distribution inputs like Stable Diffusion or Midjourney outputs.
- Synergy with Classical Tools: Rather than trying to entirely replace classical vectorization tools (like Adobe Illustrator's Image Trace), VectorArk strategically uses them as a front-end filter to normalize inputs and a training-time simulator to model real-world noise.
Key Results
- State-of-the-Art Performance: VectorArk consistently outperformed top baselines—including OmniSVG, StarVector, GPT-4o, and Gemini—across all evaluation metrics (LPIPS, SSIM, DINO, and MSE) on both benchmarks. The performance gap was particularly pronounced on "Hard" complexity tiers.
- Significant Token Efficiency: The rounded polygon format achieved a 27.9% to 46.6% reduction in token count compared to standard SVG representations, drastically lowering memory footprint and inference costs.
- Artifact Suppression: Qualitative evaluations on text-to-image generations demonstrated that VectorArk successfully ignores raster noise and generates clean, well-regularized paths suitable for graphic design editing.
Limitations and Future Work
While VectorArk excels at flat vector graphics, icons, and logos, it is currently optimized for medium-complexity designs. Highly detailed illustrations, text elements, and complex styling like gradients or blur effects are simplified during the pipeline. Additionally, resolving dense local path structures remains a challenge.
The authors note that future work will focus on scaling the framework to handle richer vector primitives under controlled constraints and integrating a learned appearance/styling module directly into the network.
Summary updated