Papers › Correlation Matching Transformation Transformers for UHD Image Restoration

Correlation Matching Transformation Transformers for UHD Image Restoration

2 Jun 2024arXiv:2406.00629archive 2025-07-28

Cong Wang, Jinshan Pan, Wei Wang, Gang Fu, Siyuan Liang, Mengzhu Wang, Xiao-Ming Wu, Jun Liu

This paper proposes UHDformer, a general Transformer for Ultra-High-Definition (UHD) image restoration. UHDformer contains two learning spaces: (a) learning in high-resolution space and (b) learning in low-resolution space. The former learns multi-level high-resolution features and fuses low-high features and reconstructs the residual images, while the latter explores more representative features learning from the high-resolution ones to facilitate better restoration. To better improve feature representation in low-resolution space, we propose to build feature transformation from the high-resolution space to the low-resolution one. To that end, we propose two new modules: Dual-path Correlation Matching Transformation module (DualCMT) and Adaptive Channel Modulator (ACM). The DualCMT selects top C/r (r is greater or equal to 1 which controls the squeezing level) correlation channels from the max-pooling/mean-pooling high-resolution features to replace low-resolution ones in Transformers, which can effectively squeeze useless content to improve the feature representation in low-resolution space to facilitate better recovery. The ACM is exploited to adaptively modulate multi-level high-resolution features, enabling to provide more useful features to low-resolution space for better learning. Experimental results show that our UHDformer reduces about ninety-seven percent model sizes compared with most state-of-the-art methods while significantly improving performance under different training sets on 3 UHD image restoration tasks, including low-light image enhancement, image dehazing, and image deblurring. The source codes will be made available at https://github.com/supersupercong/UHDformer.

PaperPDFCodeCode 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.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

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

Code

Syntology 19 code samples: 18 from 1 repository linked to this paper, 1 identical to code harvested from another paper's repository. Across all 19: 17 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 0 violated, 2 with no contract checked; 13 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 8 where our contract draft was wrong; 5 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 18 samples from 1 repository, 16 ran (4 with no instrument failure; 12 where Syntology's instrument failed); 1 identical to code first harvested elsewhere. 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-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 4 of the 17 samples that ran have no recorded date.

supersupercong/uhdformer officialmentioned in paperpytorchNOASSERTIONSyntology: 18 samples, 16 ran (12 instrument-failed) · 2 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

19 samples harvested: 17 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 0 violated, 2 with no contract checked; 13 where Syntology's instrument failed) · 2 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.

2ran · honoured contract
8ran · our draft was wrong
5ran; the contract check could not run
2ran
2unverified

Licence: 19 of the 19 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 supersupercong/uhdformer. 1 sample is listed last, in a group without a repository. “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”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “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.

supersupercong/uhdformer official repository 18 samples, 16 ran (12 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
basicsr/archs/network_swinir.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 144d10b49baeb8a6 · report fixture: signature x:Tensor/4/float, window_size:int/0/int · returned Tensor · level recorded, date not recorded
Matching basicsr/archs/femasr_arch.py ran licence not identified · pointer only · 7768e2df71a905ea · report fixture: returned Matching · level recorded 2026-09-22
Matching_transformation basicsr/archs/femasr_arch.py ran licence not identified · pointer only · bc51e42faf58567f · report fixture: returned Matching_transformation · level recorded 2026-09-22
calculate_weights_indices in 5 papers comput_psnr_ssim.py ran · our draft was wrong licence not identified · pointer only · 41c726254f92759d · report fixture: signature in_length:int/0/int, out_length:int/0/int, scale:float/0/float, kernel:str/0/str, kernel_width:int/0/int, antialiasing:bool/0/bool · returned tuple · level recorded 2026-09-24
create_window in 82 papers basicsr/models/cal_ssim.py ran · honoured contract fingerprinted no licence file found · pointer only · 6154e3744ece5728 · report fixture: signature window_size:int/0/int, channel:int/0/int · returned Tensor · level recorded 2026-09-22
cubic in 19 papers comput_psnr_ssim.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 2a78a7db11a55ede · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-24
equalize_hist_color inference_uhdformer.py ran; the contract check could not run (RAISES) licence not identified · pointer only · 5cf7893d7b439f34 · report fixture: signature img:ndarray/3/int · returned ndarray · level recorded 2026-09-24
gaussian in 218 papers
census: 8 implementations from 9 papers, 8 distinct outputs across 4 buckets, one shared input per bucket
basicsr/models/cal_ssim.py ran · honoured contract fingerprinted no licence file found · pointer only · c56b7ef16f309a45 · report fixture: signature window_size:int/0/int, sigma:float/0/float · returned Tensor · level recorded, date not recorded
get_residue_structure_mean inference_uhdformer.py ran · our draft was wrong fingerprinted licence not identified · pointer only · 25d2b867e5ed26b3 · report fixture: signature tensor:Tensor/3/float, r_dim:int/0/int · returned Tensor · level recorded 2026-09-24
imresize in 28 papers comput_psnr_ssim.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · a418150375355db5 · report fixture: signature img:Tensor/3/float, scale:float/0/float, antialiasing:bool/0/bool · returned Tensor · level recorded 2026-09-24
neirest_neighbores basicsr/archs/femasr_arch.py ran · our draft was wrong licence not identified · pointer only · 138161515f1d0419 · report fixture: signature input_maps:Tensor/2/float, candidate_maps:Tensor/3/float, distances:Tensor/3/float, num_matches:int/0/int · returned Tensor · level recorded 2026-09-22
neirest_neighbores_on_l2 basicsr/archs/femasr_arch.py ran · our draft was wrong fingerprinted licence not identified · pointer only · d51cded6ddd608db · report fixture: signature input_maps:Tensor/3/float, candidate_maps:Tensor/3/float, num_matches:int/0/int · returned Tensor · level recorded 2026-09-22
reduce_loss in 75 papers basicsr/losses/loss_util.py ran; the contract check could not run (RAISES) no licence file found · pointer only · a648a03a952822c0 · report fixture: signature loss:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
ssim in 112 papers basicsr/models/cal_ssim.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 9151c793f90473f0 · report fixture: signature img1:Tensor/4/float, img2:Tensor/4/float, window_size:int/0/int, size_average:bool/0/bool · returned Tensor · level recorded 2026-09-26
weight_reduce_loss in 61 papers basicsr/losses/loss_util.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 1ba39317ea81871a · report fixture: signature loss:Tensor/2/float, weight:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
window_reverse in 296 papers basicsr/archs/network_swinir.py ran · our draft was wrong no licence file found · pointer only · 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
check_image_size in 5 papers inference_uhdformer.py unverified licence not identified · pointer only · 7ab32da4188a2275 · report
weighted_loss in 53 papers basicsr/losses/loss_util.py unverified no licence file found · pointer only · cf63f8afc13f62a7 · report
Repository not located 1 sample, 1 ran (1 instrument-failed) · 0 unverified
1 sample is identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
batched_index_select in 44 papers repository not located ran; the contract check could not run (RAISES) · metamorphic tier: invariant licence of this copy not recorded · 1345f4fc63011f70 · report fixture: signature input:Tensor/4/float, dim:int/0/int, index:Tensor/2/int · returned Tensor · level recorded, date not recorded

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 Dual-path Correlation Matching Transformation module (DualCMT) (graph method: Dual-path Correlation Matching Transformation module (DualCMT)). 5 bricks; individually on a fixture: 5 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

  1. Matching_transformation entry · level 1 · ran · bc51e42faf58567f
  2. Matching helper · level 1 · ran · 7768e2df71a905ea
  3. neirest_neighbores_on_l2 helper · level 1 · ran · our draft was wrong · d51cded6ddd608db
  4. neirest_neighbores helper · level 1 · ran · our draft was wrong · 138161515f1d0419
  5. batched_index_select helper · level 1 · ran; the contract check could not run (RAISES) · 1345f4fc63011f70

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="2406.00629") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

DeblurringImage DeblurringImage DehazingImage EnhancementImage RestorationLow-Light Image Enhancement

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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