Papers › Mind the Residual Gap: Probabilistic Downscaling under Real-World Bias

Mind the Residual Gap: Probabilistic Downscaling under Real-World Bias

29 Jun 2026arXiv:2606.30821added by Syntology

Yujin Kim, Nidhi Soma, Sarah Dean

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.30821")

Code

Syntology Ran 21 of 26 code samples harvested from 3 repositories linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 9 ran · our draft was wrong; 7 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: found in paper text by Syntology: 26 samples from 3 repositories, 21 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sdean-group/ReMatch found in paper text by Syntology report
NVIDIA/physicsnemo found in paper text by SyntologyApache-2.0 report
JingyunLiang/SwinIR found in paper text by Syntology report
blastnet/blastnet2_ found in paper text by Syntologynot reachable when probed 2026-09-16 — repositories for recent papers often appear after camera-ready report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

26 samples harvested; 21 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
9ran · our draft was wrong
7ran · fixture could not drive it
4ran
5unverified

Licence: 0 of the 26 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

window_partition JingyunLiang/SwinIR/models/network_swinir.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 144d10b49baeb8a6 · report
apply_target_penalty_to_knn_cost sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · 656eac182b85cc36 · report
blockwise_topk_sqdist sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · d0b0b27b5aef222f · report
build_augmented_features sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · cc8f3071b1bfce34 · report
build_candidate_penalty_from_selected_count sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · eec2e850e1449b48 · report
calculate_psnr JingyunLiang/SwinIR/utils/util_calculate_psnr_ssim.py found in paper text by Syntology ran Apache-2.0 (permissive) · eaaa41d8e8354993 · report
compute_target_usage sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · bdcc8f056d2f9f0f · report
ensure_target_min_indegree sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · e3b893c214cb7521 · report
flatten_condition_features sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · 266b9c22b0cf865f · report
get_channel_weights sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · d828e6b47dacda26 · report
get_installed_version NVIDIA/physicsnemo/physicsnemo/core/version_check.py found in paper text by Syntology ran Apache-2.0 (permissive) · 2faa0dd1f7e9b062 · report
is_package_available NVIDIA/physicsnemo/physicsnemo/core/version_check.py found in paper text by Syntology ran Apache-2.0 (permissive) · 56856245bca5162a · report
provisional_topm_selection sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 8db968303bece0ef · report
setup JingyunLiang/SwinIR/main_test_swinir.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 31b521c272528885 · report
setup_active_learning_logger NVIDIA/physicsnemo/physicsnemo/active_learning/logger.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5f2ba62abdc9b032 · report
sparse_balanced_sinkhorn_knn sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · a8e71685d963dd41 · report
summarize_marginal_error sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 571128c58474b261 · report
summarize_selected_count sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · e2a023407bf86d72 · report
summarize_usage sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · c589c5c87347cd7a · report
weighted_topm_from_sparse_plan_hardcap sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · 23d6d8f901a53863 · report
window_reverse JingyunLiang/SwinIR/models/network_swinir.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 61bf152e6a42a184 · report
_replace_or_insert_edge sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 22de7479908af990 · report
calculate_psnrb JingyunLiang/SwinIR/utils/util_calculate_psnr_ssim.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 60bf5573099d27b7 · report
calculate_ssim JingyunLiang/SwinIR/utils/util_calculate_psnr_ssim.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 67b7513e8c6ec64a · report
get_package_hint NVIDIA/physicsnemo/physicsnemo/core/version_check.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d4ffd230f3ed5ac6 · report
solve_one_channel_sparse_balanced_map sdean-group/ReMatch/rematch/optimal_transport/optimal_transport.py found in paper text by Syntology unverified Apache-2.0 (permissive) · bd550dd031579dda · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.30821, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections