{"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-2606-30821","title":"Mind the Residual Gap: Probabilistic Downscaling under Real-World Bias","arxiv_id":"2606.30821","date":"2026-06-29","proceeding":null,"authors":["Yujin Kim","Nidhi Soma","Sarah Dean"],"abstract":"Probabilistic downscaling is the task of modeling the conditional distribution of high-resolution fields given coarse inputs, and is a central challenge to atmospheric science, climate modeling, and other multiscale physical systems. A widely used paradigm decomposes the problem into a deterministic mean predictor followed by a stochastic residual generator. While effective in idealized settings, this mean--residual approach frequently produces biased and under-dispersive ensembles in real-world applications. Is this merely generic predictive uncertainty miscalibration? We show that the root cause is more fundamental: residual target misspecification, the residual distribution induced during training differs systematically from the one required at test time due to downscaling bias. To close this gap, we introduce ReMatch (Residual Distribution Matching). ReMatch aligns the training residual distribution toward the test-time regime via optimal transport in a low-dimensional PCA space. This preserves the statistical benefits of the mean--residual framework while reducing the train--test mismatch in the residual targets seen by the stochastic generator. On a controlled synthetic benchmark with varying bias levels and a real-world HRRR--ERA5 wind field downscaling task, ReMatch substantially reduces under-dispersion, improves calibration (SSR and CRPS), and outperforms strong baselines, including the standard mean--residual model and its variants, as well as state-of-the-art super-resolution models. Our code is available at https://github.com/sdean-group/ReMatch.git.","url_abs":"https://arxiv.org/abs/2606.30821","url_pdf":"https://arxiv.org/pdf/2606.30821","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":{"syntology_url":"https://syntology.ai/paper/2606.30821","atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.30821"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/sdean-group/ReMatch","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/NVIDIA/physicsnemo","reach":{"status":"ok","spdx":"Apache-2.0"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/JingyunLiang/SwinIR","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/blastnet/blastnet2_","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}}],"summary":{"ran_fixture":7,"ran_honours":1,"ran_draft_wrong":9,"ran":4,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":26,"ran":21,"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":0,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"models/network_swinir.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/models/network_swinir.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"144d10b49baeb8a6"}},{"code_sha256_prefix":"656eac182b85cc36","entry":"apply_target_penalty_to_knn_cost","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"656eac182b85cc36"}},{"code_sha256_prefix":"d0b0b27b5aef222f","entry":"blockwise_topk_sqdist","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d0b0b27b5aef222f"}},{"code_sha256_prefix":"cc8f3071b1bfce34","entry":"build_augmented_features","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cc8f3071b1bfce34"}},{"code_sha256_prefix":"eec2e850e1449b48","entry":"build_candidate_penalty_from_selected_count","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eec2e850e1449b48"}},{"code_sha256_prefix":"eaaa41d8e8354993","entry":"calculate_psnr","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"utils/util_calculate_psnr_ssim.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/utils/util_calculate_psnr_ssim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eaaa41d8e8354993"}},{"code_sha256_prefix":"bdcc8f056d2f9f0f","entry":"compute_target_usage","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bdcc8f056d2f9f0f"}},{"code_sha256_prefix":"e3b893c214cb7521","entry":"ensure_target_min_indegree","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e3b893c214cb7521"}},{"code_sha256_prefix":"266b9c22b0cf865f","entry":"flatten_condition_features","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"266b9c22b0cf865f"}},{"code_sha256_prefix":"d828e6b47dacda26","entry":"get_channel_weights","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d828e6b47dacda26"}},{"code_sha256_prefix":"2faa0dd1f7e9b062","entry":"get_installed_version","repo":"NVIDIA/physicsnemo","repo_kind":"found_in_text","path":"physicsnemo/core/version_check.py","file_url":"https://github.com/NVIDIA/physicsnemo/blob/HEAD/physicsnemo/core/version_check.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2faa0dd1f7e9b062"}},{"code_sha256_prefix":"56856245bca5162a","entry":"is_package_available","repo":"NVIDIA/physicsnemo","repo_kind":"found_in_text","path":"physicsnemo/core/version_check.py","file_url":"https://github.com/NVIDIA/physicsnemo/blob/HEAD/physicsnemo/core/version_check.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"56856245bca5162a"}},{"code_sha256_prefix":"8db968303bece0ef","entry":"provisional_topm_selection","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8db968303bece0ef"}},{"code_sha256_prefix":"31b521c272528885","entry":"setup","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"main_test_swinir.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/main_test_swinir.py","link_basis":"plan_row","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":"31b521c272528885"}},{"code_sha256_prefix":"5f2ba62abdc9b032","entry":"setup_active_learning_logger","repo":"NVIDIA/physicsnemo","repo_kind":"found_in_text","path":"physicsnemo/active_learning/logger.py","file_url":"https://github.com/NVIDIA/physicsnemo/blob/HEAD/physicsnemo/active_learning/logger.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5f2ba62abdc9b032"}},{"code_sha256_prefix":"a8e71685d963dd41","entry":"sparse_balanced_sinkhorn_knn","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a8e71685d963dd41"}},{"code_sha256_prefix":"571128c58474b261","entry":"summarize_marginal_error","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"571128c58474b261"}},{"code_sha256_prefix":"e2a023407bf86d72","entry":"summarize_selected_count","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e2a023407bf86d72"}},{"code_sha256_prefix":"c589c5c87347cd7a","entry":"summarize_usage","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c589c5c87347cd7a"}},{"code_sha256_prefix":"23d6d8f901a53863","entry":"weighted_topm_from_sparse_plan_hardcap","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"23d6d8f901a53863"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"models/network_swinir.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/models/network_swinir.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"61bf152e6a42a184"}},{"code_sha256_prefix":"22de7479908af990","entry":"_replace_or_insert_edge","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"22de7479908af990"}},{"code_sha256_prefix":"60bf5573099d27b7","entry":"calculate_psnrb","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"utils/util_calculate_psnr_ssim.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/utils/util_calculate_psnr_ssim.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"60bf5573099d27b7"}},{"code_sha256_prefix":"67b7513e8c6ec64a","entry":"calculate_ssim","repo":"JingyunLiang/SwinIR","repo_kind":"found_in_text","path":"utils/util_calculate_psnr_ssim.py","file_url":"https://github.com/JingyunLiang/SwinIR/blob/HEAD/utils/util_calculate_psnr_ssim.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"67b7513e8c6ec64a"}},{"code_sha256_prefix":"d4ffd230f3ed5ac6","entry":"get_package_hint","repo":"NVIDIA/physicsnemo","repo_kind":"found_in_text","path":"physicsnemo/core/version_check.py","file_url":"https://github.com/NVIDIA/physicsnemo/blob/HEAD/physicsnemo/core/version_check.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d4ffd230f3ed5ac6"}},{"code_sha256_prefix":"bd550dd031579dda","entry":"solve_one_channel_sparse_balanced_map","repo":"sdean-group/ReMatch","repo_kind":"found_in_text","path":"rematch/optimal_transport/optimal_transport.py","file_url":"https://github.com/sdean-group/ReMatch/blob/HEAD/rematch/optimal_transport/optimal_transport.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bd550dd031579dda"}}]},"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":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}