Skip to main content
QUICK REVIEW

[Paper Review] HAT: Hybrid Attention Transformer for Image Restoration

Xiangyu Chen, Xintao Wang|arXiv (Cornell University)|Sep 11, 2023
Advanced Image Processing TechniquesComputer Science20 citations
TL;DR

HAT introduces a Hybrid Attention Transformer that combines window-based self-attention with channel attention and an overlapping cross-attention module to activate more input pixels for superior image restoration, with a same-task pre-training strategy boosting performance.

ABSTRACT

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.

Motivation & Objective

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

Proposed method

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

Experimental results

Research questions

  • 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?

Key findings

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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.