{"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/binarized-diffusion-model-for-image-super","title":"Binarized Diffusion Model for Image Super-Resolution","arxiv_id":"2406.05723","date":"2024-06-09","proceeding":null,"authors":["Zheng Chen","Haotong Qin","Yong Guo","Xiongfei Su","Xin Yuan","Linghe Kong","Yulun Zhang"],"abstract":"Advanced diffusion models (DMs) perform impressively in image super-resolution (SR), but the high memory and computational costs hinder their deployment. Binarization, an ultra-compression algorithm, offers the potential for effectively accelerating DMs. Nonetheless, due to the model structure and the multi-step iterative attribute of DMs, existing binarization methods result in significant performance degradation. In this paper, we introduce a novel binarized diffusion model, BI-DiffSR, for image SR. First, for the model structure, we design a UNet architecture optimized for binarization. We propose the consistent-pixel-downsample (CP-Down) and consistent-pixel-upsample (CP-Up) to maintain dimension consistent and facilitate the full-precision information transfer. Meanwhile, we design the channel-shuffle-fusion (CS-Fusion) to enhance feature fusion in skip connection. Second, for the activation difference across timestep, we design the timestep-aware redistribution (TaR) and activation function (TaA). The TaR and TaA dynamically adjust the distribution of activations based on different timesteps, improving the flexibility and representation alability of the binarized module. Comprehensive experiments demonstrate that our BI-DiffSR outperforms existing binarization methods. Code is released at: https://github.com/zhengchen1999/BI-DiffSR.","url_abs":"https://arxiv.org/abs/2406.05723v4","url_pdf":"https://arxiv.org/pdf/2406.05723v4.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":"binarized-diffusion-model-for-image-super","repo_url":"https://github.com/zhengchen1999/bi-diffsr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"},{"task_slug":"binarization","task_name":"Binarization"},{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"},{"task_slug":"tar","task_name":"TAR"},{"task_slug":"model","task_name":"model"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.05723","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.05723"}},"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":"deterministic:regex_extraction","url":"https://github.com/zhengchen1999/BI-DiffSR","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhengchen1999/bi-diffsr","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_violates":2,"ran":6},"by_repo_kind":{"official":{"samples":8,"ran":8,"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":"fbf9ec7be545688e","entry":"default","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/archs/unet_BI_DiffSR_arch.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/archs/unet_BI_DiffSR_arch.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fbf9ec7be545688e"}},{"code_sha256_prefix":"769e9c110eeb4a0d","entry":"dict2str","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/utils/options.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/utils/options.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"769e9c110eeb4a0d"}},{"code_sha256_prefix":"566b9df70aa38276","entry":"disabled_train","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/metrics/lpips.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/metrics/lpips.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"566b9df70aa38276"}},{"code_sha256_prefix":"608e364a9d2376a3","entry":"exists","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/archs/unet_BI_DiffSR_arch.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/archs/unet_BI_DiffSR_arch.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"608e364a9d2376a3"}},{"code_sha256_prefix":"cd569444547de84f","entry":"get_position_from_periods","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/utils/lr_scheduler.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/utils/lr_scheduler.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cd569444547de84f"}},{"code_sha256_prefix":"78feb2965623416b","entry":"make_beta_schedule","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/utils/beta_schedule.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/utils/beta_schedule.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78feb2965623416b"}},{"code_sha256_prefix":"4d7726c024b37357","entry":"worker","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/utils/extract_subimages.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/utils/extract_subimages.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d7726c024b37357"}},{"code_sha256_prefix":"def5f7aaab361d9c","entry":"worker","repo":"zhengchen1999/BI-DiffSR","repo_kind":"official","path":"diffglv/utils/make_ds.py","file_url":"https://github.com/zhengchen1999/BI-DiffSR/blob/HEAD/diffglv/utils/make_ds.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"def5f7aaab361d9c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}