{"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/arxiv-2605-02184","title":"RAFNet: Region-Aware Fusion Network for Pansharpening","arxiv_id":"2605.02184","date":"2026-05-04","proceeding":null,"authors":["Jianing Zhang","Zijian Zhou","Kai Sun"],"abstract":"Pansharpening aims to generate high-resolution multispectral (HRMS) images by fusing low-resolution multispectral (LRMS) and high-resolution panchromatic (PAN) images. Although deep learning has advanced this field, mainstream frequency-based methods relying on standard scaled dot-product attention suffer from quadratic computational complexity and fail to exploit the inherent regional sparsity of remote sensing imagery. Furthermore, existing spatial enhancement strategies typically employ static convolution kernels, which struggle to adapt to the complex frequency and regional variations of PAN and MS images. To address these bottlenecks, we propose a Region-Aware Fusion (RAFNet) Network that synergistically models spatial and frequency information. Specifically, we design a Spatial Adaptive Refinement (SAR) module that leverages the discrete wavelet transform (DWT) for directional frequency separation and K-means clustering for regional partitioning, which enables the dynamic construction of region-specific adaptive convolution kernels, achieving spatially and frequency-adaptive feature enhancement. Moreover, we introduce a Clustered Frequency Aggregation (CFA) module based on a sparse attention mechanism guided by the semantic clusters, which executes a region-aware sparse attention strategy that drastically reduces computational redundancy while ensuring high-quality frequency feature extraction. In addition we integrated these modules into a progressive, multi-level spatial-frequency network architecture to facilitate robust interaction and accurate image reconstruction. Extensive experiments on multiple benchmark datasets demonstrate that the proposed RAFNet significantly outperforms state-of-the-art pansharpening methods in both reduced- and full-resolution assessments. The code is available at https://github.com/PatrickNod/RAFNet.","url_abs":"https://arxiv.org/abs/2605.02184","url_pdf":"https://arxiv.org/pdf/2605.02184","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2605.02184","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.02184"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/PatrickNod/RAFNet","reach":null}],"summary":{"ran":15,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":20,"ran":15,"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":20,"samples":[{"code_sha256_prefix":"4d521b6e39154b65","entry":"AdaptiveAttention","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"4d521b6e39154b65"}},{"code_sha256_prefix":"5346eed1fc1067e6","entry":"DWT_2D","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"5346eed1fc1067e6"}},{"code_sha256_prefix":"ebdee2548d04c459","entry":"DWT_Function","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"ebdee2548d04c459"}},{"code_sha256_prefix":"6c4f9e165a3f9f83","entry":"DifferentiableSoftKMeans","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"6c4f9e165a3f9f83"}},{"code_sha256_prefix":"053a89049b4d0408","entry":"FFN","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"053a89049b4d0408"}},{"code_sha256_prefix":"08d3883c39da6e31","entry":"FFN_2","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"08d3883c39da6e31"}},{"code_sha256_prefix":"e66887ce3b27dffe","entry":"GDFN","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"e66887ce3b27dffe"}},{"code_sha256_prefix":"72dba26281e16193","entry":"IDWT_2D","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"72dba26281e16193"}},{"code_sha256_prefix":"6c983205d4937edd","entry":"IDWT_Function","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"6c983205d4937edd"}},{"code_sha256_prefix":"cb7afbeebb20b163","entry":"PWAC","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"cb7afbeebb20b163"}},{"code_sha256_prefix":"6c8bc10d29ff9d0d","entry":"combine","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"6c8bc10d29ff9d0d"}},{"code_sha256_prefix":"25e93dced6d07109","entry":"conv_IDWT","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"25e93dced6d07109"}},{"code_sha256_prefix":"1ab3aa52782f65f1","entry":"raise_channel","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"1ab3aa52782f65f1"}},{"code_sha256_prefix":"58be349d1ae54234","entry":"reduce_channel","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"58be349d1ae54234"}},{"code_sha256_prefix":"22685b17e304e676","entry":"resblock","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.py","link_basis":"first_harvest_node","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":"22685b17e304e676"}},{"code_sha256_prefix":"20a248b487ca1025","entry":"AdaptiveDWCBlock","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"20a248b487ca1025"}},{"code_sha256_prefix":"103d533545ba2837","entry":"FreqProcessingUnit","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"103d533545ba2837"}},{"code_sha256_prefix":"f34d0cde3ca5235d","entry":"HWViT","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"f34d0cde3ca5235d"}},{"code_sha256_prefix":"804fd376e6271a80","entry":"L_MWiT","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"804fd376e6271a80"}},{"code_sha256_prefix":"1c415984e3ef3b4e","entry":"S_MWiT","repo":"PatrickNod/RAFNet","repo_kind":"found_in_text","path":"caac.py","file_url":"https://github.com/PatrickNod/RAFNet/blob/HEAD/caac.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":"1c415984e3ef3b4e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}