TL;DR
Unflattening a finished image back into editable layers—like separating a foreground subject, text, and background—usually requires heavily retrofitting image models with custom transparency encoders and millions of proprietary training examples. LayersAsFrames flips this script by treating an image's depth-ordered layers as frames in a short video clip. By repurposing off-the-shelf image-to-video (I2V) diffusion models with a clever black-and-white canvas trick for transparency, it achieves state-of-the-art layer decomposition using only 19.3K public designs, while running 4.2–7.8× faster than leading baselines.
What Problem Does This Paper Address?
Graphic designers work in layers (RGBA: red, green, blue, plus an alpha channel for transparency), which lets them move, recolor, or swap elements without disturbing the rest of the scene. However, most images—especially those generated by modern AI—are flattened into a single RGB canvas.
Automating image layer decomposition (recovering that ordered stack of RGBA layers from a flat image) is notoriously tricky. A model has to simultaneously segment objects, estimate soft transparency, determine depth order, and hallucinate hidden background pixels (amodal completion). Prior one-pass generative methods tackle this by taking image diffusion models and heavily modifying them: training custom RGBA variational autoencoders (VAEs) from scratch, adding layer-specific positional encodings, and feeding them millions of proprietary layered files. Iterative methods peel off one layer at a time, which compounds errors as the stack grows.
Methods
The authors' core insight is that image layers and video frames share a structural duality: both are ordered sequences of spatially aligned images, progressing along depth rather than time. Pretrained I2V models already understand occlusion, amodal completion, and variable-length sequences.
Instead of modifying a video model's architecture, LayersAsFrames adapts how the data is fed into it:
- Layers as a Video Clip: The input composite image $I$ serves as the conditioning first frame. The $K$ layers follow in front-to-back order ($L_K, L_{K-1}, \dots, L_1$). Because a video VAE compresses every group of $r$ frames into one latent ($r=4$ for Wan2.2, $r=8$ for LTX-2.5), each layer occupies exactly one latent.
- Training-Free Transparency: Video VAEs only speak RGB, not RGBA. To avoid training a new RGBA VAE, the authors render each layer over a solid black canvas for the first $r/2$ frames and a white canvas for the remaining $r/2$ frames. At inference, subtracting the two decoded canvases analytically recovers both the exact color and alpha channel via triangulation matting.
- Lightweight Adaptation: The video VAE, text encoder, and transformer weights stay completely frozen. The authors only train rank-128 LoRA adapters in the transformer and a tiny (~0.6M parameter) composite guidance patch embedding $\mathcal{P}_c$ that injects the input image's latent directly into every frame's tokens.
- High-Noise Sampling: Because the model decides which object goes into which layer during the earliest, noisiest steps of diffusion, the training schedule samples high noise levels ($\sigma \in [0.95, 1]$) 50% of the time.
Datasets
- Training: Only 19.3K public designs from the Crello dataset (rendered at $704\times 1280$, with 2 to 8 layers per design).
- Evaluation: The Crello test split, plus two unseen zero-shot benchmarks: LICA (620 public designs) and PrismLayersPro (997 synthetic designs).
- Additional Tasks: AIM-500 ($1024\times 1024$) to test RGBA reconstruction quality, and a textile color separation dataset (150 training artworks, 100 held-out test artworks).
Key Insights and Ideas
- Video priors transfer naturally to depth: Probing an off-the-shelf I2V model (LTX-2.5) with a simple text prompt to "remove elements one by one" shows it already knows how to peel off text and plausibly inpaint the background behind it.
- Dual-canvas RGB beats custom RGBA VAEs: Encoding transparency by compositing over black and white lets a frozen RGB video VAE match or outperform dedicated image VAEs retrained specifically for alpha channels (achieving 39.90 dB PSNR on AIM-500 with Wan2.2 vs. 38.62 dB for Qwen's RGBA-VAE).
- Extreme data efficiency: Because the video backbone already understands scene structure, fine-tuning on just 100 designs yields 0.743 IoU@0 on Crello, and 1,000 designs (~5% of the data) nearly matches full-data performance.
Key Results
Evaluated across two backbones—Wan2.2 (5.7B parameters) and LTX-2.5 (21.7B parameters)—LayersAsFrames delivers strong quantitative gains:
- Crello: LTX-2.5 achieves the best IoU@5 (0.936) and lowest RGB L1 (0.036 / 0.025) across all baselines, trailing only the proprietary-data-trained LiWi at IoU@0 (0.874 vs. 0.882).
- Zero-Shot Generalization: Both variants beat all baselines in IoU@0 on unseen benchmarks. On LICA, LTX-2.5 hits 0.755 IoU@0 (+15.1 points over the best one-pass baseline, +5.5 over iterative LayerD). On PrismLayersPro, it reaches 0.742 IoU@0 (+4.7 over the best baseline).
- Speed & Memory: On a single H200 GPU, LayersAsFrames takes 8.0s (Wan2.2) and 14.9s (LTX-2.5) per design—4.2–7.8× faster than Qwen-Image-Layered (62.1s)—while using significantly less GPU memory (33.0–46.8 GiB vs. 61.9 GiB).
- Textile Color Separation: Fine-tuned on just 150 artworks, Wan2.2 outperforms specialized color-separation methods and LoRA-tuned Qwen-Image-Layered, achieving the best L1 (0.0554) and PSNR (24.21 dB, +4.08 dB over Qwen-Image-Layered).
Limitations and Future Work
- Fixed Layer Count Input: The model currently requires the user to specify the number of layers $K$ upfront. Predicting $K$ directly from the input image is a natural next step.
- Rare Complex Designs: Designs with $K \ge 7$ layers make up only ~3% of the training data, leading to noisier performance on very complex stacks. Curating more complex multi-layer datasets should help.
- Multi-Turn Editing: The authors plan to extend the framework to support iterative, multi-turn layer editing.
Summary updated