Lang-SVG: Hierarchical Image Vectorization with Language Priors
Organizations: Clemson University · University of Copenhagen · eBay
Abstract
Image vectorization reconstructs raster images as compact scalable vector graph- ics (SVG), providing a structured and editable code representation of images. However, most existing vectorization methods optimize for pixel-level render- ing fidelity, often producing SVGs that lack alignment with human-perceived object-part hierarchies, making them difficult to manipulate. To address this, we propose Lang-SVG, which introduces an explicit tree structure to organize SVG primitives with semantic labels and parent-child relationships. Lang-SVG incorporates granularity-controllable and open-vocabulary segmentation priors to initialize object-part hierarchies and leverages multimodal large language models (MLLMs) with SVG tree context to assign semantic labels to unlabeled nodes. To reduce redundancy, we introduce depth-adaptive simplification to reduce shape complexity and Tree-Guided Pruning and Merging to eliminate redundant SVG nodes. L1-SAM-Prompting further recovers missing regions to improve recon- struction fidelity and structural completeness. Beyond reconstruction fidelity, we introduce a new evaluation protocol that measures structural quality and semantic part alignment. Experiments demonstrate that Lang-SVG achieves state-of-the-art performance in both rendering fidelity and structural quality. Project website: https://xiliu8006.github.io/Lang-SVG/.
Figures & tables
| Method | 576 points / 64 curves | 1152 points / 128 curves | 2304 points / 256 curves | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LIVE [ 20 ] | 0.631 | 21.28 | 0.468 | 0.420 | 0.625 | 0.680 | 23.16 | 0.394 | 0.582 | 0.692 | 0.739 | 25.45 | 0.302 | 0.748 | 0.764 |
| LIVSS [ 18 ] | 0.598 | 19.50 | 0.490 | 0.379 | 0.609 | 0.643 | 21.48 | 0.421 | 0.531 | 0.664 | 0.707 | 24.12 | 0.336 | 0.695 | 0.734 |
| DiffVG [ 14 ] | 0.624 | 21.81 | 0.472 | 0.290 | 0.597 | 0.667 | 23.29 | 0.407 | 0.437 | 0.658 | 0.716 | 24.83 | 0.332 | 0.629 | 0.745 |
| SGLIVE [ 19 ] | 0.633 | 21.38 | 0.464 | 0.462 | 0.634 | 0.681 | 23.32 | 0.385 | 0.610 | 0.694 | 0.732 | 25.04 | 0.305 | 0.731 | 0.752 |
| Ours | 0.638 | 21.88 | 0.436 | 0.506 | 0.651 | 0.694 | 24.07 | 0.360 | 0.655 | 0.717 | 0.746 | 25.90 | 0.291 | 0.775 | 0.777 |
| Protocol | Method | 576 points / 64 curves | 1152 points / 128 curves | 2304 points / 256 curves | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Same points | LIVE [ 20 ] | 42.4 | 17.2 | 5.2 | 2.7 | 16.9 | 51.3 | 20.5 | 4.7 | 1.9 | 19.6 | 56.9 | 23.3 | 6.8 | 2.8 | 22.4 |
| DiffVG [ 14 ] | 43.1 | 13.0 | 2.8 | 0.7 | 14.9 | 46.7 | 13.6 | 2.8 | 0.8 | 16.0 | 49.5 | 12.6 | 2.1 | 0.7 | 16.2 | |
| LIVSS [ 18 ] | 49.9 | 33.4 | 19.7 | 12.2 | 28.8 | 65.4 | 51.7 | 30.7 | 17.8 | 41.4 | 79.3 | 61.8 | 35.4 | 20.1 | 49.1 | |
| SGLIVE [ 19 ] | 42.8 | 18.4 | 6.2 | 3.5 | 17.7 | 50.5 | 21.9 | 6.2 | 2.9 | 20.4 | 57.4 | 23.4 | 5.6 | 2.7 | 22.3 | |
| Ours | 75.1 | 60.5 | 37.2 | 21.1 | 48.5 | 85.1 | 70.7 | 44.0 | 26.3 | 56.5 | 94.3 | 79.3 | 51.3 | 31.8 | 64.2 | |
| Method | 576 points | 1152 points | 2304 points | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LIVE [ 20 ] | 19.76 | 0.371 | 0.607 | 0.234 | 0.238 | 21.46 | 0.534 | 0.675 | 0.291 | 0.261 | 23.41 | 0.692 | 0.752 | 0.331 | 0.276 |
| LIVSS [ 18 ] | 18.29 | 0.349 | 0.599 | 0.226 | 0.236 | 19.94 | 0.472 | 0.653 | 0.273 | 0.255 | 22.16 | 0.641 | 0.724 | 0.323 | 0.272 |
| DiffVG [ 14 ] | 20.35 | 0.271 | 0.591 | 0.188 | 0.228 | 21.63 | 0.387 | 0.642 | 0.233 | 0.249 | 22.95 | 0.559 | 0.717 | 0.294 | 0.270 |
| Ours | 20.53 | 0.460 | 0.644 | 0.270 | 0.254 | 22.27 | 0.601 | 0.703 | 0.313 | 0.268 | 23.78 | 0.724 | 0.760 | 0.341 | 0.279 |
| Threshold | Child Containment | Tagging Reliability | Labeled Subpart Recall |
|---|---|---|---|
| 0.3 | 98.13 | 82.56 | 65.98 |
| 0.5 | 95.55 | 68.25 | 47.06 |
| 0.7 | 86.65 | 46.62 | 27.00 |
| ID | Full Img. | Crop Img. | Obj./Par. | Sib./Child | Geo. | Color | Acc. |
|---|---|---|---|---|---|---|---|
| A0 | ✓ | ✓ | 58.5 | ||||
| A1 | ✓ | ✓ | ✓ | 67.7 | |||
| A2 | ✓ | ✓ | ✓ | ✓ | 68.9 | ||
| A3 | ✓ | ✓ | ✓ | ✓ | ✓ | 80.2 | |
| A4 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 81.3 |
| Negative controls | |||||||
| Method | Segmentation priors | |||||
|---|---|---|---|---|---|---|
| LIVSS | SAM | 0.707 | 24.12 | 0.336 | 0.695 | 0.734 |
| LIVSS | Semantic-SAM + Grounded-SAM | 0.707 | 24.23 | 0.338 | 0.708 | 0.735 |
| Ours | Semantic-SAM + Grounded-SAM | 0.746 | 25.90 | 0.291 | 0.775 | 0.777 |
| Method | Depth | Tree | Tree Pruning | |||||
|---|---|---|---|---|---|---|---|---|
| w/o depth simplification | ✓ | ✓ | 0.717 | 24.84 | 0.332 | 0.714 | 0.744 | |
| w/o tree and tree pruning | ✓ | 0.708 | 24.29 | 0.337 | 0.705 | 0.737 | ||
| w/o Tree Prune | ✓ | ✓ | 0.743 | 25.71 | 0.296 | 0.769 | 0.770 | |
| Ours | ✓ | ✓ | ✓ | 0.746 | 25.90 | 0.291 | 0.775 | 0.777 |
| Method | |||||
|---|---|---|---|---|---|
| w/o L1-SAM-Prompting | 0.740 (-0.006) | 25.41 (-0.49) | 0.298 (+0.007) | 0.762 (-0.013) | 0.770 (-0.007) |
| w/ UnSAMv2 | 0.741 (-0.005) | 25.73 (-0.17) | 0.297 (+0.006) | 0.763 (-0.012) | 0.769 (-0.008) |
| Ours | 0.746 | 25.90 | 0.291 | 0.775 | 0.777 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | |||||
|---|---|---|---|---|---|
| DiffVG | 0.9125 | 26.46 | 0.1274 | 0.8899 | 0.9397 |
| LIVE | 0.9349 | 28.19 | 0.0882 | 0.9616 | 0.9704 |
| SGLIVE | 0.9308 | 28.62 | 0.0815 | 0.9546 | 0.9728 |
| LIVSS | 0.9319 | 28.24 | 0.0945 | 0.9491 | 0.9696 |
| Ours | 0.9384 | 29.28 | 0.0782 | 0.9549 | 0.9766 |