Masked Region Transformer for Layered Image Generation and Editing at Scale

Zhi-Cong Tang, Jing-Ye Chen, Zhao Zhang, Mohan Zhou, Yu-Chi Liu +4 more
1/1/2026
diffusion-flowtransformer-attention

No confident code implementation found for this paper.

Abstract

Layered image generation and editing is a fundamental capability that enables layer-wise reuse, editing, and composition of generated visual content, analogous to word-level editing in natural language. Despite its importance, this remains an underexplored area at scale.

Show full abstract

To address this gap, we present MRT, a 20B-parameter masked region diffusion model tailored for multi-layer transparent image generation and editing, trained on over 10M multilingual design samples spanning diverse aspect ratios and textual prompts. To fully leverage this scale, we make two key technical contributions. First, we unify three complementary tasks--text-to-layers, image-to-layers, and layers-to-layers--within a shared masked region diffusion framework, where selective token masking enables flexible layer-wise generation and editing. Second, to enable overflow layer generation, we introduce an overflow-aware canvas layer that handles boundary inconsistencies and supports semi-transparent background synthesis, enabling complete editable layers extending beyond visible canvas boundaries. Additionally, we apply diffusion distillation to achieve 8-step, real-time multi-layer generation with minimal quality degradation. Extensive experiments demonstrate that our framework substantially outperforms prior state-of-the-art approaches, including various commercial systems, across all three tasks, establishing a new benchmark for multi-layer transparent image generation. Notably, our model significantly outperforms the concurrent Qwen-Image-Layered model in image-to-layers quality according to user-study results, while achieving 10~100xfaster inference and saving a 50%~90% activation GPU memory consumption during image-to-layer inference.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tang2026masked,
  title  = {Masked Region Transformer for Layered Image Generation and Editing at Scale},
  author = {Zhi-Cong Tang and Jing-Ye Chen and Zhao Zhang and Mohan Zhou and Yu-Chi Liu and Yi-Fan Pu and Ya-Long Bai and Ethan Smith and Yu-Hui Yuan},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:73fdf669a563a7632336cba698c10315b14e3cbd},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/73fdf669a563a7632336cba698c10315b14e3cbd.svg)](https://codeofpaper.com/paper/73fdf669a563a7632336cba698c10315b14e3cbd)

Discussion