{"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/dream-diffusion-rectification-and-estimation","title":"DREAM: Diffusion Rectification and Estimation-Adaptive Models","arxiv_id":"2312.00210","date":"2023-11-30","proceeding":"CVPR 2024 1","authors":["Jinxin Zhou","Tianyu Ding","Tianyi Chen","Jiachen Jiang","Ilya Zharkov","Zhihui Zhu","Luming Liang"],"abstract":"We present DREAM, a novel training framework representing Diffusion Rectification and Estimation Adaptive Models, requiring minimal code changes (just three lines) yet significantly enhancing the alignment of training with sampling in diffusion models. DREAM features two components: diffusion rectification, which adjusts training to reflect the sampling process, and estimation adaptation, which balances perception against distortion. When applied to image super-resolution (SR), DREAM adeptly navigates the tradeoff between minimizing distortion and preserving high image quality. Experiments demonstrate DREAM's superiority over standard diffusion-based SR methods, showing a $2$ to $3\\times $ faster training convergence and a $10$ to $20\\times$ reduction in sampling steps to achieve comparable results. We hope DREAM will inspire a rethinking of diffusion model training paradigms.","url_abs":"https://arxiv.org/abs/2312.00210v2","url_pdf":"https://arxiv.org/pdf/2312.00210v2.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":"dream-diffusion-rectification-and-estimation","repo_url":"https://github.com/jinxinzhou/dream","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2312.00210","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.00210"}},"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/jinxinzhou/dream","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_violates":2,"ran_draft_wrong":2,"ran_honours":1,"unverified":2},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"9394ff2c25b8a988","entry":"calculate_psnr","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/metrics.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/metrics.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9394ff2c25b8a988"}},{"code_sha256_prefix":"fbf9ec7be545688e","entry":"default","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/model/sr3_modules/diffusion.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/model/sr3_modules/diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fbf9ec7be545688e"}},{"code_sha256_prefix":"40c52ad98161c17b","entry":"dict2str","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/logger.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/logger.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"40c52ad98161c17b"}},{"code_sha256_prefix":"ada7273eee7081c7","entry":"dict_to_nonedict","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/logger.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/logger.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ada7273eee7081c7"}},{"code_sha256_prefix":"608e364a9d2376a3","entry":"exists","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/model/sr3_modules/diffusion.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/model/sr3_modules/diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"608e364a9d2376a3"}},{"code_sha256_prefix":"90be2f67f3d453d7","entry":"make_beta_schedule","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/model/sr3_modules/diffusion.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/model/sr3_modules/diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"90be2f67f3d453d7"}},{"code_sha256_prefix":"ba721aeacc165234","entry":"ssim","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/metrics.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/metrics.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ba721aeacc165234"}},{"code_sha256_prefix":"34c878feb7966d4c","entry":"tensor2img","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/metrics.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/metrics.py","link_basis":"harvester_set","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":"34c878feb7966d4c"}},{"code_sha256_prefix":"3c6e0128da8faae5","entry":"define_G","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/model/networks.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/model/networks.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":"3c6e0128da8faae5"}},{"code_sha256_prefix":"f03c72874fba460b","entry":"parse","repo":"jinxinzhou/dream","repo_kind":"official","path":"sr3/core/logger.py","file_url":"https://github.com/jinxinzhou/dream/blob/HEAD/sr3/core/logger.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":"f03c72874fba460b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}