Papers › Mind the Residual Gap: Probabilistic Downscaling under Real-World Bias
Mind the Residual Gap: Probabilistic Downscaling under Real-World Bias
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.
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):
get_harvested_code_for_paper(arxiv_id="2606.30821")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2606.30821", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2606.30821")
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.
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.
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.
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 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 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 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 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 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 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 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 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 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 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 e2a023407bf86d72 · report
fixture: signature selected_idx:ndarray/2/int, n_target:int/0/int · returned dict · level recorded 2026-09-22 c589c5c87347cd7a · report
fixture: signature usage:ndarray/1/float · returned dict · level recorded 2026-09-22 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 22de7479908af990 · report
bd550dd031579dda · report
2faa0dd1f7e9b062 · report
fixture: signature distribution_name:str/0/str · returned str · level recorded 2026-09-24 56856245bca5162a · report
fixture: signature distribution_name:str/0/str · returned bool · level recorded 2026-09-24 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 d4ffd230f3ed5ac6 · report
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 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 31b521c272528885 · report
fixture: signature args:Args/0/? · returned tuple · level recorded 2026-09-22 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 60bf5573099d27b7 · report
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.
- solve_one_channel_sparse_balanced_map entry · level 0 · unverified ·
bd550dd031579dda - apply_target_penalty_to_knn_cost helper · level 1 · ran; the contract check could not run (RAISES) ·
656eac182b85cc36 - blockwise_topk_sqdist helper · level 1 · ran; the contract check could not run (RAISES) ·
d0b0b27b5aef222f - build_augmented_features data_transform · level 1 · ran · honoured contract ·
cc8f3071b1bfce34 - build_candidate_penalty_from_selected_count helper · level 1 · ran · our draft was wrong ·
eec2e850e1449b48 - compute_target_usage metric · level 1 · ran · our draft was wrong ·
bdcc8f056d2f9f0f - ensure_target_min_indegree helper · level 1 · ran; the contract check could not run (RAISES) ·
e3b893c214cb7521 - flatten_condition_features data_transform · level 1 · ran; the contract check could not run (RAISES) ·
266b9c22b0cf865f - get_channel_weights data_transform · level 1 · ran; the contract check could not run (RAISES) ·
d828e6b47dacda26 - provisional_topm_selection helper · level 1 · ran · our draft was wrong ·
8db968303bece0ef - sparse_balanced_sinkhorn_knn sampler · level 1 · ran · our draft was wrong ·
a8e71685d963dd41 - summarize_selected_count metric · level 1 · ran · our draft was wrong ·
e2a023407bf86d72 - summarize_usage metric · level 1 · ran · our draft was wrong ·
c589c5c87347cd7a - weighted_topm_from_sparse_plan_hardcap sampler · level 1 · ran; the contract check could not run (RAISES) ·
23d6d8f901a53863 - _replace_or_insert_edge helper · level 0 · unverified ·
22de7479908af990 - 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