Transformer for Single Image Super-Resolution

Zhisheng Lu, Juncheng Li, Hong Liu, Chaoyan Huang, Linlin Zhang, Tieyong Zeng

Abstract

Single image super-resolution (SISR) has witnessed great strides with the development of deep learning. However, most existing studies focus on building more complex networks with a massive number of layers. Recently, more and more researchers start to explore the application of Transformer in computer vision tasks. However, the heavy computational cost and high GPU memory occupation of the vision Transformer cannot be ignored. In this paper, we propose a novel Efficient Super-Resolution Transformer (ESRT) for SISR. ESRT is a hybrid model, which consists of a Lightweight CNN Backbone (LCB) and a Lightweight Transformer Backbone (LTB). Among them, LCB can dynamically adjust the size of the feature map to extract deep features with a low computational cost. LTB is composed of a series of Efficient Transformers (ET), which occupies a small GPU memory occupation, thanks to the specially designed Efficient Multi-Head Attention (EMHA). Extensive experiments show that ESRT achieves competitive results with low computational costs. Compared with the original Transformer which occupies 16,057M GPU memory, ESRT only occupies 4,191M GPU memory.

Introduction

Single Image Super-Resolution (SISR) is the task of recovering a high-resolution (HR) image from a single low-resolution (LR) counterpart. While deep learning has revolutionized this field, most models fall into two camps. Heavyweight CNNs use hundreds of layers to achieve high accuracy but are computationally expensive and struggle to capture "long-term dependencies"—similar textures or patterns located far apart in an image. Conversely, Vision Transformers (ViT) are excellent at capturing global context but are notorious memory hogs. Because self-attention has quadratic complexity relative to the number of tokens (pixels/patches), processing high-resolution images often leads to "Out of Memory" errors on standard GPUs. The Efficient Super-Resolution Transformer (ESRT) aims to bridge this gap, creating a model that captures global patterns without requiring server-grade hardware.

Methods

The ESRT architecture is a hybrid "CNN + Transformer" pattern consisting of two main backbones designed for efficiency and feature preservation.

Overall architecture of ESRT

Lightweight CNN Backbone (LCB)

The LCB acts as the initial feature extractor. It utilizes High Preserving Blocks (HPB) that include a High-frequency Filtering Module (HFM). The HFM estimates high-frequency details, such as edges and textures, that are typically lost during downsampling. By focusing on these details early, the model can reduce the spatial size of feature maps in middle layers to save computation without losing critical structural information.

Lightweight Transformer Backbone (LTB)

The LTB captures long-range dependencies through a series of Efficient Transformers (ET). To mitigate the memory issues of standard Transformers, the authors designed Efficient Multi-Head Attention (EMHA) featuring:

  • Feature Splitting: Instead of calculating attention across the entire image at once, EMHA splits the feature maps into smaller segments. This reduces the size of the attention matrix significantly, lowering both memory and compute costs.
  • Unfold/Fold Operations: Unlike standard ViTs that use non-overlapping patches, ESRT uses an "unfolding" technique to treat overlapping patches as "words," preserving vital local correlation.

Key Insights and Ideas

A primary motivation for using Transformers in SISR is the "Reference Patch" intuition. Images often contain similar patches in different areas, such as repeating windows on a skyscraper. Transformers are uniquely suited to use these similar patches as references to restore blurry details in other parts of the image.

Long-range dependency modeling

Furthermore, by explicitly modeling high-frequency information via the HFM, the CNN backbone can afford to work with smaller feature maps, effectively trading redundant low-frequency data for computational efficiency. The "Feature Split" module is the critical innovation for efficiency; by splitting the Q, K, and V matrices into segments, the memory cost of the self-attention matrix drops from $N \times N$ to $(N/s) \times (N/s)$.

Key Results

ESRT delivers state-of-the-art performance with significantly reduced resource requirements:

  • Memory Efficiency: In comparative tests, a standard Transformer occupied 16,057M of GPU memory, while ESRT occupied only 4,191M—a reduction of roughly 74%.
  • Competitive Accuracy: Despite having fewer parameters than models like RCAN (8.7M vs 16M), ESRT achieved similar or better PSNR scores, particularly on the Urban100 dataset where its ability to model long-range patterns provided a distinct advantage.
  • Visual Quality: Qualitative results demonstrate that ESRT reconstructs sharper edges and more realistic textures compared to other lightweight models like CARN or IMDN, which often produce over-smoothed results.

Conclusion

ESRT represents a significant step toward making Transformer-based image restoration practical. While it is significantly more efficient than standard Transformers, it remains slower than the fastest "pure" CNN lightweight models. There is a clear trade-off: adding more Efficient Transformer (ET) blocks improves performance but increases the parameter count. Future work may involve further optimizing the Feature Split mechanism or exploring adaptive splitting factors based on image content to further push the boundaries of real-time high-fidelity super-resolution.

Summary updated

BibTeX
@inproceedings{lu2021transformer,
  author = {Zhisheng Lu and Juncheng Li and Hong Liu and Chaoyan Huang and Linlin Zhang and Tieyong Zeng},
  title = {{Transformer for Single Image Super-Resolution}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
}
Figure