Manuscript Offprint
arXiv:2611.00253SketchForge: Training-Free Scene-to-Vector Sketching via Decoupled Structure and Texture Optimization
Quang-Thinh Nguyen*
Duy-Khang Do*
Hien Trinh
University of Science
Ho Chi Minh, Vietnam
Vietnam National University
Ho Chi Minh, Vietnam
Tam V. Nguyen
University of Dayton
Dayton, Ohio, US
Minh-Triet Tran
Trung-Nghia Le
University of Science
Ho Chi Minh, Vietnam
Vietnam National University
Ho Chi Minh, Vietnam

Figure 1: Qualitative comparison on sketch vectorization. ControlSketch [Arar et al. 2025] and SwiftSketch [Arar et al. 2025] produce sparse, abstract strokes; CLIPasso [Vinker et al. 2022] yields spatially disordered strokes; CLIPascene [Vinker et al. 2023] over-abstracts fine detail; adapted DiffSketcher [Xing et al. 2023] under-represents local texture. Our SketchForge most faithfully preserves object boundaries and structural detail.
Abstract
Converting a raster image into a resolution-independent, stroke-editable vector sketch while faithfully preserving both structural contours and tonal texture remains challenging: raster-space rendering pipelines are difficult to edit at the stroke level, while generation-from-scratch vectorization methods struggle to remain faithful to an arbitrary input image. We present SketchForge, a training-free framework that converts an input raster image into a resolution-independent SVG sketch through per-instance test-time optimization of Bézier curves, requiring no additional training or fine-tuning. Strokes are seeded via a contour and attention-guided initialization, then refined by a vector-native differentiable rendering pipeline that decouples structural contour strokes from free-form texture strokes under dedicated objectives, composited via multiply-blend layering. Extensive experiments show that SketchForge consistently outperforms existing vector-based baselines
*Both authors contributed equally to this research.
in structural fidelity and generation quality. Project page: https://khangcntn123.github.io/SketchForge
CCS Concepts
• Computing methodologies → Computer vision; Computer graphics; • Applied computing → Media arts.
ACM Reference Format:
Quang-Thinh Nguyen, Duy-Khang Do, Hien Trinh, Tam V. Nguyen, Minh-Triet Tran, and Trung-Nghia Le. 2026. SketchForge: Training-Free Scene-to-Vector Sketching via Decoupled Structure and Texture Optimization. In SIGGRAPH Asia 2026 Technical Communications (SA Technical Communications '26), December 01–04, 2026, Kuala Lumpur, Malaysia. ACM, New York, NY, USA, 4 pages. https://doi.org/10.1145/3829339.3847862
1 Introduction
Sketching conveys structure and style through sparse strokes, yet transferring stroke-level appearance to raster content without losing geometry remains difficult. Stroke-based methods [Vinker et al. 2022; Xing et al. 2023] often generate from scratch, while raster

This work is licensed under a Creative Commons Attribution 4.0 International License. SA Technical Communications '26, Kuala Lumpur, Malaysia
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2841-9/2026/12
https://doi.org/10.1145/3829339.3847862
SA Technical Communications '26, December 01–04, 2026, Kuala Lumpur, Malaysia
Quang-Thinh Nguyen et al.
diffusion pipelines [Rombach et al. 2022; Ye et al. 2023; Zhang et al. 2023a] do not provide editable vector strokes.
DiffVG [Li et al. 2020] introduced differentiable vector rasterization, enabling end-to-end stroke optimization and CLIP-supervised sketch synthesis [Frans et al. 2022; Vinker et al. 2023, 2022]. Subsequent work has explored text-to-SVG generation with diffusion priors, including VectorFusion [Jain et al. 2023] and SVGDreamer [Xing et al. 2024]; autoregressive and latent-sequence generation [Vinker et al. 2025; Zhou et al. 2026]; and improvements through stroke pruning [Hirschorn et al. 2024], differentiable splatting [Liu et al. 2025], semantic region guidance [Zhou et al. 2024], discrete token prediction [Yang et al. 2025], and direct raster-to-sketch prediction [Arar et al. 2025]. Vector customization further supports exemplar-preserving editing and style-controlled generation [Zhang et al. 2023b, 2025], while AutoSketch [Chin et al. 2025] completes partial sketches using automatically derived style descriptions. Despite this progress, faithfully translating a complete raster illustration into an editable vector sketch remains underexplored. In particular, optimizing all strokes toward a unified objective entangles two competing goals: contours require precise geometric alignment, whereas texture requires flexible strokes that capture tonal appearance.
We present SketchForge, a training-free framework that converts a full-color raster illustration into a resolution-independent SVG through per-instance optimization of Bézier curves (Fig. 1). SketchForge requires neither task-specific fine-tuning nor a pretrained diffusion backbone. It first extracts an edge map as the structural target and initializes strokes using complementary geometric and semantic cues. Contour-guided warping aligns strokes with prominent boundaries, while DINO attention [Caron et al. 2021] directs additional strokes toward salient regions. A differentiable optimization pipeline built on DiffVG [Li et al. 2020] then separates the strokes into structural and textural layers. The structural layer is optimized with a patch-based multi-scale contour objective, whereas the textural layer reconstructs the global appearance of the input. Multiply-blend compositing integrates both layers into the final SVG. Experiments demonstrate that our proposed method outperforms existing vector-based methods in structural fidelity and perceptual quality.
Our contributions are as follows:
-
We introduce a training-free raster-to-vector sketching framework that produces editable, resolution-independent SVGs through per-instance Bézier-curve optimization.
-
We propose a decoupled structure-texture formulation that combines a patch-based multi-scale contour objective with global appearance reconstruction through multiply-blend compositing.
-
We present a contour and attention-guided initialization strategy that places strokes at geometrically and semantically informative locations, improving optimization over uniform random initialization.
2 Proposed Method
2.1 Overview
Given a full-color content image , SketchForge proceeds in four stages (Fig. 2). First, it extracts an edge target . Second, style
transfer combines with to produce the texture target . Third, guided initialization seeds independent stroke sets, optimized into and . Finally, the two sets are fused into an editable SVG.
2.2 Pre-processing
We extract a black-on-white from and normalize its line width. This map guides stroke placement, supervises structure optimization.
2.3 Style Transfer
Before vector optimization, a StyleID-inspired module [Chung et al. 2024] injects reference features into DDIM-inverted [Song et al. 2021] content representations, with AdaIN [Huang and Belongie 2017] aligning latent statistics. The resulting raster transfers the tonal and textural character of while retaining the layout of . With normalized edges as the default reference, this stage produces a sketch-like target without training, fine-tuning, or additional user input.
2.4 Contour and Attention-Guided Initialization
SketchForge initializes strokes from both geometric and semantic cues rather than uniform random locations. A fraction is contour-guided: two-thirds are placed directly on detected contours and one-third interpolate adjacent placements. The remaining strokes are attention-guided to cover salient regions not explained by strong edges.
Contour-guided placement. Contours are extracted from by thresholding and connected components, then weighted by arc length. Each stroke is warped to local geometry by mapping control-point residuals from the principal axis to the contour normal :
Smoothstep interpolation fills gaps, while pairs with dissimilarity below are skipped.
Attention-guided placement. A DINO [Caron et al. 2021] class-token attention map A and edge-confidence map E are power-transformed (, ), averaged, and normalized into:
Locations sampled from seed template strokes with small random offsets. The final pool combines direct contour placements, interpolated strokes, and attention samples, providing broad coverage before differentiable optimization.
2.5 Stroke Optimization
Structure optimization. With width and color fixed, control points are optimized toward . Because edges are spatially sparse, we use a multi-scale loss over a grid:
where and is average pooling with . The fine term supplies stable gradients around sharp edge transitions, while
Scene-to-Vector Sketching via Decoupled Structure and Texture Optimization
SA Technical Communications '26, December 01–04, 2026, Kuala Lumpur, Malaysia

Figure 2: SketchForge pipeline. Guided initialization seeds two stroke sets: the structure branch optimizes geometry against with a patch loss, while the texture branch optimizes all stroke attributes against with an loss. Multiply blending produces the final SVG.
the coarse term anchors low-frequency stroke mass when a patch contains few foreground pixels. Their combination yields aligned with .
Texture optimization. A separately initialized set frees control points, widths, opacity, and colors and reconstructs globally:
producing . This full-canvas objective captures tonal variation without forcing texture into sparse edge patches. Both branches use Adam with separate parameter groups for control points, color-opacity, and width; the structure branch keeps appearance fixed, whereas the texture branch optimizes all attributes.
2.6 Layer-wise Multiply Fusion
The final SVG stacks below and applies mix-blend-mode: multiply to the structure layer, so . Dark contours reinforce local structure, while white regions preserve texture.
3 Experiments
3.1 Experimental Settings
Implementation Details. We initialize 700 Bézier strokes per branch on a 1024 × 1024 canvas and optimize them for 500 Adam iterations. The initial stroke width is 1.5 pixels (maximum 100). Geometry, color, and width use learning rates of 1.0, 0.01, and 0.1, respectively. The structure branch optimizes geometry only, while the texture branch jointly optimizes geometry, width, opacity, and color.
Dataset. We evaluated 64 diverse raster illustrations generated with Stable Diffusion [Rombach et al. 2022], spanning common daily objects to organic subjects such as animals and human figures with varying visual complexity.
Table 1: Sketch vectorization on 64 content images. DINO and DreamSim use ; Edge F1 uses . Best in bold.
| Method | Aesthetic ↑ | DINO ↑ | DreamSim ↓ | Edge F1 ↑ |
|---|---|---|---|---|
| CLIPasso [Vinker et al. 2022] | 4.1690 | 0.2064 | 0.7256 | 0.5262 |
| CLIPascene [Vinker et al. 2023] | 4.3904 | 0.2022 | 0.7024 | 0.5797 |
| SwiftSketch [Arar et al. 2025] | 3.9784 | 0.1566 | 0.8305 | 0.3139 |
| ControlSketch [Arar et al. 2025] | 4.1493 | 0.1470 | 0.7960 | 0.3299 |
| DiffSketcher [Xing et al. 2023] (adapted) | 4.8020 | 0.3760 | 0.5351 | 0.8325 |
| SketchForge (Ours) | 4.8407 | 0.4507 | 0.5552 | 0.9780 |
Evaluation Metrics. We evaluate methods on four aspects: Perceptual quality (e.g., Aesthetic Score [Schuhmann 2022], LPIPS [Zhang et al. 2018], and DreamSim [Fu et al. 2023]), Semantic fidelity (e.g., DINO [Caron et al. 2021]), Structural fidelity (e.g., SSIM [Wang et al. 2004], MAE, and Edge F1), and Geometric precision (e.g., Chamfer distance [Barrow et al. 1977] on point sets sampled from skeletonized stroke paths).
3.2 Comparison against State-of-the-Art
We compare against CLIPasso [Vinker et al. 2022], CLIPascene [Vinker et al. 2023], SwiftSketch and ControlSketch [Arar et al. 2025], and an adapted version of DiffSketcher [Xing et al. 2023], where text conditioning is replaced by the input content image .
Fig. 1 shows that prior methods produce sparse or disordered strokes (ControlSketch and SwiftSketch), over-abstract details (CLIPasso and CLIPascene), or under-represent local textures (DiffSketcher). SketchForge better preserves object boundaries and fine structural details. Quantitatively, SketchForge achieves the highest Aesthetic Score (4.8407), DINO similarity (0.4507), and Edge F1 (0.9780), while obtaining a competitive DreamSim distance of 0.5552, outperforming previous vectorization approaches on overall perceptual, semantic, and structural quality.
SA Technical Communications '26, December 01–04, 2026, Kuala Lumpur, Malaysia
Quang-Thinh Nguyen et al.
Table 2: Structure initialization ablation against . Best in bold.
| Init. | MAE ↓ | SSIM ↑ | Chamfer ↓ | Edge F1 ↑ |
|---|---|---|---|---|
| Random | 0.4384 | 0.1120 | 0.0006 | 0.7731 |
| Guided | 0.2041 | 0.8068 | 0.0003 | 0.8841 |
Table 3: Texture initialization ablation against ; Edge F1 uses . Best in bold.
| Init. | SSIM ↑ | DreamSim ↓ | Edge F1 ↑ | DINO ↑ | LPIPS ↓ |
|---|---|---|---|---|---|
| Random | 0.6718 | 0.2459 | 0.7975 | 0.6378 | 0.4034 |
| Guided | 0.7375 | 0.1744 | 0.8067 | 0.7328 | 0.3539 |
Table 4: Fusion ablation. DINO/DreamSim use ; Edge F1 uses . Best in bold.
| Variant | DINO ↑ | DreamSim ↓ | Edge F1 ↑ | Aesthetic ↑ |
|---|---|---|---|---|
| Texture only | 0.7328 | 0.1744 | 0.8067 | 5.0715 |
| Structure only | 0.5800 | 0.2918 | 0.8841 | 4.8718 |
| Fusion | 0.7372 | 0.1712 | 0.8629 | 5.3507 |
3.3 Ablation Study
Stroke initialization. Tab. 2 and Tab. 3 compare uniform random sampling with our guided initialization on the isolated structure and texture branches. Guided placement improves every metric: for structure, Edge F1 rises from 0.7731 to 0.8841 and SSIM from 0.1120 to 0.8068; for texture, it improves DINO from 0.6378 to 0.7328 while reducing DreamSim and LPIPS. This confirms that semantically grounded initialization benefits both optimization branches.
Layer-wise fusion. Tab. 4 shows the complementary role of both layers. Texture-only loses structural coherence, while structure-only preserves edges but lacks tonal richness. Fusion gives the best DINO, DreamSim, and Aesthetic scores while retaining strong Edge F1, supporting the proposed decoupled formulation.
4 Conclusion
We presented SketchForge, a training-free framework that converts raster images into editable SVG sketches through decoupled structure and texture optimization. Contour- and attention-guided initialization improves convergence and fidelity, while multiply fusion balances sharp geometry with tonal detail. Extensive experiments demonstrate that SketchForge consistently outperforms existing methods in structural fidelity, stylistic similarity, and overall sketch quality. Beyond standard vectorization, SketchForge supports color-preserving vectorization and reference-guided style transfer, offering a versatile tool for vector design and content creation. Future work will explore more efficient optimization and finer user control over individual strokes and semantic regions.
Acknowledgments
This research is funded by Vietnam National University - Ho Chi Minh City (VNU-HCM) under Grant Number B2026-18-17.
References
Ellie Arar, Yarden Frenkel, Daniel Cohen-Or, Ariel Shamir, and Yael Vinker. 2025. SwiftSketch: A Diffusion Model for Image-to-Vector Sketch Generation. In SIGGRAPH. Article 82, 12 pages.
Harry G. Barrow, Jay M. Tenenbaum, Robert C. Bolles, and Helen C. Wolf. 1977. Parametric Correspondence and Chamfer Matching: Two New Techniques for Image Matching. In International Joint Conference on Artificial Intelligence.
Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. 2021. Emerging Properties in Self-Supervised Vision Transformers. In ICCV. 9630–9640.
Hsiao-Yuan Chin, I-Chao Shen, Yi-Ting Chiu, Ariel Shamir, and Bing-Yu Chen. 2025. AutoSketch: VLM-assisted Style-Aware Vector Sketch Completion. In SIGGRAPH Asia. Article 91, 11 pages.
Jiwoo Chung, Sangeek Hyun, and Jae-Pil Heo. 2024. Style Injection in Diffusion: A Training-Free Approach for Adapting Large-Scale Diffusion Models for Style Transfer. In CVPR. 8795–8805.
Kevin Frans, Lisa B. Soros, and Olaf Witzkowski. 2022. CLIPDraw: Exploring Text-to-Drawing Synthesis through Language-Image Encoders. In NeurIPS.
Stephanie Fu, Netanel Tamir, Shobhita Sundaram, Lucy Chai, Richard Zhang, Tali Dekel, and Phillip Isola. 2023. DreamSim: Learning New Dimensions of Human Visual Similarity using Synthetic Data. In NeurIPS.
Or Hirschorn, Amir Jevnisek, and Shai Avidan. 2024. Optimize & Reduce: A Top-Down Approach for Image Vectorization. In AAAI. 2148–2156.
Xun Huang and Serge J. Belongie. 2017. Arbitrary Style Transfer in Real-Time with Adaptive Instance Normalization. In ICCV. 1510–1519.
Ajay Jain, Amber Xie, and Pieter Abbeel. 2023. VectorFusion: Text-to-SVG by Abstracting Pixel-Based Diffusion Models. In CVPR. 1911–1920.
Tzu-Mao Li, Michal Lukác, Michael Gharbi, and Jonathan Ragan-Kelley. 2020. Differentiable vector graphics rasterization for editing and learning. ACM Trans. Graph. 39, 6 (2020), 193:1–193:15.
Xi Liu, Chaoyi Zhou, Nanxuan Zhao, and Siyu Huang. 2025. Bézier Splatting for Fast and Differentiable Vector Graphics Rendering. In NeurIPS.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. 2022. High-Resolution Image Synthesis with Latent Diffusion Models. In CVPR. 10674–10685.
Christoph Schuhmann. 2022. Improved Aesthetic Predictor. https://github.com/christophschuhmann/improved-aesthetic-predictor. Accessed: 2026-04-07.
Jiaming Song, Chenlin Meng, and Stefano Ermon. 2021. Denoising Diffusion Implicit Models. In ICLR.
Yael Vinker, Yuval Alaluf, Daniel Cohen-Or, and Ariel Shamir. 2023. CLIPascene: Scene Sketching with Different Types and Levels of Abstraction. In ICCV. 4123–4133.
Yael Vinker, Ehsan Pajouheshgar, Jessica Y. Bo, Roman Christian Bachmann, Amit Haim Bermano, Daniel Cohen-Or, Amir Zamir, and Ariel Shamir. 2022. CLIPasso: semantically-aware object sketching. ACM Trans. Graph. 41, 4 (2022), 86:1–86:11.
Yael Vinker, Tamar Rott Shaham, Kristine Zheng, Alex Zhao, Judith E. Fan, and Antonio Torralba. 2025. SketchAgent: Language-Driven Sequential Sketch Generation. In CVPR. 23355–23368.
Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. 2004. Image quality assessment: from error visibility to structural similarity. IEEE Trans. Image Process. 13, 4 (2004), 600–612.
XiMing Xing, Chuang Wang, Haitao Zhou, Jing Zhang, Qian Yu, and Dong Xu. 2023. DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models. In NeurIPS, Vol. 36, 15869–15889.
Ximing Xing, Haitao Zhou, Chuang Wang, Jing Zhang, Dong Xu, and Qian Yu. 2024. SVGDreamer: Text Guided SVG Generation with Diffusion Model. In CVPR. 4546–4555.
Yiying Yang, Wei Cheng, Sijin Chen, Xianfang Zeng, Jiaxu Zhang, Liao Wang, Gang Yu, Xingjun Ma, and Yu-Gang Jiang. 2025. OmniSVG: A Unified Scalable Vector Graphics Generation Model. (2025). arXiv:2504.06263
Hu Ye, Jun Zhang, Sibo Liu, Xiao Han, and Wei Yang. 2023. IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models. (2023). arXiv:2308.06721
Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. 2023a. Adding Conditional Control to Text-to-Image Diffusion Models. In ICCV. 3813–3824.
Peiying Zhang, Nanxuan Zhao, and Jing Liao. 2023b. Text-Guided Vector Graphics Customization. In SIGGRAPH Asia. Article 54, 11 pages.
Peiying Zhang, Nanxuan Zhao, and Jing Liao. 2025. Style Customization of Text-to-Vector Generation with Image Diffusion Priors. In SIGGRAPH. Article 72, 11 pages.
Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. 2018. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. In CVPR. 586–595.
Hengyu Zhou, Hui Zhang, and Bin Wang. 2024. Segmentation-Guided Layer-Wise Image Vectorization with Gradient Fills. In ECCV. 165–180.
Jin Zhou, Yi Zhou, Hongliang Yang, Pengfei Xu, and Hui Huang. 2026. StrokeFusion: Vector Sketch Generation via Joint Stroke-UDF Encoding and Latent Sequence Diffusion. In AAAI. 13656–13664.