atlas

Research map / Image generation / Autoregressive and latent generation

StrokeNUWA—Tokenizing Strokes for Vector Graphic Synthesis

ICML 2024 · Image generation › Autoregressive and latent generation · approach: Generative latent space tooling · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes StrokeNUWA, which tokenizes SVG strokes into discrete stroke tokens via a residual-VQ compressor (VQ-Stroke) so an encoder-decoder LLM (Flan-T5) can generate vector graphics from text quickly.

Problem

LLM-based visual synthesis relies on raster grid tokens from VQ-VAE/VQ-GAN, which break semantic structure and are slow; optimization-based SVG generation is also very slow. The paper targets text-guided SVG generation with LLMs.

Approach

Represent SVG paths as sequences of basic commands (M, L, C) packed into a 9-dim matrix, then compress them into semantically meaningful stroke tokens with a residual vector quantizer (VQ-Stroke); an encoder-decoder LLM (Flan-T5 3B, frozen encoder, fine-tuned decoder) generates these tokens from text, and a post-processing SVG Fixer repairs syntax/connectivity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace direct SVG-code tokens with VQ-Stroke stroke tokensFlan-T5 SVG generation · SVG generationFID: 17.828 -> 6.513Helped
replace direct SVG-code tokens with VQ-Stroke stroke tokensFlan-T5 SVG generation · SVG generationCLIPScore: 8.402 -> 17.994Helped
replace direct SVG-code tokens with VQ-Stroke stroke tokensFlan-T5 SVG generation · SVG generationHPS: 8.234 -> 16.801Helped
use Path Interpolation instead of Path Clipping (ablation)SVGNUWA · SVG generationFID: 6.607 -> 6.513Helped
use Path Interpolation instead of Path Clipping (ablation)SVGNUWA · SVG generationCLIPScore: 17.852 -> 17.994Helped
use Path Interpolation instead of Path Clipping (ablation)SVGNUWA · SVG generationHPS: 16.134 -> 16.801Helped
add Path Interpolation rather than Path Clipping (ablation)VQ-Stroke C-2 reconstruction · SVG reconstructionEDIT: 1,096.313 -> 1,315.137Hurt
add Path Interpolation rather than Path Clipping (ablation)VQ-Stroke C-2 reconstruction · SVG reconstructionFID: 3.751 -> 3.518Helped
increase compression rate from C-2 to C-4 (ablation)VQ-Stroke with Path Interpolation · SVG reconstructionCompression ratio: 13.780% -> 6.890%Helped
increase compression rate from C-2 to C-4 (ablation)VQ-Stroke with Path Interpolation · SVG reconstructionCLIPScore: 20.290 -> 17.192Hurt
reduce codebook size from 4096 to 2048 while keeping dim 512 (ablation)VQ-Stroke · SVG reconstructionFID: 3.518 -> 5.702Hurt
increase codebook dimension from 512 to 1024 while keeping codebook size 4096 (ablation)VQ-Stroke · SVG reconstructionFID: 3.518 -> 3.901Hurt

Surprising findings

Limitations

Experimental setup

Datasets: FIGR-8-SVG

Benchmarks: FIGR-8-SVG test split (2,000 instances; 500 sampled for baseline comparison)

Metrics: FID CLIPScore HPS EDIT Recall generation speed compression ratio

Baselines: VectorFusion LIVE (with Stable Diffusion) Iconshop GPT-4

Builds on: VQ-VAE IconShop DeepSVG VectorFusion

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy