SketchForge: Training-Free Scene-to-Vector Sketching via Decoupled Structure and Texture Optimization
Abstract
Converting a raster illustration into an editable vector sketch requires preserving structural contours alongside tonal texture. Raster rendering pipelines do not provide stroke-level editability, while generation-from-scratch vector approaches can lose the geometry of an arbitrary content image.
SketchForge is a training-free scene-to-vector sketching framework. Given a full-color raster content image, it uses per-instance test-time optimization to generate a resolution-independent SVG composed of Bézier strokes. Contour- and attention-guided initialization places strokes in geometrically and semantically informative regions. Dedicated optimization objectives separately refine structure and texture strokes; multiply blending combines their contributions into a final editable sketch. The method requires no task-specific training or fine-tuning.
What SketchForge Does
SketchForge combines three complementary capabilities:
- Raster-to-vector sketch conversion: converts a complete input raster image into a resolution-independent sketch rather than generating a new scene or extending the image boundaries.
- Structure–texture decoupling: preserves object contours through patch-based optimization while reconstructing overall tonal variation with a separate texture branch.
- Editable SVG output: represents the result as two Bézier-stroke groups so paths and stroke attributes can be edited after generation.
The content image supplies the scene geometry. A style-transfer stage generates a sketch-like texture target, using normalized input edges as the default reference; reference-guided variation can also be explored.
Method Overview
Stage 1: Edge extraction and texture guidance
From the input raster illustration, SketchForge extracts a black-on-white edge map and normalizes line width. The edge map is the structural target. A StyleID-inspired style-transfer stage uses DDIM inversion and AdaIN to produce a sketch-like raster texture target while retaining the original scene layout. The diffusion component supports style transfer; it is not an outpainting generator in this method.
Stage 2: Contour- and attention-guided stroke initialization
The method initializes Bézier strokes at informative locations rather than sampling them uniformly. A majority of strokes follow extracted contours, with additional interpolated strokes placed between adjacent contour samples. Remaining strokes use pretrained DINO attention to cover salient regions beyond prominent boundaries.
Stage 3: Separate vector optimization
Two stroke sets are independently refined using differentiable rendering (DiffVG):
- Structure branch: optimizes control-point geometry toward the edge map with a patch-based multi-scale objective, combining fine-detail contour alignment and coarser pooled reconstruction.
- Texture branch: optimizes geometry, width, opacity, and color toward the stylized raster using a global L2 reconstruction objective.
The reported implementation uses 700 strokes per branch, a 1024 × 1024 canvas, and 500 Adam iterations per branch.
Stage 4: Layer-wise multiply fusion
The final SVG places texture strokes below structure strokes. The upper structure layer uses multiply blending, reinforcing dark contours while retaining tonal details from the lower layer. Both stroke groups remain individually editable.
SketchForge-Bench Dataset
SketchForge-Bench consists of 64 full-color raster content images. They cover six categories: cats, dogs, humans, everyday objects, plants, and vehicles. Images vary in composition, subject scale, and scene complexity. As described in the paper, the raster illustrations were generated using Stable Diffusion and selected for evaluation.
Each content image is converted into a vector sketch. All compared methods use the same raster content input, while SketchForge generates separate structural and textural targets within its own processing pipeline. The main quantitative comparison reports results over these 64 content images.
Qualitative Results
Comparison with Baselines
The figure compares SketchForge with ControlSketch, SwiftSketch, CLIPasso, CLIPascene, and an adapted DiffSketcher. The latter is adapted from text-conditioned sketch generation to receive the input content image. The comparison highlights differences in geometric completeness, stroke layout, and retained scene detail.
Quantitative Results
The comparison in the SIGGRAPH Asia 2026 paper evaluates vectorization on 64 content images. DINO and DreamSim use the input content image as their target; Edge F1 uses the extracted edge map. Higher values are better for Aesthetic, DINO, and Edge F1; lower values are better for DreamSim.
| Method | Aesthetic ↑ | DINO ↑ | DreamSim ↓ | Edge F1 ↑ |
|---|---|---|---|---|
| CLIPasso | 4.1690 | 0.2064 | 0.7256 | 0.5262 |
| CLIPascene | 4.3904 | 0.2022 | 0.7024 | 0.5797 |
| SwiftSketch | 3.9784 | 0.1566 | 0.8305 | 0.3139 |
| ControlSketch | 4.1493 | 0.1470 | 0.7960 | 0.3299 |
| DiffSketcher (adapted) | 4.8020 | 0.3760 | 0.5351 | 0.8325 |
| SketchForge (Ours) | 4.8407 | 0.4507 | 0.5552 | 0.9780 |
SketchForge achieves the highest Aesthetic Score, DINO similarity, and Edge F1 in this comparison. Its DreamSim value is competitive, but adapted DiffSketcher achieves the lowest DreamSim distance. These results concern vector sketch conversion under the stated evaluation protocol.
Citation
@inproceedings{Nguyen2026SIGGRAPHASIA,
title = {SketchForge: Training-Free Scene-to-Vector Sketching via Decoupled Structure and Texture Optimization},
author = {Nguyen, Quang-Thinh and Do, Duy-Khang and Trinh, Hien and Nguyen, Tam V. and Tran, Minh-Triet and Le, Trung-Nghia},
booktitle = {ACM SIGGRAPH Conference and Exhibition on Computer Graphics and Interactive Techniques in Asia (SIGGRAPH Asia)},
year = {2026},
note = {Technical Communications Track}
}