{"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/relay-diffusion-unifying-diffusion-process-1","title":"Relay Diffusion: Unifying diffusion process across resolutions for image synthesis","arxiv_id":"2309.03350","date":"2023-09-04","proceeding":null,"authors":["Jiayan Teng","Wendi Zheng","Ming Ding","Wenyi Hong","Jianqiao Wangni","Zhuoyi Yang","Jie Tang"],"abstract":"Diffusion models achieved great success in image synthesis, but still face challenges in high-resolution generation. Through the lens of discrete cosine transformation, we find the main reason is that \\emph{the same noise level on a higher resolution results in a higher Signal-to-Noise Ratio in the frequency domain}. In this work, we present Relay Diffusion Model (RDM), which transfers a low-resolution image or noise into an equivalent high-resolution one for diffusion model via blurring diffusion and block noise. Therefore, the diffusion process can continue seamlessly in any new resolution or model without restarting from pure noise or low-resolution conditioning. RDM achieves state-of-the-art FID on CelebA-HQ and sFID on ImageNet 256$\\times$256, surpassing previous works such as ADM, LDM and DiT by a large margin. All the codes and checkpoints are open-sourced at \\url{https://github.com/THUDM/RelayDiffusion}.","url_abs":"https://arxiv.org/abs/2309.03350v1","url_pdf":"https://arxiv.org/pdf/2309.03350v1.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":"relay-diffusion-unifying-diffusion-process-1","repo_url":"https://github.com/THUDM/RelayDiffusion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-generation-on-celeba-hq-256x256","task":"Image Generation","dataset":"CelebA-HQ 256x256","model":"RDM","rank_in_archive_order":1,"of":19,"metrics":{"FID":"3.15","Precision":"0.77","Recall":"0.55"},"uses_additional_data":true},{"leaderboard":"/sota/image-generation-on-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"RDM","rank_in_archive_order":48,"of":94,"metrics":{"FID":"1.99"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.03350","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.03350"}},"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/THUDM/RelayDiffusion","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":3,"ran":4,"ran_fixture":2,"ran_draft_wrong":3,"unverified":5},"by_repo_kind":{"official":{"samples":17,"ran":12,"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":"45e941764344e7f3","entry":"calculate_fid_from_inception_stats","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"evaluate.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/evaluate.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"45e941764344e7f3"}},{"code_sha256_prefix":"6d32f9cf6f29b386","entry":"constant","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"torch_utils/misc.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/torch_utils/misc.py","link_basis":"harvester_set","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":"6d32f9cf6f29b386"}},{"code_sha256_prefix":"a480f97ef83e404c","entry":"dct","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"blurring.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/blurring.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a480f97ef83e404c"}},{"code_sha256_prefix":"a2b45afa097b55b6","entry":"file_ext","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dataset_tool.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dataset_tool.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a2b45afa097b55b6"}},{"code_sha256_prefix":"674eca7b9e1b6439","entry":"format_time","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dnnlib/util.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dnnlib/util.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"674eca7b9e1b6439"}},{"code_sha256_prefix":"32af001972a0699f","entry":"format_time_brief","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dnnlib/util.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dnnlib/util.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"32af001972a0699f"}},{"code_sha256_prefix":"dd1dc700e87f36cc","entry":"maybe_min","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dataset_tool.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dataset_tool.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dd1dc700e87f36cc"}},{"code_sha256_prefix":"cacd4f6ec202d9b4","entry":"parse_int_list","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"generate_imagenet.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/generate_imagenet.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cacd4f6ec202d9b4"}},{"code_sha256_prefix":"07b21b35ecb4815c","entry":"parse_tuple","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dataset_tool.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dataset_tool.py","link_basis":"harvester_set","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":"07b21b35ecb4815c"}},{"code_sha256_prefix":"a229189b8d4631c3","entry":"rearrange","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"blurring.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/blurring.py","link_basis":"first_harvest_node","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":"a229189b8d4631c3"}},{"code_sha256_prefix":"f1c09017a55ef395","entry":"reverse_rearrange","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"blurring.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/blurring.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":"f1c09017a55ef395"}},{"code_sha256_prefix":"d41a4250066bce93","entry":"weight_init","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"training/networks.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/training/networks.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d41a4250066bce93"}},{"code_sha256_prefix":"9d31d2c4cd16bb2d","entry":"ask_yes_no","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"dnnlib/util.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/dnnlib/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9d31d2c4cd16bb2d"}},{"code_sha256_prefix":"00ad7cd5515a96f8","entry":"edm_sampler","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"generate_imagenet.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/generate_imagenet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"00ad7cd5515a96f8"}},{"code_sha256_prefix":"e8b31ffccfa05efc","entry":"is_persistent","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"torch_utils/persistence.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/torch_utils/persistence.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8b31ffccfa05efc"}},{"code_sha256_prefix":"b5ae713738eb4d27","entry":"params_and_buffers","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"torch_utils/misc.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/torch_utils/misc.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b5ae713738eb4d27"}},{"code_sha256_prefix":"f4664bbb3c2df6e0","entry":"profiled_function","repo":"THUDM/RelayDiffusion","repo_kind":"official","path":"torch_utils/misc.py","file_url":"https://github.com/THUDM/RelayDiffusion/blob/HEAD/torch_utils/misc.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f4664bbb3c2df6e0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}