Skip to main content
QUICK REVIEW

[Paper Review] IconShop: Text-Guided Vector Icon Synthesis with Autoregressive Transformers

Ronghuan Wu, Wanchao Su|arXiv (Cornell University)|Apr 27, 2023
Computer Graphics and Visualization TechniquesComputer Science3 citations
TL;DR

IconShop proposes a text-guided vector icon synthesis method using autoregressive transformers by sequentially tokenizing SVG paths and text prompts into a uniquely decodable sequence, enabling high-quality, diverse, and flexible icon generation. It outperforms image-based and language-based methods in both quantitative metrics (FID, CLIP scores) and qualitative user studies, while supporting novel tasks like editing, interpolation, and auto-suggestion.

ABSTRACT

Scalable Vector Graphics (SVG) is a popular vector image format that offers good support for interactivity and animation. Despite its appealing characteristics, creating custom SVG content can be challenging for users due to the steep learning curve required to understand SVG grammars or get familiar with professional editing software. Recent advancements in text-to-image generation have inspired researchers to explore vector graphics synthesis using either image-based methods (i.e., text -> raster image -> vector graphics) combining text-to-image generation models with image vectorization, or language-based methods (i.e., text -> vector graphics script) through pretrained large language models. However, these methods still suffer from limitations in terms of generation quality, diversity, and flexibility. In this paper, we introduce IconShop, a text-guided vector icon synthesis method using autoregressive transformers. The key to success of our approach is to sequentialize and tokenize SVG paths (and textual descriptions as guidance) into a uniquely decodable token sequence. With that, we are able to fully exploit the sequence learning power of autoregressive transformers, while enabling both unconditional and text-conditioned icon synthesis. Through standard training to predict the next token on a large-scale vector icon dataset accompanied by textural descriptions, the proposed IconShop consistently exhibits better icon synthesis capability than existing image-based and language-based methods both quantitatively and qualitatively. Meanwhile, we observe a dramatic improvement in generation diversity, which is validated by the objective Uniqueness and Novelty measures. More importantly, we demonstrate the flexibility of IconShop with multiple novel icon synthesis tasks, including icon editing, icon interpolation, icon semantic combination, and icon design auto-suggestion.

Motivation & Objective

  • To address the challenge of creating custom SVG icons, which requires expertise in SVG grammar or professional software.
  • To overcome limitations of image-based methods (text → raster → vector) that produce low-quality vectorizations with artifacts.
  • To improve upon language-based methods (text → SVG script) that suffer from poor complexity and diversity due to complex SVG grammar and long token sequences.
  • To enable flexible, high-quality, and diverse vector icon synthesis using autoregressive transformers by exploiting the sequential structure of SVG.
  • To demonstrate the method's versatility through novel applications such as icon editing, interpolation, semantic combination, and auto-suggestion.

Proposed method

  • SVG paths are concatenated and sequentially tokenized into a uniquely decodable token sequence, preserving structural integrity.
  • Textual prompts are prepended to the SVG token sequence, forming a joint input for joint modeling.
  • A causal masking strategy enables bidirectional context modeling (filling-in-the-middle), unifying non-autoregressive and autoregressive generation.
  • The model is trained autoregressively to predict the next token in the sequence using a large-scale dataset (FIGR-8-SVG) with paired text descriptions.
  • The approach treats SVG as a sequence of commands (e.g., line, curve), enabling end-to-end learning of geometric and semantic alignment.
  • The framework supports conditional generation by conditioning on both text and partial SVG sequences, enabling editing and auto-suggestion.

Experimental results

Research questions

  • RQ1Can autoregressive transformers effectively model SVG vector graphics by treating them as sequential tokens?
  • RQ2Can a unified sequence modeling approach outperform existing image-based and language-based SVG generation methods in quality and diversity?
  • RQ3Can the model generalize to novel tasks such as icon editing, interpolation, and semantic combination?
  • RQ4How well does the model align text prompts with generated SVG icons compared to prior methods?
  • RQ5What are the limitations of the approach in handling complex semantic combinations and text-SVG mismatches?

Key findings

  • IconShop achieves state-of-the-art performance in both quantitative metrics, with lower FID and higher CLIP scores than existing image-based and language-based methods.
  • The model demonstrates significantly improved generation diversity, validated by high Uniqueness and Novelty scores.
  • Subjective user studies confirm that IconShop generates icons with superior visual quality and better text-icon alignment compared to baselines.
  • The model successfully supports novel applications: icon editing (restoration of missing paths), interpolation (smooth transitions between text prompts), and semantic combination (e.g., 'avocado chair' style icons).
  • IconShop enables effective auto-suggestion of next paths during icon design, improving user efficiency while remaining compatible with user deviations.
  • Limitations include occasional text-SVG mismatches due to noisy text annotations and suboptimal semantic combinations, primarily due to the dataset's focus on single-object icons.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.