Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

StarVector: Generating Scalable Vector Graphics Code from Images and Text

About

Scalable Vector Graphics (SVGs) are vital for modern image rendering due to their scalability and versatility. Previous SVG generation methods have focused on curve-based vectorization, lacking semantic understanding, often producing artifacts, and struggling with SVG primitives beyond path curves. To address these issues, we introduce StarVector, a multimodal large language model for SVG generation. It performs image vectorization by understanding image semantics and using SVG primitives for compact, precise outputs. Unlike traditional methods, StarVector works directly in the SVG code space, leveraging visual understanding to apply accurate SVG primitives. To train StarVector, we create SVG-Stack, a diverse dataset of 2M samples that enables generalization across vectorization tasks and precise use of primitives like ellipses, polygons, and text. We address challenges in SVG evaluation, showing that pixel-based metrics like MSE fail to capture the unique qualities of vector graphics. We introduce SVG-Bench, a benchmark across 10 datasets, and 3 tasks: Image-to-SVG, Text-to-SVG generation, and diagram generation. Using this setup, StarVector achieves state-of-the-art performance, producing more compact and semantically rich SVGs.

Juan A. Rodriguez, Abhay Puri, Shubham Agarwal, Issam H. Laradji, Pau Rodriguez, Sai Rajeswar, David Vazquez, Christopher Pal, Marco Pedersoli• 2023

Related benchmarks

TaskDatasetResultRank
Image-to-SVGSArena-Icon benchmark (test)
DINO0.92
19
Image-to-SVGSArena Icon
DINO0.871
16
Scientific Figure GenerationFigureBench Paper category
Aesthetic Quality5.9
13
Image-to-SVGSVG-Hub-5M (test)
DINO89.6
12
Figure-to-SVG generationSVG-Diagrams StarVector (test)
SSIM67.7
9
Figure-to-SVG generationMolmo2 Diagram
SSIM0.755
9
Figure-to-SVG generationVFig-Bench
SSIM69.9
9
Scientific Illustration GenerationFigureBench BLOG
Aesthetic Score5.61
5
Static Graphics GenerationLottieBench
Preference3.4
3
Text+Image-to-Static Vector Graphics GenerationLottie
CLIP Score76.62
3
Showing 10 of 10 rows

Other info

Follow for update