Correlation Matching Transformation Transformers for UHD Image Restoration

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

TL;DR

UHDformer is an ultra-lightweight Transformer framework designed for Ultra-High-Definition (UHD) image restoration that achieves state-of-the-art performance with a massive 97%+ reduction in model size (~0.34M parameters). By bridging high- and low-resolution learning spaces with two novel feature transformation modules, it effectively filters out redundant information to restore low-light, hazy, and blurry 4K images on resource-constrained devices.

What Problem Does This Paper Address?

As Ultra-High-Definition (UHD) 4K displays and sensors become ubiquitous, restoring images captured in poor conditions—such as low light, heavy haze, or rapid motion—remains a significant challenge. Traditional deep learning restoration models (CNNs and Transformers) struggle with UHD images because the massive spatial dimensions lead to prohibitive computational and memory costs.

While some recent UHD-specific networks have emerged, they typically suffer from two major flaws:

  1. High Parameter Counts: Models often rely on large capacities (ranging from 17M to 34M parameters), making them impractical for deployment on edge devices like smartphones or embedded cameras.
  2. Suboptimal Feature Interaction: They fail to effectively mine and transfer valuable content from the high-resolution space to guide the low-resolution processing space, leading to a loss of fine structural details.

UHDformer addresses this gap by creating an efficient, unified framework that dynamically filters and matches features across resolution spaces, achieving high-fidelity restoration with a fraction of the computational footprint.

Methods

UHDformer splits the restoration process into two distinct learning spaces: a High-Resolution (HR) Space and a Low-Resolution (LR) Space, connected by an intelligent feature transformation bridge.

Figure 2: Overall framework of our UHDformer.

The core architecture consists of the following components:

  • High-Resolution Space: Hierarchically encodes shallow features using ConvNeXt blocks to preserve spatial structures and later reconstructs the final clean image by adding a learned residual to the input.
  • Adaptive Channel Modulator (ACM): This module aggregates multi-level features from the HR space and adaptively modulates them along the channel dimension. This balances channel-wise importance and ensures that only the most representative features are prepared for the low-resolution space.
  • Correlation Matching Transformation Transformer Block (CMT-TB): Operating in the LR space, this block contains two key sub-modules that replace standard Transformer components:
  • Correlation Matching Transformation Attention (CMTA): Instead of using standard self-attention queries, it uses a Dual-path Correlation Matching Transformation (DualCMT) module. DualCMT computes the matrix similarity between pooled HR features (via max- and mean-pooling) and LR features, selecting only the top $C/r$ most correlated channels (where $r$ is a squeezing factor) to act as the Query.
  • Correlation Matching Transformation Forward Network (CMTN): Similarly leverages DualCMT to refine the feed-forward network representations by filtering out redundant high-resolution content.

Datasets

The authors evaluated UHDformer across three primary UHD image restoration tasks using 4K resolution ($3840 \times 2160$) benchmarks:

  • UHD-LL: A low-light image enhancement dataset containing 2,000 training pairs and 150 testing pairs.
  • UHD-Haze: A newly re-collected benchmark for image dehazing consisting of 2,290 training pairs and 231 testing pairs.
  • UHD-Blur: A newly re-collected benchmark for image deblurring consisting of 1,964 training pairs and 300 testing pairs.

To test robustness and generalization, models were also pre-trained on popular general-resolution datasets—LOL (low-light), SOTS-ITS (dehazing), and GoPro (deblurring)—before being evaluated directly on the UHD test sets.

Key Insights and Ideas

  • Squeezing Content Boosts Performance: Counterintuitively, throwing away features helps. By introducing the squeezing factor $r$, the network filters out useless or noisy high-resolution content. The ablation studies revealed that a factor of $r=4$ yielded the highest Peak Signal-to-Noise Ratio (PSNR), proving that compact, highly-correlated feature subsets are superior to raw, dense feature maps for low-resolution Transformer learning.
  • Empowering the Query: In standard Transformers, low-resolution queries often lack fine-grained structural awareness. By replacing/modulating the Query vector with highly correlated, pooled high-resolution features, the attention mechanism becomes significantly more effective at capturing long-range dependencies relevant to fine image details.

Key Results

UHDformer achieved state-of-the-art (SOTA) results across all three tasks while maintaining an incredibly small footprint of just 0.3393M parameters.

  • Low-Light Enhancement (UHD-LL): When trained on UHD-LL, UHDformer achieved a PSNR of 27.113 dB, outperforming the previous SOTA, UHDFour (26.226 dB), while using 98% fewer parameters.
  • Image Dehazing (UHD-Haze): UHDformer achieved 22.586 dB PSNR, vastly outperforming DehazeFormer (15.372 dB) and Uformer (19.828 dB). Notably, unlike many competitors, UHDformer does not require input resizing, avoiding artificial distortion.
  • Image Deblurring (UHD-Blur): It achieved a PSNR of 28.821 dB, representing a 3.412 dB gain over the recent FFTformer.

Qualitatively, the model produces sharper structural edges, cleaner text recovery, and more natural color reproduction under extreme degradations.

Limitations and Future Work

The limitations of the model are not explicitly detailed in the paper. However, based on the architecture, future work could explore dynamically adaptive squeezing factors ($r$) that adjust automatically based on the severity or type of image degradation, rather than relying on a fixed hyperparameter.

Summary updated

BibTeX
@inproceedings{wang2024correlation,
  author = {Cong Wang and Jinshan Pan and Wei Wang and Gang Fu and Siyuan Liang and Mengzhu Wang and Xiao-Ming Wu and Jun Liu},
  title = {{Correlation Matching Transformation Transformers for UHD Image Restoration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28341},
}
Figure