{"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/perception-prioritized-training-of-diffusion","title":"Perception Prioritized Training of Diffusion Models","arxiv_id":"2204.00227","date":"2022-04-01","proceeding":"CVPR 2022 1","authors":["Jooyoung Choi","Jungbeom Lee","Chaehun Shin","Sungwon Kim","Hyunwoo Kim","Sungroh Yoon"],"abstract":"Diffusion models learn to restore noisy data, which is corrupted with different levels of noise, by optimizing the weighted sum of the corresponding loss terms, i.e., denoising score matching loss. In this paper, we show that restoring data corrupted with certain noise levels offers a proper pretext task for the model to learn rich visual concepts. We propose to prioritize such noise levels over other levels during training, by redesigning the weighting scheme of the objective function. We show that our simple redesign of the weighting scheme significantly improves the performance of diffusion models regardless of the datasets, architectures, and sampling strategies.","url_abs":"https://arxiv.org/abs/2204.00227v1","url_pdf":"https://arxiv.org/pdf/2204.00227v1.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":"perception-prioritized-training-of-diffusion","repo_url":"https://github.com/jychoi118/p2-weighting","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"perception-prioritized-training-of-diffusion","repo_url":"https://github.com/ericl122333/patchdiffusion-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"perception-prioritized-training-of-diffusion","repo_url":"https://github.com/gohyojun15/ANT_diffusion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"perception-prioritized-training-of-diffusion","repo_url":"https://github.com/lucidrains/imagen-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"perception-prioritized-training-of-diffusion","repo_url":"https://github.com/yiyixuxu/denoising-diffusion-flax","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":null}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"}],"methods":[{"method_slug":"denoising-score-matching","method_name":"Denoising Score Matching"},{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.00227","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.00227"}},"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/ericl122333/patchdiffusion-pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gohyojun15/ANT_diffusion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yiyixuxu/denoising-diffusion-flax","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lucidrains/imagen-pytorch","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jychoi118/p2-weighting","reach":null}],"summary":{"ran":1,"ran_honours":2,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"listed":{"samples":8,"ran":4,"repositories":3}},"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":2,"samples":[{"code_sha256_prefix":"9869cca3eeae19e6","entry":"GaussianDiffusion","repo":"ericl122333/patchdiffusion-pytorch","repo_kind":"listed","path":"patch_diffusion/gaussian_diffusion.py","file_url":"https://github.com/ericl122333/patchdiffusion-pytorch/blob/HEAD/patch_diffusion/gaussian_diffusion.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":"9869cca3eeae19e6"}},{"code_sha256_prefix":"e15c4c68fe717e48","entry":"cosine_beta_schedule","repo":"yiyixuxu/denoising-diffusion-flax","repo_kind":"listed","path":"denoising_diffusion_flax/utils.py","file_url":"https://github.com/yiyixuxu/denoising-diffusion-flax/blob/HEAD/denoising_diffusion_flax/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e15c4c68fe717e48"}},{"code_sha256_prefix":"7aa78b3dc9457071","entry":"get_ddpm_params","repo":"yiyixuxu/denoising-diffusion-flax","repo_kind":"listed","path":"denoising_diffusion_flax/utils.py","file_url":"https://github.com/yiyixuxu/denoising-diffusion-flax/blob/HEAD/denoising_diffusion_flax/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7aa78b3dc9457071"}},{"code_sha256_prefix":"8f45dd6e777921e5","entry":"linear_beta_schedule","repo":"yiyixuxu/denoising-diffusion-flax","repo_kind":"listed","path":"denoising_diffusion_flax/utils.py","file_url":"https://github.com/yiyixuxu/denoising-diffusion-flax/blob/HEAD/denoising_diffusion_flax/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8f45dd6e777921e5"}},{"code_sha256_prefix":"be7420a38e5b9e25","entry":"LossAwareSampler","repo":"gohyojun15/ANT_diffusion","repo_kind":"listed","path":"diffusion/timestep_sampler.py","file_url":"https://github.com/gohyojun15/ANT_diffusion/blob/HEAD/diffusion/timestep_sampler.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":"be7420a38e5b9e25"}},{"code_sha256_prefix":"8c22b52635b0a88b","entry":"LossSecondMomentResampler","repo":"gohyojun15/ANT_diffusion","repo_kind":"listed","path":"diffusion/timestep_sampler.py","file_url":"https://github.com/gohyojun15/ANT_diffusion/blob/HEAD/diffusion/timestep_sampler.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":"8c22b52635b0a88b"}},{"code_sha256_prefix":"8fa5f1c784de4b2d","entry":"ModelMeanType","repo":"ericl122333/patchdiffusion-pytorch","repo_kind":"listed","path":"patch_diffusion/gaussian_diffusion.py","file_url":"https://github.com/ericl122333/patchdiffusion-pytorch/blob/HEAD/patch_diffusion/gaussian_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8fa5f1c784de4b2d"}},{"code_sha256_prefix":"d00e0d86c2f8ba09","entry":"ScheduleSampler","repo":"gohyojun15/ANT_diffusion","repo_kind":"listed","path":"diffusion/timestep_sampler.py","file_url":"https://github.com/gohyojun15/ANT_diffusion/blob/HEAD/diffusion/timestep_sampler.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":"d00e0d86c2f8ba09"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}