{"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/improved-denoising-diffusion-probabilistic-1","title":"Improved Denoising Diffusion Probabilistic Models","arxiv_id":"2102.09672","date":"2021-02-18","proceeding":null,"authors":["Alex Nichol","Prafulla Dhariwal"],"abstract":"Denoising diffusion probabilistic models (DDPM) are a class of generative models which have recently been shown to produce excellent samples. We show that with a few simple modifications, DDPMs can also achieve competitive log-likelihoods while maintaining high sample quality. Additionally, we find that learning variances of the reverse diffusion process allows sampling with an order of magnitude fewer forward passes with a negligible difference in sample quality, which is important for the practical deployment of these models. We additionally use precision and recall to compare how well DDPMs and GANs cover the target distribution. Finally, we show that the sample quality and likelihood of these models scale smoothly with model capacity and training compute, making them easily scalable. We release our code at https://github.com/openai/improved-diffusion","url_abs":"https://arxiv.org/abs/2102.09672v1","url_pdf":"https://arxiv.org/pdf/2102.09672v1.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":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/openai/improved-diffusion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/Ipsedo/MusicDiffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/albarji/toy-diffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/astrodeepnet/diffusion4astro","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/g4vrel/DDPM","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/intuitive-robots/beso","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/liaopeiyuan/pndm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/luping-liu/PNDM","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/neonbjb/tortoise-tts","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/plai-group/flexible-video-diffusion-modeling","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/roselv/research_super-resolution","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/rowerliu/adbd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/rowerliu/add","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/vvvm23/ddpm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/Michedev/DDPM-Pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/YHL04/ddpm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/open-mmlab/mmgeneration","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"unanswered"}},{"paper_slug":"improved-denoising-diffusion-probabilistic-1","repo_url":"https://github.com/swookey-thinky/image_diffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"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-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"Improved DDPM","rank_in_archive_order":94,"of":94,"metrics":{"FID":"12.3"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-64x64","task":"Image Generation","dataset":"ImageNet 64x64","model":"Improved DDPM","rank_in_archive_order":21,"of":65,"metrics":{"Bits per dim":"3.53","FID":"2.92"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2102.09672","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2102.09672"}},"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/openai/improved-diffusion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/neonbjb/tortoise-tts","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rowerliu/add","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/g4vrel/DDPM","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/intuitive-robots/beso","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/astrodeepnet/diffusion4astro","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Michedev/DDPM-Pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/roselv/research_super-resolution","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/vvvm23/ddpm","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/luping-liu/PNDM","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/liaopeiyuan/pndm","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rowerliu/adbd","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Ipsedo/MusicDiffusion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/albarji/toy-diffusion","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/plai-group/flexible-video-diffusion-modeling","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/swookey-thinky/image_diffusion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/YHL04/ddpm","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/open-mmlab/mmgeneration","reach":{"status":"unanswered"}}],"summary":{"ran_honours":4,"ran_draft_wrong":4,"ran_fixture":1,"unverified":2},"by_repo_kind":{"listed":{"samples":11,"ran":9,"repositories":4}},"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":"7eb19b2d745af94f","entry":"betas_for_alpha_bar","repo":"g4vrel/DDPM","repo_kind":"listed","path":"diffusion.py","file_url":"https://github.com/g4vrel/DDPM/blob/HEAD/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7eb19b2d745af94f"}},{"code_sha256_prefix":"5261641d9240757c","entry":"choose_method","repo":"luping-liu/PNDM","repo_kind":"listed","path":"runner/method.py","file_url":"https://github.com/luping-liu/PNDM/blob/HEAD/runner/method.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5261641d9240757c"}},{"code_sha256_prefix":"9215fb189fbfb9f4","entry":"compute_alpha","repo":"g4vrel/DDPM","repo_kind":"listed","path":"sample.py","file_url":"https://github.com/g4vrel/DDPM/blob/HEAD/sample.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9215fb189fbfb9f4"}},{"code_sha256_prefix":"16240e26bc3e0d99","entry":"cosine_beta_schedule","repo":"YHL04/ddpm","repo_kind":"listed","path":"ddpm.py","file_url":"https://github.com/YHL04/ddpm/blob/HEAD/ddpm.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"16240e26bc3e0d99"}},{"code_sha256_prefix":"97aabd2621b6733c","entry":"ext","repo":"g4vrel/DDPM","repo_kind":"listed","path":"diffusion.py","file_url":"https://github.com/g4vrel/DDPM/blob/HEAD/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97aabd2621b6733c"}},{"code_sha256_prefix":"b84ad5937455cbb4","entry":"gen_fon","repo":"luping-liu/PNDM","repo_kind":"listed","path":"runner/method.py","file_url":"https://github.com/luping-liu/PNDM/blob/HEAD/runner/method.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b84ad5937455cbb4"}},{"code_sha256_prefix":"5a415ade18521d1a","entry":"gen_pflow","repo":"luping-liu/PNDM","repo_kind":"listed","path":"runner/method.py","file_url":"https://github.com/luping-liu/PNDM/blob/HEAD/runner/method.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5a415ade18521d1a"}},{"code_sha256_prefix":"fab86763be9d382c","entry":"get_betas","repo":"g4vrel/DDPM","repo_kind":"listed","path":"diffusion.py","file_url":"https://github.com/g4vrel/DDPM/blob/HEAD/diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fab86763be9d382c"}},{"code_sha256_prefix":"412c5c40339e2941","entry":"linear_beta_schedule","repo":"YHL04/ddpm","repo_kind":"listed","path":"ddpm.py","file_url":"https://github.com/YHL04/ddpm/blob/HEAD/ddpm.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"412c5c40339e2941"}},{"code_sha256_prefix":"667c10845e9b4fce","entry":"get_adaptive_hierarchy_n_level","repo":"plai-group/flexible-video-diffusion-modeling","repo_kind":"listed","path":"improved_diffusion/sampling_schemes.py","file_url":"https://github.com/plai-group/flexible-video-diffusion-modeling/blob/HEAD/improved_diffusion/sampling_schemes.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":"667c10845e9b4fce"}},{"code_sha256_prefix":"16222780c0751c86","entry":"get_hierarchy_n_level","repo":"plai-group/flexible-video-diffusion-modeling","repo_kind":"listed","path":"improved_diffusion/sampling_schemes.py","file_url":"https://github.com/plai-group/flexible-video-diffusion-modeling/blob/HEAD/improved_diffusion/sampling_schemes.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":"16222780c0751c86"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}