TL;DR
Researchers have introduced DeaM (Decompose Layer Model), a multimodal framework that "un-flattens" complex graphic designs like posters into their original, editable layers. Unlike standard segmentation, DeaM reconstructs occluded regions and generates structured JSON metadata for every element, effectively turning a static image back into a layered, editable design file.
What Problem Does This Paper Address?
In digital design, a poster isn't just a flat array of pixels; it’s an "onion" of overlapping layers—backgrounds, photos, text, and decorative elements. While humans can easily distinguish these, AI struggles with the Layer Decomposition of Graphic Designs (LDGD).
Existing computer vision tools fall short for two main reasons:
- Occlusion: When text sits on top of an image, standard models don't know what the image looks like underneath that text.
- Structured Metadata: Editing requires more than just pixels; it requires knowing the font, color, size, and coordinates of elements in a format a machine can read (like JSON).
Current methods, such as standard image segmentation or simple inpainting, cannot handle the intricate interdependence and logical ordering of these layers.
Methods
The authors present DeaM, a unified multimodal model that treats decomposition as a two-stage generative task.
The architecture relies on several core components and a three-phase training pipeline:
- Conjoined Visual Encoder: To capture both high-level semantic categories ("what is this?") and low-level geometric patterns ("where are the edges?"), the model uses a dual encoder combining CLIP and DINO v2.
- LLM Backbone: An InternLM2-7B model acts as the brain, processing visual features and textual instructions to generate layer-specific metadata in JSON format.
- RGB-A VQ-GAN: Standard image quantizers only handle RGB. The authors modified a VQ-GAN to support an Alpha channel, allowing the model to represent transparency and "quantize" layers into discrete tokens.
- Condition-Aware RGB-A Decoder: This "reconstruction" engine takes the tokens from the LLM and uses the original composite image as a reference to "fill in the blanks" of occluded areas with high fidelity.
The training happens in three decoupled phases: first training the VQ-GAN (Phase 1), then instruction-tuning the LLM to output metadata (Phase 2), and finally training the condition-aware decoder (Phase 3).
Datasets
- CreatiLD (New): A massive, in-house dataset of over 200,000 poster images. Each is annotated with rich metadata, including layer order, coordinates, and captions. The authors used GPT-4 to generate open-ended instruction-tuning data for this set.
- Crello: A publicly available academic dataset of visual designs used for benchmarking and evaluation.
Key Insights and Ideas
- The JSON-as-Output Strategy: By forcing the LLM to output structured JSON, the researchers bridge the gap between "seeing" an image and "structuring" it for software like Photoshop or Canva.
- Predicting the Hidden: One of the most impressive capabilities is the model's ability to infer what a background looks like after removing a foreground object, a task requiring a deep understanding of spatial hierarchy.
- Alpha Channel Weighting: The authors found that treating RGB and Alpha channels as equally important during VQ-GAN training led to encoding ambiguity (e.g., the model couldn't distinguish between different black lines). They solved this by applying different weights to the RGB and Alpha reconstruction losses.
- Interactive Decomposition: DeaM isn't just automatic; it supports textual prompts (e.g., "Separate the layers with text") and point-based prompts (clicking on an object to extract it).
Key Results
The model was tested against a baseline that combined OCR, matting, and inpainting.
- Reconstruction Quality: DeaM achieved a Fréchet Inception Distance (FID) of 70.629, significantly outperforming the baseline's 99.603. A lower FID indicates much higher fidelity in the reconstructed layers.
- Localization Accuracy: The model showed superior bounding box accuracy (Loc score of 0.7128) compared to the baseline.
- Qualitative Superiority: Visual results show that DeaM produces much cleaner text and background reconstructions, whereas traditional inpainting methods often leave "ghosting" artifacts or unnatural patterns where the foreground used to be.
Limitations and Future Work
While DeaM is a major step forward, the authors acknowledge a few hurdles:
- Font Accuracy: While the model predicts text content and color well, its ability to perfectly match specific typefaces (font prediction) is not yet exemplary.
- Complex Hierarchies: In designs with dozens of tiny decorative elements, the model sometimes struggles to maintain a clear hierarchical order, occasionally merging elements onto the same layer.
- Tokenizer Power: The authors suggest that moving to even more powerful image tokenizers could further improve the clarity of the decoded images.
Future work will likely focus on refining font recognition and scaling the model to handle even more complex, multi-page graphic documents.
Summary updated