ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation

Yifan Pu, Yiming Zhao, Zhicong Tang, Ruihong Yin, Haoxing Ye, Yuhui Yuan, Dong Chen, Jianmin Bao, Sirui Zhang, Yanbin Wang, Lin Liang, Lijuan Wang, Ji Li, Xiu Li, Zhouhui Lian, Gao Huang, Baining Guo · DOI

TL;DR

This paper introduces ART, a novel transformer-based model for generating multi-layer transparent images. ART uses an "anonymous region layout" instead of explicit semantic labels for each layer, allowing generative models to autonomously infer content and significantly speeding up generation while enabling a variable number of layers.

What Problem Does This Paper Address?

Current diffusion-based generative models excel at creating single-layer images but struggle with multi-layer image generation. This is a significant limitation for creative fields like graphic design and digital art, where layer-by-layer control is crucial for complex compositions. Existing methods for multi-layer generation often require laborious manual annotation of semantic layouts (specifying both the content and location of each layer), which becomes impractical for designs with many layers. This paper aims to bridge this gap by enabling efficient, flexible, and controllable generation of variable multi-layer transparent images.

Methods

ART's core innovation lies in its Anonymous Region Transformer (ART) and the associated anonymous region layout. Instead of defining what goes into each region, the anonymous region layout simply specifies rectangular regions. The model, inspired by Schema Theory, leverages a global text prompt to autonomously infer the semantic content for each region.

Key components of the ART framework include:

  • Multi-layer Transparent Image Autoencoder: This component encodes and decodes multi-layer images and their transparency information into a latent space. It handles a variable number of layers and resolutions.
  • Anonymous Region Transformer (ART): This is the generative backbone, built upon a diffusion transformer (MMDiT). It generates a global reference image, a background image, and multiple RGBA transparent foreground layers simultaneously, conditioned on the anonymous region layout and global text prompt. A crucial technique here is a layer-wise region crop that significantly reduces computational costs by focusing attention only on relevant visual tokens within each anonymous region.
  • Anonymous Region Layout Planner: This module predicts a set of anonymous bounding boxes based on the user-provided text prompt. It's implemented by fine-tuning a large language model (LLM).

ART also incorporates a novel 3D-ROPE (Rotary Position Embedding) for encoding positional information across layers, which is shown to be critical for decoder quality.

Datasets

The paper introduces a new dataset:

  • Multi-Layer Transparent Design (MLTD) dataset: A private, large-scale dataset of approximately 1 million multi-layered transparent designs with high-quality alpha channels. It features variable resolutions and an average of 11 layers per design.

Existing datasets used for evaluation include:

  • DESIGN-MULTI-LAYER-BENCH: A validation set derived from the MLTD dataset.
  • PHOTO-MULTI-LAYER-BENCH: A set of photorealistic multi-layer image prompts derived from the COCO dataset.

Key Insights and Ideas

  • Schema Theory as a Foundation: The paper draws a parallel between human understanding of concepts and the model's ability to infer semantic content from anonymous regions, suggesting that generative models can learn to "understand" context similarly to how humans use schemas.
  • Anonymous Layouts are Sufficient: The research demonstrates that explicit semantic labels for each region are not necessary for high-quality multi-layer generation. The anonymous layout, combined with a powerful generative model, can achieve comparable or even better results, especially in terms of layer coherence.
  • Efficiency Gains from Regional Cropping: Focusing attention only on tokens within defined anonymous regions dramatically reduces computational overhead, enabling the generation of many more layers (50+) much faster than full attention mechanisms.
  • Joint Generation for Harmonization: Generating all layers and the reference image simultaneously helps ensure better global harmonization and prevents conflicts between layers.
  • 3D-ROPE for Layer Awareness: Standard positional embeddings are insufficient for multi-layer tasks. 3D-ROPE is shown to be crucial for accurately encoding positional information across different layers in the decoder.

Key Results

  • Speedup: ART is over 12 times faster than full attention approaches.
  • Scalability: ART can efficiently generate images with 50+ distinct layers, a significant improvement over previous methods.
  • Quality: User studies show ART significantly outperforms state-of-the-art methods like LayerDiffuse and COLE in photorealistic and graphic design domains, respectively, across various metrics including aesthetics, prompt adherence, and harmonization.
  • Anonymous Layout Performance: ART with an anonymous region layout achieves comparable FIDmerged scores to semantic layouts but significantly higher PSNR, indicating better layer coherence.
  • Data Efficiency: ART achieves impressive results with a relatively small dataset (8K samples), demonstrating its data efficiency.

Limitations and Future Work

  • Repeated and Combined Layer Generation: The paper acknowledges limitations in handling repeated layer generation and combined layer generation, suggesting these are areas for future improvement.
  • Generalizability of Layouts: Further exploration is needed to understand the model's generalizability across all potential layout types.
  • Autonomous Semantic Labeling: While ART autonomously infers content, future work could focus on further enhancing this capability and improving the quality and flexibility of generated images.

Summary updated

BibTeX
@inproceedings{pu2025art,
  author = {Yifan Pu and Yiming Zhao and Zhicong Tang and Ruihong Yin and Haoxing Ye and Yuhui Yuan and Dong Chen and Jianmin Bao and Sirui Zhang and Yanbin Wang and Lin Liang and Lijuan Wang and Ji Li and Xiu Li and Zhouhui Lian and Gao Huang and Baining Guo},
  title = {{ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00745},
}
Figure