Source-linked AI summary
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
TL;DR
ART addresses the challenge of generating editable multi-layer transparent images without labor-intensive region-wise semantic prompts. It jointly encodes, generates, and decodes variable layers using anonymous-region conditioning and layer-wise crops. The method improves coherence and enables efficient generation of numerous layers, while remaining limited by repeated or combined layer generation and ongoing visual-quality challenges.
Problem
Existing diffusion models typically generate a single unified image, limiting independent layer editing needed in graphic design and digital art.
Source: §1 · p. 1Method
ART combines a joint multi-layer transparent autoencoder, anonymous-region-conditioned transformer, and layer-wise cropped generation for variable transparent layers.
Source: §1 · pp. 1–2, §3.2 · p. 5Results
ART provides better cross-layer coherence and more scalable generation of numerous transparent layers than semantic-layout approaches, with reduced computation from regional attention.
Source: §1 · p. 2Takeaways & Limitations
Anonymous region layouts support controllable, scalable multi-layer generation while reducing the need for explicit region-wise semantic annotations.
Source: §1 · pp. 1–3The approach can produce repeated or combined layers, and future work targets stronger semantic identification and improved visual quality and flexibility.
Source: §5 · p. 9
Abstract
from arXiv · showhide
Multi-layer image generation is a fundamental task that enables users to isolate, select, and edit specific image layers, thereby revolutionizing interactions with generative models. In this paper, we introduce the Anonymous Region Transformer (ART), which facilitates the direct generation of variable multi-layer transparent images based on a global text prompt and an anonymous region layout. Inspired by Schema theory suggests that knowledge is organized in frameworks (schemas) that enable people to interpret and learn from new information by linking it to prior knowledge.}, this anonymous region layout allows the generative model to autonomously determine which set of visual tokens should align with which text tokens, which is in contrast to the previously dominant semantic layout for the image generation task. In addition, the layer-wise region crop mechanism, which only selects the visual tokens belonging to each anonymous region, significantly reduces attention computation costs and enables the efficient generation of images with numerous distinct layers (e.g., 50+). When compared to the full attention approach, our method is over 12 times faster and exhibits fewer layer conflicts. Furthermore, we propose a high-quality multi-layer transparent image autoencoder that supports the direct encoding and decoding of the transparency of variable multi-layer images in a joint manner. By enabling precise control and scalable layer generation, ART establishes a new paradigm for interactive content creation.
1. Introduction
ART generates variable-resolution multi-layer transparent images from global prompts and anonymous regions, reducing annotation demands while supporting scalable, coherent layer generation. Its framework combines a joint transparent-image autoencoder, layout-conditioned transformer, layout planner, and large-scale dataset.
1. Introduction
- ART addresses the limitation of single-layer text-to-image models by targeting independently editable multi-layer transparent compositions.Layer-by-layer control is important for graphic design and digital art.Source: §1 · p. 1
- Anonymous regions specify locations without region-wise prompts, letting the model infer layer semantics from the global prompt and reducing labor for layouts with many regions.The model associates regional visual tokens with relevant global text tokens; adding region prompts can diminish cross-layer coherence.Source: §1 · pp. 1–2, Figure 1 · p. 1
- Anonymous layouts improve coherence because regional and global visual tokens attend to the same global text tokens rather than balancing incompatible regional and global conditioning.The layout also scales better than recaptioning many crops, whose captions can be noisy.Source: §1 · p. 2
2. Related work
- ART differs from prior simultaneous or sequential methods by generating tens of transparent layers jointly, whereas earlier systems generally support only limited layer counts.Prior examples include Text2Layer [55], LayerDiff [20], LayerDiffuse [54], COLE [25], and OpenCOLE [24].Source: §1 · p. 2, §2 · p. 3
3.1. Multi-Layer Transparent Image Autoencoder
- The framework jointly encodes and decodes a variable number of transparent layers at varying resolutions, including the composed reference image and RGBA foreground layers.The autoencoder concatenates latent tokens for the reference, background, and foreground layers and decodes them in one forward pass.Source: §3 · p. 3, Figure 4 · p. 4, §3.1 · p. 4
- The autoencoder uses gray-background preprocessing and alpha-channel information to support transparency decoding, while tight crops produce variable-length foreground token sequences.The gray background was found sufficient for accurate transparency decoding.Source: §3.1 · pp. 3–4
3.2. Anonymous Region Transformer
- ART applies layout-conditioned multi-layer 3D RoPE to noisy latents and simultaneously generates a reference image, background, and all foreground layers.The design encodes relative width, height, and layer positions while using MMDiT to process text and image tokens.Source: §3.2 · pp. 4–5
3.3. Anonymous Region Layout Planner
- The layout planner predicts anonymous bounding boxes from text using a fine-tuned LLaMA-3.1-8B, and the MLTD dataset supplies approximately 1 million variable-resolution transparent designs.The dataset averages 11 layers per design, with 99.9% containing fewer than 50 layers; the paper reports that 8K high-quality examples can suffice.Source: §3.3 · p. 5, §3.4 · p. 5
4. Experiment
ART is evaluated on multi-layer graphic-design and photorealistic image generation, with system-level comparisons, layout and attention ablations, and decoder analyses. Results support stronger layer quality, scalability, and efficiency, while performance varies with data scale, layer count, and caption complexity.
4.1. System-level Comparisons
- ART significantly outperforms LayerDiffuse across harmonization, aesthetics, and prompt following, and surpasses COLE on multiple aspects except typography.The comparisons use 30 participants evaluating 50 image pairs per method; COLE retains an advantage in typography because its text is rendered with a typography renderer.Source: §4.1 · pp. 6–7
- Anonymous region layout produces comparable FIDmerged but significantly higher PSNR than semantic layout, indicating stronger layer coherence and global harmonization.The paper attributes lower semantic-layout coherence to conflicts between local region prompts and global visual tokens; over 80% of inferred anonymous-region labels align with human annotations.Source: §4.2 · p. 7, Table 2 · p. 7
4.2. Ablation Study and Analysis
- Regional Full Attention achieves superior FIDmerged while keeping computational costs nearly constant from 10 to 50 layers, unlike Full Attention’s quadratic growth.Regional cropping removes most transparent pixels and constrains predictions to the anonymous regions; comparisons also include Spatial + Temporal Attention.Source: §4.2 · pp. 7–8, Table 4 · p. 7
- 3D-RoPE outperforms absolute layer-position encoding for latent features and achieves the best FIDmerged among tested decoder position-embedding schemes.The decoder analysis finds that simply adding layer-wise absolute embeddings provides minimal improvement, whereas replacing absolute encoding with RoPE substantially improves decoding quality.Source: Table 5 · p. 7, §4.2 · p. 8
- Larger training datasets improve performance, although ART already achieves strong results with 8K samples, demonstrating data efficiency.Performance improves with dataset scale, while only 20 curated high-quality natural images suffice for strong multi-layer natural-image results after fine-tuning.Source: Table 6 · p. 7, §4.2 · p. 8
- ART performs better as the number of transparent layers increases but slightly worse with longer captions, which the paper attributes to training-set distributions.The model also applies directly to multi-layer natural image generation without architectural modifications, and reference composed-image prediction improves FIDmerged at a slight inference-time cost.Source: §4.2 · pp. 7–8, Table 7 · p. 7, Table 8 · p. 7
5. Conclusion
ART generates variable-resolution transparent layers and supports flexible layer compositing, while remaining limited by repeated or combined layer generation and unresolved generalizability across layouts.
- ART supports generating a variable number of transparent layers at variable resolution and enables flexible image editing through layer compositing.Source: §5 · p. 9
- The method offers better layer coherence, more scalable annotation, and efficient generation across distinct anonymous region layouts.Source: §5 · p. 9
- ART remains limited by repeated layer generation, combined layer generation, and uncertain generalizability across all potential layouts.Source: §5 · p. 9
- Future work targets autonomous semantic-label identification and improved visual quality and flexibility for generated images.Source: §5 · p. 9
1. Detailed List of Prompts and Anonymous Region Layouts
The supplementary material documents the prompts, anonymous layouts, and user-study instructions used for evaluation and fair comparisons.
- Tables 2 to 4 document the global prompts and anonymous layouts used in Figures 5 and 6.Source: §1 · p. 12
- The first two rows of Table 4 use global prompts selected from DESIGNINTENTION for fair comparisons.Source: §1 · p. 12
- Tables 5 and 6 provide the instructions for user studies on PHOTO-MULTI-LAYER-BENCH and DESIGN-MULTI-LAYER-BENCH.Source: §1 · p. 12
2. Analyzing the Conflicts within Semantic Layouts
Semantic layouts produce lower coherence because regional visual tokens favor region-wise prompts over the predicted global reference image, creating conflicts with global context.
- Figure 1 marks inconsistent regions and visualizes attention between regional visual tokens, region-caption tokens, and global reference-image tokens.Source: §2 · p. 12
- Regional visual tokens primarily attend to region-wise prompts and rely less on the predicted reference image, resulting in less coherent outputs.Source: §2 · p. 12
- The conflict arises from a disparity between region-wise prompts and the global prompt associated with the same regional crop.Source: §2 · p. 12
3. Analyzing the Inferred Label Assignments within Anonymous Region Layouts
ART’s anonymous layouts align generated layers with human-annotated region semantics and support high-quality generation with around 50 layers.
3. Analyzing the Inferred Label Assignments within Anonymous Region Layouts
- CLIP scores measure whether generated transparent layers in anonymous regions match human-annotated region-wise prompts.Source: §3 · p. 12
- Figure 2 plots aligned-layer percentages across CLIP thresholds using a test set of 5,000 multi-layer transparent images.Source: Figure 2 · p. 12, §3 · p. 13
- The observed alignment between inferred labels and human annotations is attributed to Schema Theory.Source: §3 · p. 13
4. Qualitative Multi-Layer Transparent Image Generation Results with around 50 Layers
- ART generates high-quality transparent images with 40, 45, and 51 layers from ultra-dense anonymous region layouts.Source: §4 · p. 13
5. Implementation of Layout Conditional Multi-Layer 3D RoPE
The proposed layout-conditional multi-layer 3D RoPE is implemented in PyTorch and integrated into the Attention Module.
- PyTorch implementations define the layout-conditional multi-layer 3D RoPE and its use within the Attention Module.These implementations are presented in Algorithm 1 and Algorithm 2.Source: §5 · p. 13
6. Layout Variation
ART generalizes across diverse anonymous region layouts while using a fixed global prompt, adaptively assigning semantic concepts to each layout.
- ART adapts semantic concept assignments across various anonymous region layouts given a fixed global prompt.Qualitative results are illustrated in Tables 7 to 15.Source: §6 · p. 13
7. Layer-wise Editing
ART supports layer-wise image editing by regenerating selected layers while preserving the remaining layers and maintaining harmony across the image.
- ART regenerates editable layers to match prompt changes while keeping other layers unchanged and visually harmonious.The editing pipeline modifies the prompt, regenerates targeted layers, and freezes the remaining layers.Source: §7 · p. 13
8. Details of Transparency Encoding
The transparency encoding method converts RGBA images into RGB representations while embedding alpha information for reuse with pretrained three-channel generation models. It normalizes RGB and alpha values, then transforms transparency so opacity is preserved and transparent pixels map to gray.
- The encoding transforms 4-channel RGBA images into 3-channel RGB images while embedding alpha information for pretrained RGB generation models.Its overall goal is to facilitate reuse of three-channel image generation models.Source: §8 · p. 13
- RGB and alpha channels are linearly normalized from [0, 255] to [−1, 1], with alpha −1 representing full transparency and 1 representing full opacity.The RGB normalization follows standard practice in Flux.1 models.Source: §8 · p. 13
- The alpha-dependent transformation maps transparency from [−1, 1] to [0, 1] before encoding it into the RGB channels.This transformation is applied to embed transparency information into the RGB representation.Source: §8 · p. 13
- Fully opaque pixels retain their RGB values, fully transparent pixels become pure gray (RGB = (0, 0, 0) in [−1, 1]), and semi-transparent pixels change proportionally with alpha.The transformation preserves opaque colors while encoding intermediate transparency levels proportionally.Source: §8 · p. 13
9. Evaluation in text generation
The evaluation examines autoencoder reconstruction quality and demonstrates text-generation outputs across multi-layer transparent-image settings. Results attribute improved performance to ViT-based visual text modeling, joint multi-layer encoding and decoding, and the MLTD dataset.
9. Evaluation in text generation
- Replacing CNNs with ViTs and using a multi-layer autoencoder both improve reconstruction performance on MLTD data.The autoencoder evaluation reconstructs images by encoding and decoding the same ground-truth multi-layer image; Table 1 reports the ablation scope.Source: §9 · p. 13, Table 1 · p. 13
- The ViT-based autoencoder improves visual text modeling by predicting more accurate edges than CNN-based autoencoders.LayerDiffuse and Flux-RGBA are identified as CNN-based comparisons.Source: §9 · p. 13
- Jointly encoding and decoding multiple layers enables explicit cross-layer interactions and outperforms single-layer methods.The comparison concerns the multi-layer autoencoder architecture versus single-layer methods.Source: §9 · p. 13
- The generated examples include transparent images with 40, 45, and 51 layers, each conditioned on an anonymous region layout and a global prompt.The figures show merged images, transparent layers, anonymous region layouts, and global prompts.Source: §9 · p. 14, Figure 3 · p. 18, Figure 4 · p. 19
- The method supports layer-wise editing of generated images.The evaluation includes a figure specifically showing layer-wise editing.Source: Figure 6 · p. 33
Related papers
This paper cites
- Microsoft COCO: Common Objects in Context2014
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale2020
- RoFormer: Enhanced Transformer with Rotary Position Embedding2021
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding2022
- AnimateDiff: Animate Your Personalized Text-to-Image Diffusion Models without Specific Tuning2023
- GLIGEN: Open-Set Grounded Text-to-Image Generation2023
Cited by
- From Prompting to Composing: A Spatial Canvas Interface for Poster Generation2026
- Beyond Atomic Layouts: Compositional Design Understanding with Vision-Language Models2026
- ReDesign: Recovering Editable Design Structures from Images via Agentic Decomposition2026
- MRT: Masked Region Transformer for Layered Image Generation and Editing at Scale2026
- Qwen-Image-Layered: Towards Inherent Editability via Layer Decomposition2025