Underdraw: Curve-Space Completion for Amodal Image Vectorization
Organizations: Mercedes-Benz · Technische Universität Darmstadt
Abstract
Image vectorization converts raster images into editable vector graphics, yet conventional methods often reproduce only what is visible: shapes cut by a foreground layer stay cut, and the cut shows as soon as that layer is moved. Some recent approaches recover the hidden content by completing it in pixel space and converting the result back to vectors. We instead complete the occluded shapes in curve space. A large-scale census of published SVGs, whose layers retain what designers drew beneath foreground elements, shows that contour truncation and fragment separation dominate real occlusions, that the geometric heuristics we tested recover only a limited share of the hidden shapes, and that a sizable share of occlusion boundaries hide nothing, so forced completion does harm. We therefore build Underdraw around a small language model over SVG commands: conditioned on the visible curves, it predicts the curve segments that span each gap, or returns KEEP to leave the base reconstruction unchanged. To give the model geometric context of the kind it was trained on, a full-image anchor map, predicted in a single forward pass and supervised by designer-placed anchors and the junctions of the planarized visible geometry, provides global anchor cues; a layered fitter combines these cues with visible contours and estimated layer order to recover compact visible paths and the gap endpoints for completion; and constrained assembly integrates the predicted curves into the layered SVG. Generative inference is thus confined to the missing vector geometry, with no pixel-space synthesis and no subsequent raster-to-vector conversion. Experiments show that Underdraw recovers occluded shapes that visible-only vectorization leaves truncated while preserving the fidelity of the visible reconstruction, all within a lightweight raster-to-vector pipeline.
Figures & tables
| Method | Matched | hIoU | hBIoU | p-hIoU | Full IoU | LPIPS | Anchors | Time (s) | |
|---|---|---|---|---|---|---|---|---|---|
| Independent | VTracer | 517 | 0.239 | 0.049 | 0.153 | 0.417 | 0.0091 | 476.2 | 0.2 |
| LayerPeeler | 442 | 0.283 | 0.117 | 0.250 | 0.436 | 0.0749 | 339.3 | 109.9 | |
| StarVector-8B | 195 | 0.165 | 0.053 | 0.138 | 0.206 | 0.2344 | 220.6 | 499.6 | |
| OmniSVG-1.1-8B | 145 | 0.108 | 0.033 | 0.088 | 0.146 | 0.2938 | 202.9 | 59.3 | |
| Shared front end | Chord-closed base | 526 | 0.306 | 0.115 | 0.291 | 0.518 | 0.0059 | 100.4 | 94.44 |
| Tangent | 526 | 0.365 | 0.158 | 0.342 | 0.529 | 0.0059 | 101.9 | 94.44 |
| Method | hIoU | hBIoU | Full IoU | Anchors | Time (s) |
|---|---|---|---|---|---|
| Chord closure | 0.433 | 0.357 | 0.788 | 13.4 | 0.6 |
| Tangent | 0.614 | 0.522 | 0.836 | 13.4 | 0.6 |
| Euler spiral | 0.646 | 0.546 | 0.830 | 15.0 | 1.1 |
| LaMa + VT | 0.550 | 0.459 | 0.818 | 29.5 | 12.5 |
| SDXL Inp. + VT | 0.473 | 0.400 | 0.793 | 18.2 | 2.5 |
| FLUX Fill + VT | 0.484 | 0.407 | 0.774 | 38.3 | 23.7 |
| Method | Reveal LPIPS | Reveal PSNR | Reveal SSIM | Crop CLIP-I |
|---|---|---|---|---|
| VTracer | 0.4433 | 16.51 | 0.7801 | 0.8541 |
| LayerPeeler | 0.4062 | 12.65 | 0.7942 | 0.8538 |
| Chord closure | 0.3499 | 19.71 | 0.8202 | 0.8882 |
| Tangent | 0.3362 | 20.30 | 0.8268 | 0.8896 |
| Euler spiral | 0.3397 | 20.37 | 0.8250 | 0.8911 |
| LaMa + VTracer | 0.3366 | 20.25 | 0.8272 | 0.8878 |
| Variant | hIoU | hBIoU | p-hIoU | LPIPS | Anchors |
|---|---|---|---|---|---|
| External paths: chord closure / our curve LM | |||||
| VTracer + chord | 0.282 | 0.085 | 0.265 | 0.0100 | 311.3 |
| VTracer + LM | 0.359 | 0.138 | 0.330 | 0.0099 | 324.8 |
| AdaVec-40 + chord | 0.261 | 0.065 | 0.241 | 0.0216 | 172.8 |
| AdaVec-40 + LM | 0.316 | 0.100 | 0.289 | 0.0215 | 200.9 |
| AdaVec-10 + chord | 0.252 | 0.063 | 0.234 | 0.0166 | 290.2 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Interior | Contour | Fragments | Events | Fraction |
| – | yes | – | 338,895 | 62.97% |
| yes | yes | – | 41,024 | 7.62% |
| yes | – | – | 32,761 | 6.09% |
| – | yes | yes | 85,059 | 15.81% |
| yes | – | yes | 5,378 | 1.00% |
| yes | yes | yes | 11,084 | 2.06% |
| Source group | Presentations | Fraction |
|---|---|---|
| Authored pool | 651,998 | 21.5% |
| Synthetic single-gap | 997,025 | 32.8% |
| Synthetic two-fragment | 911,520 | 30.0% |
| Regular synthetic shapes | 177,004 | 5.8% |
| Real-shape overlays | 223,500 | 7.4% |
| Other | 77,353 | 2.5% |
| Ours | hIoU | hBIoU | p-hIoU |
|---|---|---|---|
| Euler spiral | 0.042 [0.030,0.055] | 0.023 [0.013,0.033] | 0.040 [0.028,0.052] |
| Tangent | 0.048 [0.036,0.061] | 0.035 [0.024,0.046] | 0.044 [0.032,0.057] |
| LaMa + VT | 0.016 [0.008,0.025] | 0.030 [0.021,0.041] | 0.022 [0.013,0.032] |
| SDXL + VT | 0.230 [0.201,0.260] | 0.112 [0.094,0.132] | 0.215 [0.187,0.244] |
| FLUX Fill + VT | 0.109 [0.088,0.130] | 0.072 [0.055,0.091] | 0.110 [0.091,0.129] |
| Chord-closed | 0.107 [0.087,0.128] | 0.077 [0.060,0.095] | 0.095 [0.075,0.116] |
| Method | hIoU | hBIoU | p-hIoU | Full IoU |
|---|---|---|---|---|
| Chord closure | 0.427 | 0.161 | 0.406 | 0.722 |
| Tangent | 0.509 | 0.220 | 0.477 | 0.737 |
| Euler spiral | 0.518 | 0.237 | 0.483 | 0.728 |
| LaMa + VTracer | 0.554 | 0.226 | 0.507 | 0.736 |
| Ours | 0.577 | 0.268 | 0.539 | 0.760 |
| Ours | hIoU | hBIoU |
|---|---|---|
| Euler spiral | 0.028 [0.019,0.037] | 0.038 [0.028,0.048] |
| Tangent | 0.060 [0.051,0.069] | 0.063 [0.053,0.073] |
| LaMa + VT | 0.124 [0.112,0.137] | 0.125 [0.113,0.138] |
| SDXL Inp. + VT | 0.202 [0.191,0.212] | 0.184 [0.174,0.195] |
| FLUX Fill + VT | 0.190 [0.178,0.202] | 0.177 [0.165,0.189] |
| Chord closure | 0.241 [0.230,0.252] | 0.227 [0.216,0.238] |
| Method | Segments mean | Segments median |
|---|---|---|
| VTracer | 476.2 | 430 |
| LayerPeeler | 339.3 | 262 |
| StarVector-8B | 217.9 | 75 |
| OmniSVG-1.1-8B | 202.4 | 193.5 |
| Chord-closed base | 100.4 | 92 |
| Tangent | 101.9 | 94 |
| Variant | Matched | hIoU | hBIoU | p-hIoU | Full IoU |
|---|---|---|---|---|---|
| Initial fit only | 527 | 0.211 | 0.068 | 0.200 | 0.485 |
| Chord closure | 526 | 0.306 | 0.115 | 0.291 | 0.518 |
| No sampling | 526 | 0.410 | 0.190 | 0.383 | 0.544 |
| No occluder input | 526 | 0.398 | 0.186 | 0.371 | 0.540 |
| KEEP disabled | 527 | 0.413 | 0.189 | 0.385 | 0.545 |
| Ours | 527 | 0.414 | 0.192 | 0.386 | 0.546 |
| Front end | Completion | Matched | hIoU | hBIoU | p-hIoU | Full IoU | LPIPS |
|---|---|---|---|---|---|---|---|
| Anchor-guided fit | Chord | 526 | 0.306 | 0.115 | 0.291 | 0.518 | 0.0059 |
| Anchor-guided fit | LM | 527 | 0.414 | 0.192 | 0.386 | 0.546 | 0.0059 |
| VTracer paths | Chord | 516 | 0.282 | 0.085 | 0.265 | 0.503 | 0.0100 |
| VTracer paths | LM | 516 | 0.359 | 0.138 | 0.330 | 0.520 | 0.0099 |
| AdaVec, threshold 40 | Chord | 513 | 0.261 | 0.065 | 0.241 | 0.492 | 0.0216 |
| AdaVec, threshold 40 | LM | 513 | 0.316 | 0.100 | 0.289 | 0.504 | 0.0215 |
| Method | hIoU | Excess | Excess 10% | hIoU 0.9 |
|---|---|---|---|---|
| Chord closure | 0.999 | 0.03% | 0.0% | 0.0% |
| Tangent | 0.971 | 6.0% | 7.4% | 7.4% |
| Euler spiral | 0.966 | 11.4% | 7.4% | 8.2% |
| KEEP disabled | 0.904 | 10.7% | 15.0% | 27.1% |
| Ours | 0.972 | 5.8% | 6.5% | 7.1% |
| Model | Valid (%) | p-hIoU | hBIoU |
|---|---|---|---|
| GPT-6 Astra | 100 | 0.390 | 0.302 |
| GPT-6.1 Sol | 100 | 0.387 | 0.256 |
| Claude Fable 5.2 | 100 | 0.350 | 0.253 |
| Claude Opus 5.5 | 100 | 0.244 | 0.143 |
| Gemini 4 Argon | 75 | 0.308 | 0.212 |
| Ours (107M) | 100 | 0.421 | 0.322 |