{"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/box-it-to-bind-it-unified-layout-control-and","title":"Box It to Bind It: Unified Layout Control and Attribute Binding in T2I Diffusion Models","arxiv_id":"2402.17910","date":"2024-02-27","proceeding":null,"authors":["Ashkan Taghipour","Morteza Ghahremani","Mohammed Bennamoun","Aref Miri Rekavandi","Hamid Laga","Farid Boussaid"],"abstract":"While latent diffusion models (LDMs) excel at creating imaginative images, they often lack precision in semantic fidelity and spatial control over where objects are generated. To address these deficiencies, we introduce the Box-it-to-Bind-it (B2B) module - a novel, training-free approach for improving spatial control and semantic accuracy in text-to-image (T2I) diffusion models. B2B targets three key challenges in T2I: catastrophic neglect, attribute binding, and layout guidance. The process encompasses two main steps: i) Object generation, which adjusts the latent encoding to guarantee object generation and directs it within specified bounding boxes, and ii) attribute binding, guaranteeing that generated objects adhere to their specified attributes in the prompt. B2B is designed as a compatible plug-and-play module for existing T2I models, markedly enhancing model performance in addressing the key challenges. We evaluate our technique using the established CompBench and TIFA score benchmarks, demonstrating significant performance improvements compared to existing methods. The source code will be made publicly available at https://github.com/nextaistudio/BoxIt2BindIt.","url_abs":"https://arxiv.org/abs/2402.17910v1","url_pdf":"https://arxiv.org/pdf/2402.17910v1.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":"box-it-to-bind-it-unified-layout-control-and","repo_url":"https://github.com/nextaistudio/boxit2bindit","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.17910","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.17910"}},"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/nextaistudio/boxit2bindit","reach":{"status":"ok"}}],"summary":{"ran":4},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":4,"samples":[{"code_sha256_prefix":"9fcf12f5736652fe","entry":"box_xyhw_to_xyxy","repo":"nextaistudio/boxit2bindit","repo_kind":"official","path":"utils/util.py","file_url":"https://github.com/nextaistudio/boxit2bindit/blob/HEAD/utils/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9fcf12f5736652fe"}},{"code_sha256_prefix":"15689ae5e41060c4","entry":"parse_list_of_ints","repo":"nextaistudio/boxit2bindit","repo_kind":"official","path":"utils/config_b2b_gligen.py","file_url":"https://github.com/nextaistudio/boxit2bindit/blob/HEAD/utils/config_b2b_gligen.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"15689ae5e41060c4"}},{"code_sha256_prefix":"1cd528f7fe15a331","entry":"read_config","repo":"nextaistudio/boxit2bindit","repo_kind":"official","path":"checkpoint_downloader.py","file_url":"https://github.com/nextaistudio/boxit2bindit/blob/HEAD/checkpoint_downloader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1cd528f7fe15a331"}},{"code_sha256_prefix":"b2a54eaa915f497f","entry":"str_to_list","repo":"nextaistudio/boxit2bindit","repo_kind":"official","path":"utils/util.py","file_url":"https://github.com/nextaistudio/boxit2bindit/blob/HEAD/utils/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b2a54eaa915f497f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}