[论文解读] HAT: Hybrid Attention Transformer for Image Restoration
tldr: HAT 引入一种 Hybrid Attention Transformer,它将 window-based self-attention 与 channel attention 相结合,并且加入 overlapping cross-attention 模块,以激活更多输入像素,从而实现更出色的图像恢复,并采用 same-task pre-training 策略以提升性能。
Transformer-based methods have shown impressive performance in image restoration tasks, such as image super-resolution and denoising. However, we find that these networks can only utilize a limited spatial range of input information through attribution analysis. This implies that the potential of Transformer is still not fully exploited in existing networks. In order to activate more input pixels for better restoration, we propose a new Hybrid Attention Transformer (HAT). It combines both channel attention and window-based self-attention schemes, thus making use of their complementary advantages. Moreover, to better aggregate the cross-window information, we introduce an overlapping cross-attention module to enhance the interaction between neighboring window features. In the training stage, we additionally adopt a same-task pre-training strategy to further exploit the potential of the model for further improvement. Extensive experiments have demonstrated the effectiveness of the proposed modules. We further scale up the model to show that the performance of the SR task can be greatly improved. Besides, we extend HAT to more image restoration applications, including real-world image super-resolution, Gaussian image denoising and image compression artifacts reduction. Experiments on benchmark and real-world datasets demonstrate that our HAT achieves state-of-the-art performance both quantitatively and qualitatively. Codes and models are publicly available at https://github.com/XPixelGroup/HAT.
研究动机与目标
- Understand limitations of existing Transformer-based image restoration models in leveraging input pixel information.
- Propose a novel backbone that activates more input pixels via hybrid attention and overlapping cross-attention to improve restoration quality.
- Demonstrate the effectiveness of same-task pre-training on large-scale data for SR and other IR tasks.
- Show scalability of HAT and its applicability to SR, real-world SR, denoising, and compression artifacts reduction.
提出的方法
- Design of HAT, composed of shallow feature extraction, deep feature extraction with multiple RHAGs, and reconstruction.
- Replacement of standard Swin Transformer blocks with Hybrid Attention Blocks (HAB) that include (S)W-MSA and a parallel Channel Attention Block (CAB) to expand information utilization.
- Introduction of Overlapping Cross-Attention Block (OCAB) to directly enhance cross-window interactions.
- Use of a large window size (16) in HAB to widen the self-attention scope and inclusion of CAB to leverage global channel information with a small fusion weight alpha.
- Implementation of Overlapping Cross-Attention (OCA) with different window sizes to enable cross-window attention.
- A same-task pre-training strategy: pre-train on ImageNet for the same restoration task and fine-tune on target datasets to leverage scale and diversity of data.
实验结果
研究问题
- RQ1Can a hybrid attention mechanism improve the range of input pixels utilized by Transformer-based IR models?
- RQ2Does enlarging window size and incorporating cross-window attention and channel attention yield measurable SR and IR gains?
- RQ3What is the impact of overlapping cross-attention on cross-window information flow?
- RQ4Does same-task pre-training on large-scale data provide substantial benefits for SR and other IR tasks?
- RQ5How does HAT perform across multiple IR tasks (SR, real-world SR, denoising, compression artifact reduction) compared to state-of-the-art methods?
主要发现
- HAT surpasses state-of-the-art methods by a notable margin on SR tasks, with reported gains ranging from 0.3 dB to 1.2 dB in SR experiments.
- Enlarging the self-attention window size to 16 and integrating CAB substantially increases the range of utilized input pixels and improves texture reconstruction.
- Ablation studies show OCAB and CAB contribute additional PSNR gains (e.g., around 0.1–0.16 dB depending on dataset) and increase the Diffusion Index, indicating broader pixel utilization.
- The same-task pre-training strategy on ImageNet further boosts performance, underscoring the importance of large-scale data for SR Transformer models.
- HAT scales effectively with bigger variants (e.g., HAT-L) and extends state-of-the-art performance to real-world SR, Gaussian denoising, and compression artifacts reduction.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。