Introduction
While current text-to-image (T2I) models like Stable Diffusion generate high-quality imagery, they often lack precise spatial and compositional control. Because these models are typically trained on "flat" RGB images, they struggle to distinguish individual objects from their backgrounds. This leads to issues such as attribute bleeding—where properties of one object leak into another—and difficulties in editing specific scene components without affecting the entire image. To address this, we introduce MuLAn (MUlti-Layer ANnotations), a large-scale dataset of photorealistic images decomposed into instance-wise RGBA layers.
The MuLAn Dataset
MuLAn consists of over 44,000 images decomposed into background and isolated object layers with transparency (Alpha channels). The dataset is derived from two primary sources:
- MuLAn-COCO: Approximately 16,000 images from the COCO dataset, capturing diverse and active scenes.
- MuLAn-LAION: Approximately 28,900 high-quality images from LAION Aesthetics 6.5.
In total, the collection provides over 101,000 individual instance layers, making it the first large-scale photorealistic dataset of its kind. Unlike previous synthetic or limited amodal datasets, MuLAn covers a vast range of real-world object categories.
Methodology: A Training-Free Decomposition Pipeline
The core of MuLAn is a pipeline that utilizes a suite of foundation models to "unstack" existing RGB images. The process involves four key stages:
- Instance Discovery: Objects are detected using detCLIPv2 for open-vocabulary recognition, followed by Segment Anything (SAM) to produce high-fidelity masks.
- Depth and Occlusion Ordering: To determine the stacking order, the pipeline uses MiDaS for depth estimation and InstaDepthNet to construct occlusion graphs.
- Instance Completion: For partially occluded objects, a Stable Diffusion-based inpainting model "hallucinates" the missing regions, ensuring each layer represents a complete, standalone entity.
- Layer Captioning: Each layer is individually described using LLaVa and BLIP-2, providing granular text-to-layer associations.
Key Insights and Results
By incorporating an Alpha channel, MuLAn allows models to learn the exact boundaries of objects. Fine-tuning Stable Diffusion on MuLAn enables the generation of native RGBA assets with superior edge quality compared to models trained on standard matting datasets.
Furthermore, MuLAn significantly improves image editing tasks. In instance addition tests, models trained on MuLAn successfully inserted new objects into scenes with minimal attribute bleeding and high background preservation, outperforming existing methods like InstructPix2Pix. This success is attributed to the model treating additions as new layers rather than simple pixel manipulations.
Limitations and Future Directions
The quality of MuLAn is currently bounded by the performance of its constituent models (e.g., SAM or MiDaS). Errors in segmentation or depth estimation can occasionally result in artifacts. Additionally, the dataset currently focuses on images with 1–5 instances and treats the background as a single flat layer. Future work will aim to scale to more complex scenes and decompose backgrounds into multi-depth layers (e.g., foreground, mid-ground, and distant background).
MuLAn represents a shift toward compositional T2I generation, providing the community with a robust resource for building more controllable and editable generative models.
Data available at: https://MuLAn-dataset.github.io/
Summary updated