Layered Image Vectorization via Semantic Simplification

Zhenyu Wang, Jianxi Huang, Zhida Sun, Yuanhao Gong, Daniel Cohen-Or, Min Lu

Abstract

Traditional image vectorization often results in unmanageable "jigsaw" paths that lack semantic structure, making them difficult for designers to edit. This paper presents a novel framework that leverages diffusion-based image simplification to guide the vectorization process. By distilling an image into its core semantic components using Score Distillation Sampling (SDS), the method enables a two-stage reconstruction from macro-structural buildup to fine visual refinement. The resulting Scalable Vector Graphics (SVGs) are organized into intuitive, object-aligned layers, significantly improving both editability and visual fidelity over existing state-of-the-art methods.

Introduction

Converting raster images into vector graphics is a fundamental task in computer vision, yet automated tools frequently fail to produce results that are useful for human designers. Most existing methods either generate thousands of tiny, overlapping paths—the "jigsaw" problem—or are restricted to specific domains like icons. The primary challenge is a lack of semantic awareness; current tools optimize for pixel-level similarity without understanding the underlying objects.

This research addresses this gap by introducing a "manageable" vectorization approach. By mimicking the workflow of a human artist—starting with broad shapes and layering details—the proposed method creates structured vector representations that align with the semantic objects in a scene.

Methodology: Progressive Image Simplification

The core innovation is a two-stage pipeline guided by a process termed Progressive Image Simplification.

SDS-based Simplification

The process begins by generating a series of simplified targets using Score Distillation Sampling (SDS). By manipulating the guidance scale in a diffusion model (e.g., setting the Classifier-Free Guidance to zero), the system can naturally blur out fine textures while preserving the essential macro-structure of the image. This creates a sequence of targets that serve as stepping stones for the vectorization process, preventing the optimization from becoming trapped in local minima.

Figure 1: The SDS-based simplification process blurs fine details while preserving the core semantic structure of the scene.

Two-Stage Vectorization

  1. Stage I: Structural Buildup: The system segments the most simplified images into masks and fits closed cubic Bézier curves to them. This captures the "whole body" of objects first, organizing them into logical back-to-front layers.
  2. Stage II: Visual Refinement: Once the structural skeleton is established, additional vector primitives are added to capture highlights, textures, and fine details. Differentiable rendering is used to optimize these paths, ensuring the final vector result matches the original raster image's appearance.

Key Insights and Results

A central finding is that diffusion models possess an inherent "averaging" property that helps deduce implicit structures, such as parts of objects occluded by others. This allows for more complete and logical layering than traditional edge-detection methods.

To evaluate performance, the authors introduced Vector Compactness (VeC), a metric measuring how well vector paths align with semantic object boundaries. The proposed method achieved a VeC of 73.8%, significantly outperforming the next best method, SGLIVE (65.9%), and nearly doubling the scores of older methods like DiffVG (41.9%).

Figure 2: The final output vector graphic demonstrates high visual fidelity and organized, object-based layering.

Quantitatively, the method also achieved lower MSE and LPIPS scores compared to baselines, indicating superior perceptual similarity. Qualitatively, the object-aligned layering makes complex editing tasks, such as recoloring specific elements, significantly easier for users.

Conclusion

While the method is computationally intensive due to the iterative SDS optimization and depends on initial segmentation accuracy, it represents a significant step toward semantically aware vectorization. Future work aims to optimize the speed of the simplification process and enhance the representation of extremely intricate textures.

Summary updated

BibTeX
@inproceedings{wang2025layered,
  author = {Zhenyu Wang and Jianxi Huang and Zhida Sun and Yuanhao Gong and Daniel Cohen-Or and Min Lu},
  title = {{Layered Image Vectorization via Semantic Simplification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00724},
}
Figure