{"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/diffinfinite-large-mask-image-synthesis-via","title":"DiffInfinite: Large Mask-Image Synthesis via Parallel Random Patch Diffusion in Histopathology","arxiv_id":"2306.13384","date":"2023-06-23","proceeding":"NeurIPS 2023 11","authors":[],"abstract":"We present DiffInfinite, a hierarchical diffusion model that generates arbitrarily large histological images while preserving long-range correlation structural information. Our approach first generates synthetic segmentation masks, subsequently used as conditions for the high-fidelity generative diffusion process. The proposed sampling method can be scaled up to any desired image size while only requiring small patches for fast training. Moreover, it can be parallelized more efficiently than previous large-content generation methods while avoiding tiling artifacts. The training leverages classifier-free guidance to augment a small, sparsely annotated dataset with unlabelled data. Our method alleviates unique challenges in histopathological imaging practice: large-scale information, costly manual annotation, and protective data handling. The biological plausibility of DiffInfinite data is evaluated in a survey by ten experienced pathologists as well as a downstream classification and segmentation task. Samples from the model score strongly on anti-copying metrics which is relevant for the protection of patient data.","url_abs":"https://arxiv.org/abs/2306.13384v2","url_pdf":"https://arxiv.org/pdf/2306.13384v2.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":"diffinfinite-large-mask-image-synthesis-via","repo_url":"https://github.com/marcoaversa/diffinfinite","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"segmentation","task_name":"Segmentation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.13384","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.13384"}},"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/marcoaversa/diffinfinite","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":3,"ran_violates":2,"unverified":8},"by_repo_kind":{"official":{"samples":13,"ran":5,"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":"05e94467a0de94a4","entry":"cosine_beta_schedule","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dm.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dm.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"05e94467a0de94a4"}},{"code_sha256_prefix":"d1ef6b8cb9a28a53","entry":"default","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dm_masks.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dm_masks.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d1ef6b8cb9a28a53"}},{"code_sha256_prefix":"608e364a9d2376a3","entry":"exists","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dm_masks.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dm_masks.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"608e364a9d2376a3"}},{"code_sha256_prefix":"9910e2fc297f8665","entry":"identity","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dataset.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9910e2fc297f8665"}},{"code_sha256_prefix":"482723f534770483","entry":"linear_beta_schedule","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dm.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dm.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"482723f534770483"}},{"code_sha256_prefix":"91cf3977ef9cf6f4","entry":"corners","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"random_diffusion.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/random_diffusion.py","link_basis":"first_harvest_node","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":"91cf3977ef9cf6f4"}},{"code_sha256_prefix":"09c8479d9a5b3e06","entry":"extract","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dm.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dm.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":"09c8479d9a5b3e06"}},{"code_sha256_prefix":"c318aee25ce9f5bb","entry":"get_augmentation","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dataset.py","link_basis":"first_harvest_node","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":"c318aee25ce9f5bb"}},{"code_sha256_prefix":"8d3f21f1fcdbb0df","entry":"get_label_dict","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dataset_masks.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dataset_masks.py","link_basis":"first_harvest_node","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":"8d3f21f1fcdbb0df"}},{"code_sha256_prefix":"c4a721b224e2f407","entry":"import_small_mask_dataset","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dataset_masks.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dataset_masks.py","link_basis":"first_harvest_node","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":"c4a721b224e2f407"}},{"code_sha256_prefix":"b401229bccf2b4bc","entry":"remove_common_elements","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/dataset.py","link_basis":"first_harvest_node","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":"b401229bccf2b4bc"}},{"code_sha256_prefix":"a7eaa03bef197600","entry":"tile","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"random_diffusion.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/random_diffusion.py","link_basis":"first_harvest_node","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":"a7eaa03bef197600"}},{"code_sha256_prefix":"1180e94f503fbfca","entry":"untile","repo":"marcoaversa/diffinfinite","repo_kind":"official","path":"random_diffusion.py","file_url":"https://github.com/marcoaversa/diffinfinite/blob/HEAD/random_diffusion.py","link_basis":"first_harvest_node","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":"1180e94f503fbfca"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}