Illustrator's Depth: Monocular Layer Index Prediction for Image Decomposition

Nissim Maruani, Peiying Zhang, Siddhartha Chaudhuri, Matthew Fisher, Nanxuan Zhao, Vladimir G. Kim, Pierre Alliez, Mathieu Desbrun, Wang Yifan · DOI

Abstract

Traditional monocular depth estimation focuses on physical distance, which often fails to capture the artistic intent of layered compositions in digital art and illustrations. We present Illustrator's Depth, a novel approach that predicts a discrete, globally consistent layer index for image decomposition. By training on curated vector graphics datasets, our model learns to prioritize artistic stacking order over physical proximity. Our method significantly outperforms state-of-the-art depth models in layer ordering accuracy and enables high-quality downstream applications such as image vectorization, 3D relief fabrication, and depth-aware editing.

Introduction

In digital content creation, the "layer" is the primary organizational unit. Artists structure their work as a stack of elements ordered from back to front. However, automatically decomposing a flat raster image (e.g., a JPEG) into these editable layers is a long-standing challenge.

Existing solutions typically fall into two categories:

  1. Monocular Depth Estimation (MDE): Models trained to predict physical distance (meters). These fail on art because elements like shadows or patterns on a surface have no "physical" depth, yet an artist treats them as distinct layers.
  2. Segmentation: Tools like Segment Anything (SAM) identify object boundaries but lack information regarding their relative stacking order (e.g., whether a hat is in front of or behind hair).

Illustrator's Depth bridges this gap by defining depth as a discrete, globally consistent ordering of elements optimized for creative editability rather than physical accuracy.

Overview of the Illustrator's Depth model showing its ability to decompose diverse images into ordered layers for downstream tasks.

Methodology

The proposed neural network is designed to predict a layer index for every pixel in an image. We leverage Depth Pro as a backbone, which is built on DINO-v2. This provides a powerful geometric prior, allowing the model to understand basic occlusion and object boundaries. Instead of predicting continuous distance, the model is trained to output discrete layer indices (1 to $N$). We employ a scale-invariant Mean Absolute Error (MAE) loss, which focuses the training on the relative ordering of layers, making the model robust to varying numbers of layers across different images.

Data Curation

The primary challenge was obtaining ground-truth data for artistic layering. We utilized the MMSVG-Illustration dataset, as Scalable Vector Graphics (SVG) are inherently defined by a stacking order of paths. We performed rigorous cleaning of this data, merging consecutive layers of the same color and removing ambiguous cases to ensure a clean signal for "artist intent."

Results and Applications

Our model demonstrates a significant leap in performance for layer-based tasks. On the MMSVG dataset, Illustrator's Depth achieved a layer ordering accuracy of 98.7%, vastly outperforming traditional models like Depth Pro (63.6%).

Qualitative comparison of Illustrator's Depth against Ground Truth (GT) and traditional depth models (Depth Anything-v2, Depth Pro).

Key Insights

  • Depth as Abstraction: By reframing depth from a physical quantity to a creative abstraction, the model handles "flat" depth—such as patterns on clothing—that typically confuses traditional AI.
  • Generalization: Despite being trained on relatively simple SVG illustrations, the model generalizes remarkably well to complex oil paintings and real-world photographs. This suggests that the logic of layering is a universal visual language.

Downstream Magic

The predicted depth maps enable several powerful applications:

  • Image Vectorization: By clustering colors and sorting them by predicted depth, we can trace images into SVGs with higher visual fidelity and fewer paths than heuristic methods.
  • 3D Reliefs: 2D paintings can be automatically converted into 3D-printable tactile reliefs by treating the layer index as elevation.
  • Text-to-Vector: Integration with generative models like Flux allows for the creation of complex, multi-layered SVGs from simple text prompts.

Limitations and Future Work

While effective, the model occasionally struggles with complex, highly textured backgrounds in realistic photographs, sometimes misinterpreting high-frequency textures (like cracks) as separate foreground layers. Future work will involve training on more diverse synthetic datasets that include complex background elements and exploring "zero-shot" generalization using natural language prompts to define layer boundaries.

Summary updated

BibTeX
@inproceedings{maruani2026illustrator,
  author = {Nissim Maruani and Peiying Zhang and Siddhartha Chaudhuri and Matthew Fisher and Nanxuan Zhao and Vladimir G. Kim and Pierre Alliez and Mathieu Desbrun and Wang Yifan},
  title = {{Illustrator's Depth: Monocular Layer Index Prediction for Image Decomposition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=LPsz27wL0a},
}
Figure