The Challenge of Hybrid Distortions
Most Image Super-resolution (SR) research focuses on "clean" degradations, such as simple bicubic downsampling. However, real-world images—especially those on the web or from mobile devices—suffer from hybrid distortions. When an image is both downsampled and heavily compressed (e.g., JPEG quality factor of 10), it exhibits a messy mix of blur, blocky artifacts, and ringing.
Standard SR models often fail here because they aren't trained to handle the "distribution shift" caused by compression. Conversely, simple de-blocking filters often smooth out the very textures an SR model is trying to reconstruct. The challenge is to learn structure and texture jointly while navigating these conflicting distortions.
The Hierarchical Swin Transformer Architecture
The authors propose the Hierarchical Swin Transformer (HST), a deep learning architecture designed to recover high-quality images from low-resolution sources plagued by heavy JPEG compression. By combining a multi-scale "divide-and-conquer" feature extraction strategy with the long-range modeling power of Swin Transformers, the model achieved 5th place in the AIM 2022 challenge.
The HST consists of four primary modules:
- Hierarchical Feature Extraction Module (HFM): Instead of processing the image at a single scale, the network uses three parallel branches. It employs convolutions with different strides to capture features at multiple resolutions simultaneously.
- Feature Enhancement Module (FEM): This is the "brain" of the network. Each branch uses Residual Swin Transformer Blocks (RSTB). Unlike traditional CNNs, these use a shifted-window self-attention mechanism to capture global contextual information, which is vital for distinguishing between actual image edges and artificial JPEG block boundaries.
- Fusion Module (FM): This module integrates information from the low-scale branches into the high-scale branches. It uses PixelShuffle for stable upsampling and concatenation to ensure the finer details benefit from the broader context captured at lower resolutions.
- HR Reconstruction Module (HRM): A final series of sub-pixel convolutions that upscales the features to the target high-resolution output.
Key Insights and Performance
The Power of Hierarchical Processing
Ablation studies confirmed that a three-branch hierarchical structure consistently outperforms a single-branch version (like standard SwinIR). The multi-scale approach allows the network to "see" the blocky artifacts at different granularities. While CNNs are great for local patterns, Swin Transformers excel at modeling long-range dependencies, helping the model maintain structural consistency across the 8x8 blocks typical of JPEG compression.
Pretraining Strategy
A critical part of the methodology is the pretraining strategy. The authors found that pretraining the model on a complex, multi-task SR degradation (specifically the DRTL method) provided a much better "starting point" for the network than standard bicubic pretraining. Pretraining on "RealSR" simulations led to a gain of 0.36dB over no pretraining, proving that the network needs to learn how to handle "dirty" data early in the process.
Results
HST achieved 5th place in the AIM 2022 "Low-quality compressed image super-resolution" track with a PSNR of 23.51dB. On the Urban100 dataset (at Quality=10), HST outperformed the popular RRDB and standard SwinIR by significant margins. Visual results show much sharper edges and fewer "checkerboard" artifacts in textured areas compared to other state-of-the-art methods.
Conclusion
The Hierarchical Swin Transformer demonstrates that joint optimization of de-blocking and super-resolution is superior to sequential processing. While adding hierarchical branches increases computational complexity, the trade-off results in significant qualitative and quantitative gains for heavily compressed real-world imagery.
Summary updated