LayerTracer: Cognitive-Aligned Layered SVG Synthesis via Diffusion Transformer
Yiren Song, Danze Chen, Mike Zheng Shou
TL;DR
LayerTracer introduces a cognitive-aligned approach to layered SVG synthesis using a diffusion-transformer framework that learns designers' layer-by-layer workflows from a large-scale sequential design dataset. It deploys a two-stage pipeline with a text-conditioned DiT that generates raster construction sequences and a layer-wise vectorization stage for clean, editable SVGs, complemented by an image-conditioned variant through LoRA to infer construction steps from reference images. The method achieves state-of-the-art results in both text-to-SVG generation and hierarchical vectorization, with improved editability, reduced path redundancy, and coherent layer hierarchies validated by metrics and user studies. By releasing a 20k-sample serpentine dataset and demonstrating scalable, process-aware vector graphics, LayerTracer paves the way for cognitive-informed design tooling and more editable AI-generated vector art.
Abstract
Generating cognitive-aligned layered SVGs remains challenging due to existing methods' tendencies toward either oversimplified single-layer outputs or optimization-induced shape redundancies. We propose LayerTracer, a diffusion transformer based framework that bridges this gap by learning designers' layered SVG creation processes from a novel dataset of sequential design operations. Our approach operates in two phases: First, a text-conditioned DiT generates multi-phase rasterized construction blueprints that simulate human design workflows. Second, layer-wise vectorization with path deduplication produces clean, editable SVGs. For image vectorization, we introduce a conditional diffusion mechanism that encodes reference images into latent tokens, guiding hierarchical reconstruction while preserving structural integrity. Extensive experiments demonstrate LayerTracer's superior performance against optimization-based and neural baselines in both generation quality and editability, effectively aligning AI-generated vectors with professional design cognition.
