All models

IconShop

An autoregressive transformer that generates SVG icons from text as a sequence of path tokens.

Diffusion and generative · 1,249 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (13 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
123.3M
Operations
1,249
Framework
PyTorch
Recurrent
No
Published
SIGGRAPH Asia 2023 (ACM TOG)
Cited by
25 (as of 28 October 2026)
Authors
Ronghuan Wu, Wanchao Su, Kede Ma, Jing Liao
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17534
Graph hash
085c78112c367901a8286ad71c5607c8562b30feab48fc8ee0d190a3943dd192
Skeleton hash
7ec9e05b954389da4cf08d42e9b2cabcfb30982fce423be893a111bfe60b290e
Architecture hash
db670434c3d230560d7e4f4032f8b0df5b252120daae546ecf4bda8e6e9081b0
Diagram SHA-256
d0fcf609cf0fd7f16040fc04ec8a638cc68be80ef80e205c791589a1c84b7011
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

IconShop generates vector icons in the SVG format from text with an autoregressive transformer. Its central step is to sequentialize and tokenize SVG paths, with textual descriptions as guidance, into a uniquely decodable token sequence, so that the model can be trained to predict the next token.

Each icon is simplified to three basic commands, Move To, Line To and Cubic Bézier, and a special begin-of-path token is placed before the first command of each path. Each 2D location argument is mapped to one token in row-major order, which roughly halves the length of the token sequence. Text is tokenized and embedded with the fixed tokenization and word embedding layers of a pretrained BERT model. During training, a causal masking strategy is applied to 50% of the data so that the model can also fill in missing content from context on both sides, as icon editing requires.

The paper reports better icon synthesis than the image-based and language-based methods it compares with, and demonstrates icon editing, icon interpolation, icon semantic combination and icon design auto-suggestion. The public repository uses the FIGR dataset with 200x200 bounding boxes where the paper used a higher-precision dataset with 100x100 bounding boxes, and it cautions that its pretrained model produces different results from those shown in the paper.

Key idea. IconShop tokenizes SVG paths and text descriptions into one uniquely decodable sequence, letting an autoregressive transformer synthesize vector icons with or without text conditioning.

  • IconShop
  • text to SVG
  • vector icon synthesis
  • text-guided icon generation
  • SVG generation
  • vector graphics generation
  • icon generation
  • autoregressive SVG transformer
  • FIGR-8-SVG

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wu2023iconshoptextguidedvectoricon,
      title={IconShop: Text-Guided Vector Icon Synthesis with Autoregressive Transformers}, 
      author={Ronghuan Wu and Wanchao Su and Kede Ma and Jing Liao},
      year={2023},
      eprint={2304.14400},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2304.14400}, 
}