Introduction
Researchers from ByteDance have introduced Referring Layer Decomposition (RLD), a novel task that breaks a single RGB image into distinct, complete RGBA layers based on flexible user prompts such as text, points, or boxes. To power this advancement, they released RefLade, a massive dataset of 1.11 million image-layer-prompt triplets, and RefLayer, a diffusion-based baseline model capable of "seeing" behind occlusions to reconstruct hidden parts of objects.
Most modern AI image tools treat a picture like a "monolithic canvas"—a flat array of pixels. If you want to move a person in a photo, the AI often doesn't know what the background looks like behind them or what the rest of the person's body looks like if it's partially hidden by a table. Existing region-based editing techniques are limited because they only affect visible pixels and lack "amodal awareness" (the understanding of occluded regions). This paper bridges the gap between flat images and the structured, layer-based workflows used by professionals in tools like Photoshop. The goal is to extract a specific object as a high-quality, transparent RGBA layer, even if parts of it are hidden.
Methods
The authors tackle the problem through three main contributions:
- The Data Engine: Since high-quality RGBA layers with ground-truth "hidden" areas are rare, the team built a six-stage automated pipeline. It filters images, detects objects, uses generative inpainting to "complete" occluded regions, refines edges with alpha matting, and generates diverse prompts (textual and spatial).
- RefLayer (The Model): Built on Stable Diffusion 3, this baseline model uses a VAE to encode both the original image and a "spatial prompt" (a color-coded map representing points or boxes) into a latent space. It employs a parallel alpha decoder to predict transparency alongside the RGB content.
- HPA Evaluation Protocol: They developed the Human Preference Aligned (HPA) score. Standard metrics like CLIP or FID often fail to capture human nuance in image decomposition. HPA combines three axes:
- Preservation: Does the visible part match the original? (via LPIPS)
- Completion: Is the newly generated "hidden" part semantically consistent? (via CLIP directional similarity)
- Faithfulness: Is the overall distribution realistic? (via FID)
The RefLade Dataset
The primary contribution of this work is RefLade, which dwarfs previous efforts in this space. It boasts a massive scale of 1.11M image–layer–prompt triplets and includes 100K manually curated, high-fidelity layers alongside a 10K curated test set. Compared to the previous state-of-the-art (MuLAn), RefLade features a much higher occlusion rate (60.8% vs 7.7%) and includes significantly more small, diverse objects.
Key Insights and Ideas
- Data Hunger vs. Quality Hunger: The authors found that foreground decomposition is "data-hungry"—it improves steadily as you scale from 50K to 1M samples. However, background decomposition is "quality-hungry"—it benefits more from a small amount of high-fidelity, manually cleaned data than from massive amounts of noisy, automated data.
- Spatial > Linguistic: Spatial prompts (boxes/points) significantly outperform text-only prompts. Text prompts often struggle with precise localization (e.g., "the person in the middle"), whereas a simple box instantly resolves ambiguity.
- Specialization Matters: Even advanced general-purpose models struggle with this task, often failing to preserve object identity or producing "fake" checkerboard backgrounds instead of true alpha channels.
Key Results
RefLayer trained on RefLade consistently outperformed models trained on older datasets like MuLAn across all metrics. Furthermore, the HPA score showed a 0.96 Pearson correlation with human ELO rankings, proving it is a reliable proxy for human judgment. In "Passrate@K" tests, the best model achieved a 74% pass rate for background layers and a 79% pass rate for foreground layers at K=10, meaning humans found the results satisfactory in the vast majority of cases.
Limitations and Future Work
While groundbreaking, the current approach has limitations:
- Environmental Effects: The model ignores shadows, reflections, and weather effects (rain/dust). If you pull an object out of a scene, the shadow it leaves behind is not yet handled.
- Mutual Occlusion: While the model decomposes layers, it doesn't yet solve the "composition" problem of perfectly re-stacking multiple predicted layers that might overlap in complex ways.
- Granularity: The pipeline currently operates at the "instance" level (the whole car). Future work could extend this to "parts" (just the wheels or the door).
- Inpainting Errors: About 65% of the errors in the data engine come from the inpainting stage, where the model might hallucinate "unwanted completeness" (like giving a person an extra-long leg).
Summary updated