Restormer: Efficient Transformer for High-Resolution Image Restoration

Syed Waqas Zamir, Aditya Arora, Salman H. Khan, Munawar Hayat, Fahad Shahbaz Khan, Ming-Hsuan Yang

Abstract

Image restoration tasks such as deblurring, denoising, and deraining require models that can capture long-range dependencies while remaining computationally feasible for high-resolution inputs. While Transformers offer superior modeling capabilities compared to traditional CNNs, their standard self-attention mechanism suffers from quadratic complexity. We present Restormer, an efficient Transformer architecture that utilizes multi-dconv head transposed attention to achieve linear complexity. By computing attention across channels rather than spatial dimensions, Restormer achieves state-of-the-art performance across 16 benchmark datasets while significantly reducing computational overhead.

Introduction

Restoring clean images from degraded versions (e.g., blurry, noisy, or rainy) is a cornerstone of computer vision. Historically, Convolutional Neural Networks (CNNs) have dominated this field. However, CNNs are limited by their local receptive fields and static weights, which struggle to adapt to varying image content. Transformers address these issues through self-attention, enabling global context modeling.

The primary hurdle for Transformers in image restoration is the quadratic complexity of standard self-attention. As image resolution increases, memory and computation requirements grow exponentially, making them impractical for high-resolution (e.g., 4K) images. Restormer overcomes this by redesigning the Transformer block for efficiency and restoration-specific needs.

Methods

Restormer introduces several architectural innovations to balance performance and efficiency.

Multi-Dconv Head Transposed Attention (MDTA)

The core innovation is MDTA, which shifts the attention mechanism from the spatial domain to the channel domain. Instead of calculating a massive pixel-to-pixel attention map, Restormer computes attention between feature channels. Since the number of channels is typically much smaller than the number of pixels in high-resolution images, the complexity becomes linear. To maintain spatial awareness, depth-wise convolutions are integrated to capture local context before the channel-wise attention is applied.

Gated-Dconv Feed-Forward Network (GDFN)

To further refine features, Restormer employs a Gated-Dconv Feed-Forward Network. Unlike standard feed-forward layers, GDFN uses a gating mechanism with two parallel paths. One path acts as a filter for the other, allowing the network to suppress irrelevant information and focus on the fine textures essential for high-quality restoration.

The Restormer architecture, highlighting the Multi-Dconv Head Transposed Attention (MDTA) and Gated-Dconv Feed-Forward Network (GDFN) modules.

Progressive Learning

Training on high-resolution images is computationally expensive. Restormer utilizes a progressive learning strategy: training begins on small image patches with large batches and gradually transitions to larger patches with smaller batches. This curriculum-based approach allows the model to learn both fine-grained textures and large-scale structures effectively.

Key Results and Discussion

Restormer was evaluated on 16 benchmark datasets covering deraining, motion/defocus deblurring, and denoising.

Performance and Efficiency

Restormer consistently outperformed previous state-of-the-art (SOTA) models. In deraining, it achieved an average PSNR improvement of 1.05 dB. In real-world denoising (SIDD dataset), it was the first method to surpass the 40 dB PSNR milestone.

Crucially, these gains come with significantly lower computational costs. As shown in Figure 3, Restormer maintains higher PSNR values across various tasks while utilizing fewer FLOPs than competitors like MPRNet and IPT. For instance, it is 29x faster and uses 4.4x fewer parameters than the IPT Transformer model.

Performance comparison of Restormer against other SOTA methods across four restoration tasks. Restormer achieves superior PSNR with significantly lower computational complexity (FLOPs).

Qualitative Insights

Visual evaluations demonstrate that Restormer excels at preserving fine details, such as hair or fabric textures, which are often smoothed over by other denoising or deblurring algorithms. This success is attributed to the hybrid approach of embedding convolutions within Transformer blocks, leveraging the strengths of both architectures.

Conclusion

Restormer demonstrates that channel-wise attention is a powerful and efficient alternative to spatial attention for image restoration. By achieving linear complexity, it brings the benefits of Transformers to high-resolution imaging. While the model is deep, its efficiency marks a significant step toward practical, high-performance restoration. Future work may focus on extending this architecture to video restoration and further optimizing it for mobile deployment.

Summary updated

BibTeX
@inproceedings{zamir2021restormer,
  author = {Syed Waqas Zamir and Aditya Arora and Salman H. Khan and Munawar Hayat and Fahad Shahbaz Khan and Ming-Hsuan Yang},
  title = {{Restormer: Efficient Transformer for High-Resolution Image Restoration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.00564},
}
Figure