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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 26 code samples harvested from 3 repositories linked to this paper: 21 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 1 violated, 1 with no contract checked; 18 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 10 where our contract draft was wrong; 8 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 26 samples from 3 repositories, 21 ran (3 with no instrument failure; 18 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 21 samples that ran have no recorded date.

sdean-group/ReMatch found in paper text by SyntologySyntology: 16 samples, 14 ran (13 instrument-failed) · 2 unverified report
NVIDIA/physicsnemo found in paper text by SyntologyApache-2.0Syntology: 4 samples, 3 ran (1 instrument-failed) · 1 unverified report
JingyunLiang/SwinIR found in paper text by SyntologySyntology: 6 samples, 4 ran (4 instrument-failed) · 2 unverified report
blastnet/blastnet2_ found in paper text by Syntologynot reachable when probed 2026-09-16 — repositories for recent papers often appear after camera-readySyntology: not harvested 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 (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 1 violated, 1 with no contract checked; 18 where Syntology's instrument failed) · 5 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
10ran · our draft was wrong
8ran; the contract check could not run
1ran
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; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

sdean-group/ReMatch found in paper text by Syntology 16 samples, 14 ran (13 instrument-failed) · 2 unverified
apply_target_penalty_to_knn_cost rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · 656eac182b85cc36 · report fixture: signature knn_idx:ndarray/2/int, knn_cost_scaled:ndarray/2/float, per_target_penalty:ndarray/1/float · returned ndarray · level recorded 2026-09-22
blockwise_topk_sqdist rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · d0b0b27b5aef222f · report fixture: signature X:ndarray/2/float, Y:ndarray/2/float, k:int/0/int, x_block:int/0/int, y_block:int/0/int, device:str/0/str · returned tuple · level recorded 2026-09-22
build_augmented_features rematch/optimal_transport/optimal_transport.py ran · honoured contract Apache-2.0 (permissive) · cc8f3071b1bfce34 · report fixture: signature w1c:ndarray/2/float, w2c:ndarray/2/float, z1:ndarray/2/float, z2:ndarray/2/float, alpha:float/0/float, lambda_cond:float/0/float · returned tuple · level recorded 2026-09-22
build_candidate_penalty_from_selected_count rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · eec2e850e1449b48 · report fixture: signature selected_idx:ndarray/2/int, n_target:int/0/int, penalty_eta:float/0/float, penalty_beta:float/0/float, hard_cap:int/0/int, hard_cap_penalty:float/0/float · returned ndarray · level recorded 2026-09-22
compute_target_usage rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · bdcc8f056d2f9f0f · report fixture: signature knn_idx:ndarray/2/int, plan_vals:ndarray/2/float, n_target:int/0/int · returned ndarray · level recorded 2026-09-22
ensure_target_min_indegree rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · e3b893c214cb7521 · report fixture: signature f_source:ndarray/2/float, f_target:ndarray/2/float, knn_idx:ndarray/2/int, knn_cost:ndarray/2/float, min_indegree:int/0/int, x_block:int/0/int, y_block:int/0/int, device:str/0/str · returned tuple · level recorded 2026-09-22
flatten_condition_features rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · 266b9c22b0cf865f · report fixture: signature cond_source:ndarray/3/float, cond_target:ndarray/3/float, n_modes_per_channel:ndarray/1/int, use_modes_per_channel:dict/0/?, stats_from_target:bool/0/bool, eps:float/0/float · returned tuple · level recorded 2026-09-22
get_channel_weights rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · d828e6b47dacda26 · report fixture: signature weights_source:ndarray/3/float, weights_target:ndarray/3/float, channel:int/0/int, n_modes_per_channel:ndarray/1/int, normalize_from_target:bool/0/bool, eps:float/0/float · returned tuple · level recorded 2026-09-22
provisional_topm_selection rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · 8db968303bece0ef · report fixture: signature plan_idx:ndarray/2/int, plan_vals:ndarray/2/float, n_target:int/0/int, top_m:int/0/int · returned ndarray · level recorded 2026-09-22
sparse_balanced_sinkhorn_knn rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · a8e71685d963dd41 · report fixture: signature knn_idx:ndarray/2/int, knn_cost:ndarray/2/float, n_target:int/0/int, reg:float/0/float, n_iter:int/0/int, tol:float/0/float, a:ndarray/1/float, b:ndarray/1/float, eps:float/0/float · returned tuple · level recorded 2026-09-22
summarize_marginal_error rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · 571128c58474b261 · report fixture: signature row_sum:ndarray/1/float, col_sum:ndarray/1/float, a:ndarray/1/float, b:ndarray/1/float · returned dict · level recorded 2026-09-22
summarize_selected_count rematch/optimal_transport/optimal_transport.py ran · our draft was wrong Apache-2.0 (permissive) · e2a023407bf86d72 · report fixture: signature selected_idx:ndarray/2/int, n_target:int/0/int · returned dict · level recorded 2026-09-22
summarize_usage rematch/optimal_transport/optimal_transport.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · c589c5c87347cd7a · report fixture: signature usage:ndarray/1/float · returned dict · level recorded 2026-09-22
weighted_topm_from_sparse_plan_hardcap rematch/optimal_transport/optimal_transport.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · 23d6d8f901a53863 · report fixture: signature plan_idx:ndarray/2/int, plan_vals:ndarray/2/float, target_weights:ndarray/2/float, knn_cost:ndarray/2/float, n_target:int/0/int, top_m:int/0/int, max_selected_per_target:int/0/int, selected_cost_tradeoff_gamma:float/0/float, strict_cap:bool/0/bool, eps:float/0/float · returned tuple · level recorded 2026-09-22
_replace_or_insert_edge rematch/optimal_transport/optimal_transport.py unverified Apache-2.0 (permissive) · 22de7479908af990 · report
solve_one_channel_sparse_balanced_map rematch/optimal_transport/optimal_transport.py unverified Apache-2.0 (permissive) · bd550dd031579dda · report
NVIDIA/physicsnemo found in paper text by Syntology 4 samples, 3 ran (1 instrument-failed) · 1 unverified
get_installed_version physicsnemo/core/version_check.py ran · our draft was wrong Apache-2.0 (permissive) · 2faa0dd1f7e9b062 · report fixture: signature distribution_name:str/0/str · returned str · level recorded 2026-09-24
is_package_available in 7 papers physicsnemo/core/version_check.py ran · violated contract Apache-2.0 (permissive) · 56856245bca5162a · report fixture: signature distribution_name:str/0/str · returned bool · level recorded 2026-09-24
setup_active_learning_logger physicsnemo/active_learning/logger.py ran Apache-2.0 (permissive) · 5f2ba62abdc9b032 · report fixture: signature name:str/0/str, run_id:str/0/str, log_dir:PosixPath/0/?, level:int/0/int · returned Logger · level recorded 2026-09-24
get_package_hint physicsnemo/core/version_check.py unverified Apache-2.0 (permissive) · d4ffd230f3ed5ac6 · report
JingyunLiang/SwinIR found in paper text by Syntology 6 samples, 4 ran (4 instrument-failed) · 2 unverified
window_partition in 377 papers
census: 13 implementations from 17 papers, 5 distinct outputs across 3 buckets, one shared input per bucket
models/network_swinir.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 144d10b49baeb8a6 · report fixture: signature x:Tensor/4/float, window_size:int/0/int · returned Tensor · level recorded, date not recorded
calculate_psnr in 51 papers utils/util_calculate_psnr_ssim.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · eaaa41d8e8354993 · report fixture: signature img1:ndarray/3/int, img2:ndarray/3/int, crop_border:int/0/int, input_order:str/0/str, test_y_channel:bool/0/bool · returned float64 · level recorded 2026-09-24
setup in 24 papers main_test_swinir.py ran · our draft was wrong Apache-2.0 (permissive) · 31b521c272528885 · report fixture: signature args:Args/0/? · returned tuple · level recorded 2026-09-22
window_reverse in 296 papers models/network_swinir.py ran · our draft was wrong Apache-2.0 (permissive) · 61bf152e6a42a184 · report fixture: signature windows:Tensor/4/float, window_size:int/0/int, H:int/0/int, W:int/0/int · returned Tensor · level recorded, date not recorded
calculate_psnrb utils/util_calculate_psnr_ssim.py unverified Apache-2.0 (permissive) · 60bf5573099d27b7 · report
calculate_ssim in 24 papers utils/util_calculate_psnr_ssim.py unverified Apache-2.0 (permissive) · 67b7513e8c6ec64a · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for ReMatch (graph method: ReMatch). 16 bricks; individually on a fixture: 14 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.

  1. solve_one_channel_sparse_balanced_map entry · level 0 · unverified · bd550dd031579dda
  2. apply_target_penalty_to_knn_cost helper · level 1 · ran; the contract check could not run (RAISES) · 656eac182b85cc36
  3. blockwise_topk_sqdist helper · level 1 · ran; the contract check could not run (RAISES) · d0b0b27b5aef222f
  4. build_augmented_features data_transform · level 1 · ran · honoured contract · cc8f3071b1bfce34
  5. build_candidate_penalty_from_selected_count helper · level 1 · ran · our draft was wrong · eec2e850e1449b48
  6. compute_target_usage metric · level 1 · ran · our draft was wrong · bdcc8f056d2f9f0f
  7. ensure_target_min_indegree helper · level 1 · ran; the contract check could not run (RAISES) · e3b893c214cb7521
  8. flatten_condition_features data_transform · level 1 · ran; the contract check could not run (RAISES) · 266b9c22b0cf865f
  9. get_channel_weights data_transform · level 1 · ran; the contract check could not run (RAISES) · d828e6b47dacda26
  10. provisional_topm_selection helper · level 1 · ran · our draft was wrong · 8db968303bece0ef
  11. sparse_balanced_sinkhorn_knn sampler · level 1 · ran · our draft was wrong · a8e71685d963dd41
  12. summarize_selected_count metric · level 1 · ran · our draft was wrong · e2a023407bf86d72
  13. summarize_usage metric · level 1 · ran · our draft was wrong · c589c5c87347cd7a
  14. weighted_topm_from_sparse_plan_hardcap sampler · level 1 · ran; the contract check could not run (RAISES) · 23d6d8f901a53863
  15. _replace_or_insert_edge helper · level 0 · unverified · 22de7479908af990
  16. summarize_marginal_error metric · level 1 · ran · our draft was wrong · 571128c58474b261

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2606.30821") returns these assemblies with each brick's role and wiring (how to connect).

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