{"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/reconciling-stochastic-and-deterministic","title":"Reconciling Stochastic and Deterministic Strategies for Zero-shot Image Restoration using Diffusion Model in Dual","arxiv_id":"2503.01288","date":"2025-03-03","proceeding":"CVPR 2025 1","authors":["Chong Wang","Lanqing Guo","Zixuan Fu","Siyuan Yang","Hao Cheng","Alex C. Kot","Bihan Wen"],"abstract":"Plug-and-play (PnP) methods offer an iterative strategy for solving image restoration (IR) problems in a zero-shot manner, using a learned \\textit{discriminative denoiser} as the implicit prior. More recently, a sampling-based variant of this approach, which utilizes a pre-trained \\textit{generative diffusion model}, has gained great popularity for solving IR problems through stochastic sampling. The IR results using PnP with a pre-trained diffusion model demonstrate distinct advantages compared to those using discriminative denoisers, \\ie improved perceptual quality while sacrificing the data fidelity. The unsatisfactory results are due to the lack of integration of these strategies in the IR tasks. In this work, we propose a novel zero-shot IR scheme, dubbed Reconciling Diffusion Model in Dual (RDMD), which leverages only a \\textbf{single} pre-trained diffusion model to construct \\textbf{two} complementary regularizers. Specifically, the diffusion model in RDMD will iteratively perform deterministic denoising and stochastic sampling, aiming to achieve high-fidelity image restoration with appealing perceptual quality. RDMD also allows users to customize the distortion-perception tradeoff with a single hyperparameter, enhancing the adaptability of the restoration process in different practical scenarios. Extensive experiments on several IR tasks demonstrate that our proposed method could achieve superior results compared to existing approaches on both the FFHQ and ImageNet datasets.","url_abs":"https://arxiv.org/abs/2503.01288v1","url_pdf":"https://arxiv.org/pdf/2503.01288v1.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":"reconciling-stochastic-and-deterministic","repo_url":"https://github.com/chongwang1024/rdmd","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"image-restoration","task_name":"Image Restoration"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"pnp","method_name":"PnP"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2503.01288","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.01288"}},"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/ChongWang1024/RDMD","reach":null}],"summary":{"ran":1,"unverified":6},"by_repo_kind":{"official":{"samples":7,"ran":1,"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":7,"samples":[{"code_sha256_prefix":"73cd1ec9fdcb41a8","entry":"QKVAttention","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"73cd1ec9fdcb41a8"}},{"code_sha256_prefix":"3107ad901b8a997d","entry":"AttentionBlock","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"3107ad901b8a997d"}},{"code_sha256_prefix":"3b3056259c2105b9","entry":"AttentionBlock_Crossframe","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"3b3056259c2105b9"}},{"code_sha256_prefix":"be904e793da7ac54","entry":"ResBlock","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"be904e793da7ac54"}},{"code_sha256_prefix":"8b58481b16d2016f","entry":"TimestepEmbedSequential","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"8b58481b16d2016f"}},{"code_sha256_prefix":"954b783eddbd4118","entry":"UNetModel","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"954b783eddbd4118"}},{"code_sha256_prefix":"7759e76e64ca3b8a","entry":"my_QKVAttentionLegacy","repo":"ChongWang1024/RDMD","repo_kind":"official","path":"guided_diffusion/unet_traj.py","file_url":"https://github.com/ChongWang1024/RDMD/blob/HEAD/guided_diffusion/unet_traj.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":"7759e76e64ca3b8a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}