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

Moritz Feuerpfeil, Marco Cipriano, Gerard de Melo
2/12/2026

No official code found. Best implementation: potpov/VectorGrimoire (0 stars, last commit 2025-05-25).

Abstract

Scalable Vector Graphics (SVG) is a popular format on the web and in the design industry. However, despite the great strides made in generative modeling, SVG has remained underexplored due to the discrete and complex nature of such data. We introduce GRIMOIRE, a text-guided SVG generative model that is comprised of two modules: A Visual Shape Quantizer (VSQ) learns to map raster images onto a discrete codebook by reconstructing them as vector shapes, and an Auto-Regressive Transformer (ART) models the joint probability distribution over shape tokens, positions and textual descriptions, allowing us to generate vector graphics from natural language. Unlike existing models that require direct supervision from SVG data, GRIMOIRE learns shape image patches using only raster image supervision which opens up vector generative modeling to significantly more data. We demonstrate the effectiveness of our method by fitting GRIMOIRE for closed filled shapes on the MNIST and for outline strokes on icon and font data, surpassing previous image-supervised methods in generative quality and vector-supervised approach in flexibility.

View on arXivView PDF

Code Implementations(1)

Official Repository of "Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision" accepted at ICML 25

00May 25, 20251 years ago

Cite this paper

@article{feuerpfeil2026vector,
  title  = {Vector Grimoire: Codebook-based Shape Generation under Raster Image Supervision},
  author = {Moritz Feuerpfeil and Marco Cipriano and Gerard de Melo},
  year   = {2026},
  eprint = {2410.05991},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.05991},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.05991.svg)](https://codeofpaper.com/paper/2410.05991)

Discussion