TL;DR
This paper introduces Illustrator’s Depth, a novel framework that redefines depth from a physical metric to a creative, layer-based abstraction. By training a neural network to predict discrete, globally consistent layer indices directly from raster images, the authors enable high-quality image decomposition that significantly improves image vectorization, text-to-vector generation, 3D relief fabrication, and depth-aware graphic editing.
What Problem Does This Paper Address?
When human artists create digital artwork, they organize elements into a stack of ordered layers to make the image editable. However, decomposing a flat, rasterized image back into these constituent layers is a major challenge in digital content creation.
Existing computer vision tools fall short here:
- Monocular Depth Estimation (MDE) models are designed to predict real-world, physical depth. They fail on flat media (like a graphic printed on a t-shirt) and struggle with artistic conventions where physical depth gradients don't map to discrete layers (e.g., shadows cast on top of an object).
- Panoptic Segmentation models can group pixels into objects but fail to encode any relative global ordering or stacking sequence.
The authors bridge this gap by predicting a piecewise-flat, globally consistent ordinal layer map—"Illustrator's Depth"—which captures the structural layout an artist would naturally use.
Methods
The authors frame layer inference as a pixel-wise regression task, predicting a continuous value that represents relative layer order, which can then be binned into discrete layer indices.
- Architecture: The model leverages Depth Pro (built on a DINO-v2 backbone) as a robust feature extractor. It benefits from powerful geometric and occlusion priors learned from millions of natural images, allowing it to generalize well to complex artistic styles.
- Scale-Invariant Loss Function: Unlike standard MDE models that train in disparity space ($1/d$) to prioritize foreground accuracy, this model treats background and foreground layers with equal importance. It directly predicts discrete layer indices ($1$ to $N$) and optimizes using a scale-invariant Mean Absolute Error (MAE) loss, focusing on the relative ordering rather than absolute index values.
- Post-Processing Pipelines: For vectorization tasks, the continuous depth map is combined with RGB color clustering. Pixels are grouped into color-consistent regions and assigned their median predicted depth, allowing traditional vectorizers to cleanly stack vector paths.
Datasets
To train the network, the authors required large-scale data containing explicit layer structures. They utilized and curated the MMSVG-Illustration dataset, which contains Scalable Vector Graphics (SVG) files where paths are inherently ordered.
- Data Curation: To eliminate noisy training signals caused by subjective artistic choices, the authors applied two cleaning steps: merging consecutive layers that share the exact same RGB color, and excluding ambiguous cases where non-consecutive layers of the same color overlap.
- Ground-Truth Rasterization: They developed a custom rasterization process that encodes layer indices into the RGB channels of a "false color" image, which is then converted into a per-pixel integer depth map for training.
- Evaluation: The final curated dataset comprised roughly 100,000 consistently layered SVG images. The model was also evaluated on the SVGX-Core dataset to test generalization.
Key Insights and Ideas
- Creative Abstraction over Physical Metric: The core "aha moment" is that for graphic design and editing, relative layer order matters more than physical distance. Training a model to understand "what goes on top of what" yields much cleaner, more editable decompositions than trying to force a 3D physical depth map onto a 2D illustration.
- The Power of MDE Priors for 2D Art: Even though the model is trained on relatively simple vector graphics, initializing it with weights from a physical depth estimator (Depth Pro) allows it to generalize remarkably well to complex paintings and real-world textures. The model successfully transfers its understanding of real-world occlusion to the abstract rules of 2D layering.
- Rejecting Disparity Space: Linear layer indexing combined with a scale-invariant loss prevents the model from neglecting background layers, a common issue in standard depth estimation frameworks.
Key Results
The proposed model was evaluated against state-of-the-art MDE models and image vectorization pipelines:
- Layer Ordering Accuracy: On the MMSVG dataset, the model achieved a near-perfect layer ordering consistency score of 0.987, drastically outperforming standard MDE baselines like Depth Anything-v2 (0.791) and Depth Pro (0.636).
- Vectorization Quality: When integrated with standard tracing tools (like Potrace), the pipeline matched the high visual fidelity of top-tier vectorizers while significantly reducing path count errors and eliminating layer misordering (e.g., correctly placing background elements underneath foreground elements).
- Downstream Applications: The authors successfully demonstrated that Illustrator's Depth can power automated 3D bas-relief generation from single flat images, enable depth-aware graphic editing (like inserting objects between layers), and improve text-to-vector generation pipelines.
Limitations and Future Work
- Dataset Dependency: The model relies heavily on structured, cleanly layered SVG datasets for training. If the underlying SVG dataset contains messy or programmatically generated layers that don't reflect human intent, the model's performance could degrade.
- Future Directions: The authors point toward leveraging the rapid advancement of large vision-language models to achieve zero-shot or one-shot layer decomposition using natural language prompts, potentially removing the need for explicit SVG training data altogether.
Summary updated