{"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/arxiv-2602-19254","title":"RegionRoute: Regional Style Transfer with Diffusion Model","arxiv_id":"2602.19254","date":"2026-02-22","proceeding":null,"authors":["Bowen Chen","Jake Zuena","Alan C. Bovik","Divya Kothandaraman"],"abstract":"Precise spatial control in diffusion-based style transfer remains challenging. This challenge arises because diffusion models treat style as a global feature and lack explicit spatial grounding of style representations, making it difficult to restrict style application to specific objects or regions. To our knowledge, existing diffusion models are unable to perform true localized style transfer, typically relying on handcrafted masks or multi-stage post-processing that introduce boundary artifacts and limit generalization. To address this, we propose an attention-supervised diffusion framework that explicitly teaches the model where to apply a given style by aligning the attention scores of style tokens with object masks during training. Two complementary objectives, a Focus loss based on KL divergence and a Cover loss using binary cross-entropy, jointly encourage accurate localization and dense coverage. A modular LoRA-MoE design further enables efficient and scalable multi-style adaptation. To evaluate localized stylization, we introduce the Regional Style Editing Score, which measures Regional Style Matching through CLIP-based similarity within the target region and Identity Preservation via masked LPIPS and pixel-level consistency on unedited areas. Experiments show that our method achieves mask-free, single-object style transfer at inference, producing regionally accurate and visually coherent results that outperform existing diffusion-based editing approaches.","url_abs":"https://arxiv.org/abs/2602.19254","url_pdf":"https://arxiv.org/pdf/2602.19254","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2602.19254","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.19254"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/bwchen05/RegionRoute","reach":null}],"summary":{"unverified":6},"by_repo_kind":{"found_in_text":{"samples":6,"ran":0,"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":6,"samples":[{"code_sha256_prefix":"ecbd9f7b9d73532c","entry":"cal_attn_loss_by_layer","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/loss_utils.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/loss_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ecbd9f7b9d73532c"}},{"code_sha256_prefix":"dcbeeb19dbf60ca2","entry":"collate_fn","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/lora.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/lora.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dcbeeb19dbf60ca2"}},{"code_sha256_prefix":"87b0baba185bc906","entry":"compute_embeddings","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/compute_embeddings.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/compute_embeddings.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"87b0baba185bc906"}},{"code_sha256_prefix":"69548b36c478d922","entry":"generate_image_hash","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/compute_embeddings.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/compute_embeddings.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"69548b36c478d922"}},{"code_sha256_prefix":"94ebf2ca83b68129","entry":"get_word_idx","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/loss_utils.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/loss_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"94ebf2ca83b68129"}},{"code_sha256_prefix":"e767a7ec8493e1bd","entry":"parse_args","repo":"bwchen05/RegionRoute","repo_kind":"found_in_text","path":"training/lora.py","file_url":"https://github.com/bwchen05/RegionRoute/blob/HEAD/training/lora.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e767a7ec8493e1bd"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}