Efficient Long-Range Attention Network for Image Super-Resolution

Xindong Zhang, Hui Zeng, Shi Guo, Lei Zhang

Abstract

The Efficient Long-Range Attention Network (ELAN) addresses the computational overhead of Transformer-based models in image super-resolution (SR). By integrating shift-convolutions and a group-wise multi-scale self-attention mechanism, ELAN achieves state-of-the-art performance while significantly reducing latency. Experimental results demonstrate that ELAN-light is up to 4.5x faster than SwinIR-light, offering a highly efficient solution for high-quality image reconstruction.

Introduction

Single Image Super-Resolution (SR) aims to reconstruct high-resolution (HR) images from low-resolution (LR) inputs. While Convolutional Neural Networks (CNNs) have long been the standard, their local receptive fields limit their ability to capture long-range dependencies. Transformers, utilizing Self-Attention (SA), overcome this limitation but introduce quadratic computational complexity relative to image resolution. Existing efficient Transformers like SwinIR employ shifted windows to mitigate this, yet they remain burdened by redundant operations and constrained window sizes.

ELAN is designed to provide the benefits of long-range attention without the typical computational "tax." It streamlines the architecture by removing non-essential components and introducing hardware-friendly operations.

Architecture and Methodology

The ELAN architecture consists of three main stages: shallow feature extraction, deep feature extraction, and HR image reconstruction. The core of the deep feature extraction stage is a sequence of Efficient Long-range Attention Blocks (ELAB).

Overall architecture of the Efficient Long-Range Attention Network (ELAN).

Efficient Long-range Attention Block (ELAB)

The ELAB is the fundamental building block of ELAN, designed to balance local and global feature extraction. It consists of two primary modules:

  1. Shift-Convolution (Shift-Conv): To replace standard 3x3 convolutions, ELAN uses 1x1 convolutions preceded by a spatial "shift" operation. By splitting feature maps into groups and shifting them in different directions (up, down, left, right), the model achieves a 3x3 receptive field with the efficiency of 1x1 operations.
  2. Group-wise Multi-scale Self-Attention (GMSA): Instead of a single window size, GMSA splits features into groups and applies varying window sizes (e.g., 4x4, 8x8, 16x16). This allows the network to capture multi-scale dependencies—from fine textures to large-scale structures—simultaneously.
Detailed components of ELAN: (b) ELAB structure, (c) Shift-Convolution, (d) Group-wise Multi-scale Self-Attention (GMSA), and (e) Accelerated Self-Attention (ASA).

Accelerated Self-Attention (ASA)

To further boost inference speed, ELAN introduces Accelerated Self-Attention. The authors replaced Layer Normalization with Batch Normalization, which can be fused into preceding convolutions during inference. Additionally, weight sharing between Query and Key transformations and a Shared Attention mechanism—where attention scores are reused across layers—drastically reduce redundant computations.

Experimental Evaluation

The model was trained on the DIV2K dataset and evaluated on standard benchmarks including Set5, Set14, B100, Urban100, and Manga109. For generalization testing, ELAN was also applied to color image denoising tasks using datasets like CBSD68 and Kodak24.

Key Results

  • Efficiency: ELAN-light achieves a 4.5x speedup in latency compared to SwinIR-light, despite having fewer parameters and lower FLOP counts.
  • Accuracy: ELAN consistently outperforms previous models in Peak Signal-to-Noise Ratio (PSNR). On the Urban100 dataset (x4 scale), ELAN-light surpassed SwinIR-light by 0.07dB and EDSR-baseline by 0.5dB.
  • Visual Fidelity: Qualitative analysis shows that ELAN excels at recovering sharp, repetitive structures, such as architectural details, where traditional CNNs often produce blur.

Discussion and Conclusion

ELAN demonstrates that many components of standard Transformers are redundant for image SR. By simplifying the attention mechanism and leveraging optimized 1x1 convolutions through shift operations, ELAN achieves a superior balance of speed and accuracy.

While ELAN is significantly faster than previous Transformer models, it remains more complex than basic lightweight CNNs. Future work may involve exploring even more hardware-efficient approximations of self-attention and scaling these efficiency gains to real-time 4K/8K video processing.

Summary updated

BibTeX
@inproceedings{zhang2022efficient,
  author = {Xindong Zhang and Hui Zeng and Shi Guo and Lei Zhang},
  title = {{Efficient Long-Range Attention Network for Image Super-Resolution}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19790-1\_39},
}
Figure