A Low-Resolution Image is Worth 1x1 Words: Enabling Fine Image Super-Resolution with Transformers and TaylorShift

Sanath Budakegowdanadoddi Nagaraju, Brian B. Moser, Tobias Christian Nauen, Stanislav Frolov, Federico Raue, Andreas Dengel · DOI

Introduction

Image Super-Resolution (SR) aims to reconstruct high-resolution (HR) details from low-resolution (LR) inputs. While Transformer-based models have surpassed traditional CNNs, they face significant scaling bottlenecks. Standard self-attention computational costs grow quadratically ($N^2$) with the number of pixels, forcing researchers to use small $8 \times 8$ windows or group pixels into larger patches. These constraints limit the model's contextual understanding and often lead to "blurry patches" where fine-grained textures are lost.

The TaylorIR Framework

To address these limitations, the authors propose TaylorIR, a framework designed to enable pixel-level reasoning without astronomical memory costs. It introduces two primary innovations:

  • 1x1 Patch Embeddings: Unlike standard models that group pixels, TaylorIR treats every individual pixel as an independent token. This ensures the model reasons at the highest possible resolution, preserving pixel-level fidelity.
  • TaylorShift Attention: This mechanism replaces the standard softmax function with a second-order Taylor series expansion. By leveraging the associative property to reorder matrix operations, TaylorShift reduces complexity from quadratic to near-linear.
The TaylorIR architecture treats each pixel as a 1x1 word and uses TaylorShift to reduce computational overhead.

By integrating these components into the TaylorSwinIR model, the researchers expanded the attention window from $8 \times 8$ (64 tokens) to a massive $48 \times 48$ (2,304 tokens), allowing the model to capture significantly more structural context without crashing the GPU.

Key Results and Efficiency

Evaluated on standard benchmarks like DIV2K, Urban100, and Manga109, TaylorSwinIR achieved state-of-the-art performance. Notably, on the Urban100 dataset, it delivered a PSNR gain of +0.31 dB over the baseline SwinIR.

The efficiency gains are particularly striking. By swapping standard attention for TaylorShift, the model achieves massive memory savings, making high-resolution processing feasible on standard hardware. Depending on the dataset, VRAM usage was reduced by 37% to 85%.

Comparison of memory usage between the baseline SwinIR and the TaylorIR-enhanced version, showing a reduction from 11.7 GB to 4.87 GB.

Qualitative analysis confirms that these technical improvements translate to visual quality, with TaylorSwinIR producing sharper edges and more accurate textures in complex scenes compared to previous methods.

Conclusion

TaylorIR demonstrates that mathematically approximating the attention mechanism can unlock significant performance and efficiency gains in image restoration. By enabling 1x1 pixel tokens and larger context windows, it sets a new standard for fine-grained super-resolution. Future work will explore hybrid CNN-Transformer architectures and optimization for edge device deployment.

Summary updated

BibTeX
@misc{nagaraju2024low,
  author = {Sanath Budakegowdanadoddi Nagaraju and Brian B. Moser and Tobias Christian Nauen and Stanislav Frolov and Federico Raue and Andreas Dengel},
  title = {{A Low-Resolution Image is Worth 1x1 Words: Enabling Fine Image Super-Resolution with Transformers and TaylorShift}},
  year = {2024},
  eprint = {2411.10231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10231},
}
Figure