{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/art-anonymous-region-transformer-for-variable","title":"ART: Anonymous Region Transformer for Variable Multi-Layer Transparent Image Generation","arxiv_id":"2502.18364","date":"2025-02-25","proceeding":"CVPR 2025 1","authors":["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"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2502.18364v1","url_pdf":"https://arxiv.org/pdf/2502.18364v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"art-anonymous-region-transformer-for-variable","repo_url":"https://github.com/microsoft/art-msra","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"align","method_name":"ALIGN"},{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"set","method_name":"SET"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2502.18364","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.18364"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/microsoft/art-msra","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"unverified":13},"by_repo_kind":{"listed":{"samples":14,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"ed5ed903e9e24d08","entry":"accuracy","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/utils.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/utils.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ed5ed903e9e24d08"}},{"code_sha256_prefix":"07f3e48fb520f32b","entry":"FormulateInput","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/inference_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/inference_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"07f3e48fb520f32b"}},{"code_sha256_prefix":"b6ae4c2e9a4721f3","entry":"batch_purity","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/trainer_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/trainer_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b6ae4c2e9a4721f3"}},{"code_sha256_prefix":"28e0f66d8fa6cea8","entry":"crop_each_layer","repo":"microsoft/art-msra","repo_kind":"listed","path":"multi_layer_gen/custom_model_transp_vae.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/multi_layer_gen/custom_model_transp_vae.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"28e0f66d8fa6cea8"}},{"code_sha256_prefix":"06d07c5e65ea4167","entry":"encode_prompt","repo":"microsoft/art-msra","repo_kind":"listed","path":"multi_layer_gen/custom_pipeline.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/multi_layer_gen/custom_pipeline.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"06d07c5e65ea4167"}},{"code_sha256_prefix":"7a4f7b082e40ac6b","entry":"get_dataset","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/datasets/layoutnew_dataset.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/datasets/layoutnew_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a4f7b082e40ac6b"}},{"code_sha256_prefix":"c345a9eaf4ac73c4","entry":"get_quantizer","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/datasets/quantizer.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/datasets/quantizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c345a9eaf4ac73c4"}},{"code_sha256_prefix":"00462e6910b34cb9","entry":"kmp_preprocess","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/models/modeling_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/models/modeling_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"00462e6910b34cb9"}},{"code_sha256_prefix":"f150a306a653ecb2","entry":"kmp_search","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/models/modeling_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/models/modeling_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f150a306a653ecb2"}},{"code_sha256_prefix":"61490145cb48f028","entry":"l2_loss","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/trainer_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/trainer_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61490145cb48f028"}},{"code_sha256_prefix":"f4d9f77d7e39090d","entry":"layout_collate_fn","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/training/datasets/layoutnew_dataset.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/training/datasets/layoutnew_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f4d9f77d7e39090d"}},{"code_sha256_prefix":"91a80a2215fe15e4","entry":"patchify","repo":"microsoft/art-msra","repo_kind":"listed","path":"multi_layer_gen/custom_model_transp_vae.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/multi_layer_gen/custom_model_transp_vae.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"91a80a2215fe15e4"}},{"code_sha256_prefix":"d6905e2f00e0a901","entry":"preprocess_Input","repo":"microsoft/art-msra","repo_kind":"listed","path":"layout_planner/inference_layout.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/layout_planner/inference_layout.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d6905e2f00e0a901"}},{"code_sha256_prefix":"74720e4c7d36e702","entry":"unpatchify","repo":"microsoft/art-msra","repo_kind":"listed","path":"multi_layer_gen/custom_model_transp_vae.py","file_url":"https://github.com/microsoft/art-msra/blob/HEAD/multi_layer_gen/custom_model_transp_vae.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"74720e4c7d36e702"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}