TL;DR
This paper introduces a novel pipeline for text-guided vector graphics customization, allowing users to adapt an existing SVG character or icon to new contexts (e.g., "a bird reading a book") while strictly preserving its visual identity and clean path structure. By combining concept-based diffusion fine-tuning with a semantic path alignment strategy and a specialized "local Procrustes" loss, the method generates high-quality, editable vector results that far surpass existing text-to-vector techniques.
What Problem Does This Paper Address?
Vector graphics (SVGs) are the gold standard for digital design because they are resolution-independent and easy to edit layer-by-layer. However, creating them is a painstaking manual process. While recent AI breakthroughs in text-to-image (T2I) generation are impressive, translating those capabilities to the vector domain (T2V) remains difficult.
Existing T2V methods often suffer from two major flaws:
- Loss of Identity: They struggle to maintain the specific look and feel of a user-provided character across different generated scenes.
- Messy Topology: They often produce "spaghetti" paths—redundant, overlapping, or self-intersecting curves—that are a nightmare for human designers to edit.
This paper aims to bridge this gap, enabling automated customization that respects both the style of the original art and the structural integrity required for professional vector work.
Methods
The authors propose a three-stage pipeline, illustrated in Figure 2:
- Concept Fine-tuning: The system first learns the "visual identity" ($V^*$) of the exemplar SVG. It rasterizes the SVG and fine-tunes the cross-attention layers of a pre-trained Stable Diffusion model on that single image. This allows the model to generate a customized raster image ($I_C$) based on a new prompt (e.g., "A clipart of $V^*$ holding a cake").
- Path Alignment: Instead of generating new vector paths from scratch, the method reuses paths from the original SVG. It uses DINO-ViT features to find semantic correspondences between the original character and the new raster image. Reusable paths are transformed and scaled to fit the new pose, while new paths are added only for new elements (like the cake).
- Path Optimization: The initialized SVG is then refined using a dual-loss approach, shown in Figure 4:
- Image-Level Loss: A CLIP-based loss ensures the rendered SVG matches the appearance of the customized raster image.
- Vector-Level Loss (The "Secret Sauce"): A local Procrustes loss constrains path deformation to be locally rigid. This prevents the paths from becoming messy or self-intersecting during optimization, preserving the "clean" look of the original vector art.
Datasets
The researchers evaluated their method using a collection of 100 vector graphics sourced from Freepik and Iconfont, categorized into 45 characters, 35 animals, and 20 scenes. Text prompts were selected from the Stable Diffusion Prompts dataset to ensure a wide variety of customization scenarios.
Key Insights and Ideas
- Identity is in the Attention: By fine-tuning only the cross-attention layers of Stable Diffusion, the model learns the specific "concept" of a character without overfitting, allowing for significant pose and context changes while keeping the character recognizable.
- Reuse over Reconstruction: Traditional vectorization tries to fit curves to pixels. This paper argues that reusing existing, well-designed paths from the source SVG is a much better way to maintain professional topological properties and layer relationships.
- Semantic Matching vs. Pixel Matching: Using deep semantic features (DINO-ViT) for path alignment is far more robust than relying on color or shape, especially when a character undergoes a major change in pose or perspective.
- Rigidity as Regularization: The local Procrustes loss acts as a powerful regularizer. It allows the vector paths to bend and stretch to fit a new image, but forces them to stay "locally rigid," which naturally prevents the messy artifacts common in other T2V methods.
Key Results
The method was compared against both image-to-vector (Potrace, LIVE) and text-to-vector (CLIPDraw, VectorFusion) baselines.
- Quantitative: As shown in Table 1 (page 6), the proposed method significantly outperformed all baselines in Shape Similarity ($Sim_s$) and Smoothness, while maintaining high fidelity to the target text and image.
- Qualitative: Figure 5 demonstrates that while other methods produce messy, unrecognizable, or structurally broken SVGs, this pipeline generates clean, professional-looking variations that clearly belong to the same "character family."
- User Study: In a perceptual study with 30 participants, the proposed method was preferred over 80% of the time for overall SVG quality, text alignment, and visual identity preservation.
Limitations and Future Work
The authors acknowledge two primary limitations:
- Generative Common Sense: The method relies on the underlying diffusion model. If the prompt is nonsensical for the character (e.g., "a car holding a trophy"), the results will be poor.
- Large Deviations: If the customized pose is too different from the exemplar (e.g., a side-view squirrel vs. a front-view squirrel), the semantic path alignment may fail to find correct matches.
Future work aims to incorporate "human-in-the-loop" methods, allowing designers to manually guide the alignment and optimization for even more precise control.
Summary updated