Underdraw: Curve-Space Completion for Amodal Image Vectorization

Mengnan Jiang, Eva Heckert, Michele Franco Adesso, Antonio Haas, Grace Li ZhangarXiv 2026

TL;DR

When you convert a flat raster image into an editable SVG, standard tools only trace what they can see—meaning the moment you move a foreground object, you discover a jagged hole in the layer beneath it. Underdraw solves this by treating hidden shape recovery as an autocomplete problem in pure vector space: using a compact language model trained on SVG curve commands, it seamlessly draws the missing geometry hidden behind foreground layers without ever synthesizing pixels or ruining the visible artwork.

Figure 1. Complete the shape an edit reveals. Visible paths provide the context for predicting the missing SVG commands.

What Problem Does This Paper Address?

Imagine vectorizing a raster icon of a wrap or burger so you can animate or edit its ingredients. Conventional vectorization tools act like literal-minded cookie cutters: they trace visible color regions accurately, leaving background shapes sliced wherever a foreground element overlaps them. Move the top bun, and the lettuce underneath has a big bite taken out of it.

Recovering the complete, hidden extent of partially occluded objects is known as amodal completion. Recent approaches try to solve this in pixel space—peeling back layers, running heavy image-inpainting diffusion models to hallucinate the missing pixels, and re-vectorizing the result. Unfortunately, re-tracing synthesized pixels often produces messy, bloated vector paths with hundreds of stray anchor points, while end-to-end image-to-SVG generators risk altering the visible parts of the image you wanted to keep intact. The authors ask: if most of a shape is already visible as clean mathematical curves, why not keep those curves fixed and generate only the missing segments directly as SVG commands?

Methods

Underdraw operates as a three-stage raster-to-SVG pipeline that separates reconstructing what is seen from generating what is hidden:

Underdraw's three-stage pipeline
  1. Anchor-Guided Visible Reconstruction: Starting from standard traced regions (VTracer) and estimated layer depth (Illustrator's Depth), a lightweight 4.4M-parameter neural network (built on a frozen SAM 2.1 encoder) predicts a global "anchor field." Supervised by where human designers actually place Bézier control points and junctions, this guides a layered curve fitter to build clean, sparse visible paths and pinpoint the exact endpoints of occluded gaps.
  2. Curve-Space Language Model: Instead of painting pixels, a 107M-parameter causal Transformer (initialized from SmolLM2-135M with a custom 533-token SVG vocabulary) treats shape completion as conditional sequence infilling. Each gap is normalized into a standard coordinate frame—eliminating position, rotation, and scale variations. Conditioned on the visible curves and surrounding occluder geometry, the model outputs line or cubic Bézier commands to bridge the gap—or emits a dedicated KEEP token to leave a simple straight chord if no extension is needed. Objects with multiple gaps are updated one interval at a time in cyclic passes.
  3. Constrained Layer Assembly: Predicted curves are integrated using boolean operations constrained strictly to hidden regions. This mathematically guarantees that generated extensions never overwrite or distort the visible composition. Invalid paths safely fall back to simpler geometric continuations.

Datasets

  • SVG Occlusion Census: The authors analyzed 108,584 published SVG files (yielding 538,167 significant occlusion events) by rendering their authored layers one by one to study how human designers construct hidden geometry.
  • Training Data: The curve model is pretrained on synthetic occlusions and fine-tuned on synthetic data plus 132,626 real authored gap queries from ~32,000 SVGs (98.1% from MMSVG-Illustration, with the rest from open Iconify collections), carefully deduplicated against evaluation shapes.
  • Evaluation Benchmarks: Whole-image reconstruction is tested on 200 manually vetted icons and emoji (Twemoji, FXEmoji, EmojiOne, Fluent Emoji, Noto) containing 732 hidden targets. Pure curve-continuation quality is isolated on 3,062 controlled single-gap queries from MMSVG-Illustration.

Key Insights and Ideas

  • Almost all occlusions are broken contours: Across half a million real SVG occlusions, 89.46% involve contour truncation or fragmentation—both of which reduce to the exact same problem once fragments are grouped: predicting missing intervals along a closed curve.
Figure 2. Occlusion phenomena in authored SVGs. Dashed outlines mark the originally visible boundary; rates are over 538,167 significant events, and phenomena overlap.
  • Simple geometry isn't enough: Smooth mathematical heuristics like Euler spirals cannot place sharp corners—like the pointed tip of a necktie—inside an occluded gap. Even choosing the best of 17 geometric rules with an oracle reaches high accuracy ($\text{IoU} \ge 0.8$) in only 20.11% of truncated contours.
  • Knowing when not to draw is crucial: Roughly a quarter (26.1%) of real occlusion boundaries hide nothing—designers simply stopped drawing right behind the foreground seam. Forcing a model to extrapolate there causes ugly bulges, making the learned KEEP token essential.
  • Curve completion is plug-and-play: Because the language model reads pure Bézier geometry rather than image features, the exact same frozen model upgrades external vectorizers (like VTracer and AdaVec) out of the box without retraining.

Key Results

  • Better Hidden Shapes & Edits: On the 200-icon benchmark, Underdraw achieves 0.414 hidden IoU and 0.192 hidden Boundary IoU, beating pixel-inpainting + tracing (LaMa + VTracer at 0.397 / 0.162; FLUX.1 Fill + VTracer at 0.305 / 0.120) and Euler spirals (0.371 / 0.170). In blinded human studies of edited scenes, participants rated Underdraw 4.34 / 5, comfortably ahead of the best baseline (Euler at 3.82).
  • Compact, Editable Vectors: Underdraw uses 76.9% fewer anchor points than VTracer (110.0 vs. 476.2 per image)—and up to 14$\times$ fewer than diffusion-inpainted traces (1604.1 for FLUX Fill)—while achieving better visual fidelity (0.0059 vs. 0.0091 LPIPS).
  • Beats Giant Chat Models for Pennies: Tested against five frontier hosted LLMs (including Claude, GPT, and Gemini variants) on 20 curve queries, the 107M curve model achieved higher accuracy (42.1% vs. 24.4–39.0% p-hIoU) while running at least 12$\times$ faster (0.30 s/query) and 39$\times$ cheaper (0.018 cents/query).

Limitations and Future Work

Because Underdraw relies on visible curves for context, it struggles with objects that are completely (or nearly completely) hidden, ambiguous grouping of disconnected fragments, and errors in upstream layer-order estimation. Furthermore, the current system is evaluated on flat-colored icons and emoji; extending curve-space completion to complex, textured illustrations remains an open direction for future work.

Summary updated

BibTeX
@misc{jiang2026underdraw,
  author = {Mengnan Jiang and Eva Heckert and Michele Franco Adesso and Antonio Haas and Grace Li Zhang},
  title = {{Underdraw: Curve-Space Completion for Amodal Image Vectorization}},
  year = {2026},
  eprint = {2611.36075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36075},
}
Figure