Breaking Complexity Barriers: High-Resolution Image Restoration with Rank Enhanced Linear Attention

Yuang Ai, Huaibo Huang, Tao Wu, Qihang Fan, Ran HearXiv 2025 · DOI

Introduction

Vision Transformers (ViTs) have set new benchmarks in image restoration (IR) by capturing long-range dependencies. However, the standard softmax self-attention mechanism scales quadratically ($O(N^2)$) with the number of pixels, making high-resolution processing computationally prohibitive. While linear attention offers $O(N)$ complexity, it typically suffers from a "low-rank" bottleneck that degrades restoration quality. This paper introduces LAformer, an efficient architecture utilizing Rank Enhanced Linear Attention (RELA) to bridge the gap between efficiency and performance.

The Low-Rank Bottleneck in Linear Attention

The primary challenge with vanilla linear attention in vision tasks is the rank deficiency of the generated attention maps. In high-resolution images, the number of tokens ($N$) far exceeds the channel dimension ($C$). Mathematically, the rank of the attention matrix is bounded by $C$, leading to homogenized features that lack the expressiveness required for fine-grained image reconstruction. Previous attempts to solve this often sacrificed the global receptive field, but LAformer maintains global context while restoring feature diversity.

The LAformer Architecture

LAformer adopts a hierarchical U-Net structure designed for hardware efficiency and global context. It eliminates hardware-inefficient operations like softmax and window-shifting, making it highly optimized for modern GPU accelerators.

The LAformer architecture and its core components, including the Dual Attention (DA) Block and Rank Enhanced Linear Attention (RELA).

Rank Enhanced Linear Attention (RELA)

The core innovation, RELA, addresses the low-rank issue by injecting a lightweight depthwise convolution into the value projection. This local operation breaks the rank constraint, restoring the feature map to a full-rank state without sacrificing linear complexity. This simple addition yields a massive performance jump (e.g., +1.89 dB PSNR on SOTS-Indoor) with negligible computational cost.

Dual Attention and Gated FFN

  • Dual Attention (DA) Block: Combines RELA for spatial global context with a Channel Attention Block (CAB) for channel-wise dependencies.
  • Convolutional Gated FFN (CG-FFN): Replaces standard MLPs with depthwise convolutions and Gated Linear Units (GLU) to enhance the reconstruction of sharp, local textures, compensating for the naturally smoother attention maps of linear mechanisms.

Experimental Results

LAformer was evaluated across 7 image restoration tasks and 21 benchmarks, including deblurring, dehazing, and low-light enhancement, consistently achieving state-of-the-art (SOTA) results.

Comparison of LAformer (Ours) against SOTA Transformer-based IR methods in terms of PSNR, Latency, FLOPs, and Parameters.

On the GoPro deblurring benchmark, LAformer-B achieved a PSNR of 33.40 dB, surpassing Restormer while being significantly faster. As shown in the performance metrics, LAformer achieves a >2x speedup over recent SOTA models like HI-Diff on 720p images and maintains a significantly lower parameter count and FLOP count compared to established baselines.

Conclusion

By identifying and solving the low-rank bottleneck of linear attention, LAformer proves that softmax is not a requirement for high-performance image restoration. Its combination of $O(N)$ complexity and full-rank feature representation makes it a powerful candidate for next-generation, high-resolution vision tasks, potentially extending to video restoration and edge-device deployment.

Summary updated

BibTeX
@misc{ai2025breaking,
  author = {Yuang Ai and Huaibo Huang and Tao Wu and Qihang Fan and Ran He},
  title = {{Breaking Complexity Barriers: High-Resolution Image Restoration with Rank Enhanced Linear Attention}},
  year = {2025},
  eprint = {2505.16157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16157},
}
Figure