{"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/cdformer-when-degradation-prediction-embraces","title":"CDFormer:When Degradation Prediction Embraces Diffusion Model for Blind Image Super-Resolution","arxiv_id":"2405.07648","date":"2024-05-13","proceeding":null,"authors":["Qingguo Liu","Chenyi Zhuang","Pan Gao","Jie Qin"],"abstract":"Existing Blind image Super-Resolution (BSR) methods focus on estimating either kernel or degradation information, but have long overlooked the essential content details. In this paper, we propose a novel BSR approach, Content-aware Degradation-driven Transformer (CDFormer), to capture both degradation and content representations. However, low-resolution images cannot provide enough content details, and thus we introduce a diffusion-based module $CDFormer_{diff}$ to first learn Content Degradation Prior (CDP) in both low- and high-resolution images, and then approximate the real distribution given only low-resolution information. Moreover, we apply an adaptive SR network $CDFormer_{SR}$ that effectively utilizes CDP to refine features. Compared to previous diffusion-based SR methods, we treat the diffusion model as an estimator that can overcome the limitations of expensive sampling time and excessive diversity. Experiments show that CDFormer can outperform existing methods, establishing a new state-of-the-art performance on various benchmarks under blind settings. Codes and models will be available at \\href{https://github.com/I2-Multimedia-Lab/CDFormer}{https://github.com/I2-Multimedia-Lab/CDFormer}.","url_abs":"https://arxiv.org/abs/2405.07648v2","url_pdf":"https://arxiv.org/pdf/2405.07648v2.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":"cdformer-when-degradation-prediction-embraces","repo_url":"https://github.com/i2-multimedia-lab/cdformer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"focus","method_name":"Focus"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2405.07648","atlas_url":"https://app.syntology.ai/?focus=2405.07648","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.07648"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/I2-Multimedia-Lab/CDFormer","reach":null}],"summary":{"ran":9,"ran_violates":1,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":16,"ran":10,"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":1,"samples":[{"code_sha256_prefix":"883de99a17bdfd49","entry":"Adaptive_Channel_Attention","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"883de99a17bdfd49"}},{"code_sha256_prefix":"6a864a551fa60c54","entry":"CDIM","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a864a551fa60c54"}},{"code_sha256_prefix":"4bbad1997ef09a44","entry":"Encoder_gt","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4bbad1997ef09a44"}},{"code_sha256_prefix":"025d0ee70cc05b46","entry":"Encoder_lr","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"025d0ee70cc05b46"}},{"code_sha256_prefix":"a3042307eff34889","entry":"ResBlock","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a3042307eff34889"}},{"code_sha256_prefix":"6f4fdd263c5a3bbc","entry":"SGFN","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f4fdd263c5a3bbc"}},{"code_sha256_prefix":"344fa5e773a89498","entry":"SpatialGate","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"344fa5e773a89498"}},{"code_sha256_prefix":"23c44909d59e9fe0","entry":"Spatial_Attention","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"23c44909d59e9fe0"}},{"code_sha256_prefix":"29f7ce0623edc8cb","entry":"default","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"29f7ce0623edc8cb"}},{"code_sha256_prefix":"8b0e794d4d8f9b13","entry":"default_conv","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"8b0e794d4d8f9b13"}},{"code_sha256_prefix":"5a5975f4e5f4f7a7","entry":"denoise","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a5975f4e5f4f7a7"}},{"code_sha256_prefix":"f957c6c7ab191a7f","entry":"Adaptive_Spatial_Attention","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"f957c6c7ab191a7f"}},{"code_sha256_prefix":"6401585050c061d5","entry":"CDFormer","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"6401585050c061d5"}},{"code_sha256_prefix":"0109253a712dead3","entry":"CDFormer_SR","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"0109253a712dead3"}},{"code_sha256_prefix":"663bc75d518cc360","entry":"CDRB","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"663bc75d518cc360"}},{"code_sha256_prefix":"7bf826ead30f1aaa","entry":"DDPM","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"7bf826ead30f1aaa"}},{"code_sha256_prefix":"986cf10a4f977a9e","entry":"ResidualGroup","repo":"I2-Multimedia-Lab/CDFormer","repo_kind":"official","path":"model/cdformer.py","file_url":"https://github.com/I2-Multimedia-Lab/CDFormer/blob/HEAD/model/cdformer.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":"986cf10a4f977a9e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}