atlas

Research map / Image generation / Autoregressive and latent generation

Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision

ICML 2025 · 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.

Introduces GRIMOIRE, a text-conditioned SVG generator trained only on raster images, using a VQ-style Visual Shape Quantizer (FSQ codebook with DiffVG rasterization) and an autoregressive Transformer over shape, position and text tokens.

Problem

Generating SVG vector graphics typically requires SVG-level supervision, which needs heavy preprocessing and lacks visual supervision; prior image-supervised SVG models lack text conditioning and produce redundant shapes.

Approach

A finite-scalar-quantized autoencoder maps raster patches to discrete codes decoded into cubic Bézier shapes via a differentiable rasterizer (DiffVG), trained with raster MSE plus a geometric constraint; a second autoregressive Transformer models text, positions and codes jointly.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use VSQ instead of Im2Vec (filled) for reconstructionRaster-supervised SVG reconstruction · MNISTMSE: 0.140 -> 0.090Helped
Use VSQ instead of Im2Vec for reconstructionRaster-supervised SVG reconstruction · FontsMSE: 0.050 -> 0.014Helped
Use VSQ instead of Im2Vec for reconstructionRaster-supervised SVG reconstruction · FIGR-8MSE: 0.050 -> 0.004Helped
Use text-conditioned Grimoire instead of Im2Vec (filled)Text-guided SVG generation · Fonts (A)CLIPScore: 25.81 -> 30.60Helped
Use text-conditioned Grimoire instead of Im2VecText-guided SVG generation · FIGR-8 (Star)CLIPScore: 31.88 -> 32.24Helped
Add path clipping post-processing (ablation)Grimoire · FontsFID: 4.44 -> 1.67Helped
Add path clipping post-processing (ablation)Grimoire · FIGR-8FID: 4.20 -> 3.58Helped
Add path interpolation instead of no post-processing (ablation)Grimoire · FIGR-8FID: 4.20 -> 4.57Hurt
Add 3 stroke context (ablation)Grimoire text-guided generation · FIGR-8CLIPScore: 27.45 -> 25.31Hurt
Increase stroke context from 3 to 24 strokes (ablation)Grimoire text-guided generation · FIGR-8CLIPScore: 25.31 -> 26.39Helped
Use two codes per centered stroke rather than one (ablation)VSQ reconstruction · Fonts and FIGR-8MSE: 18.28%, 41.46%, and 26.09%Helped
Increase the number of segments beyond 15 (ablation)VSQ shape reconstruction · MNISTreconstruction qualityNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MNIST SVG-Fonts FIGR-8

Benchmarks: MNIST SVG-Fonts FIGR-8

Metrics: MSE FID CLIPScore

Baselines: Im2Vec Im2Vec (filled)

Builds on: VQ-VAE finite scalar quantization DiffVG Im2Vec IconShop

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