Attention in Attention Network for Image Super-Resolution

Haoyu Chen, Jinjin Gu, Zhi Zhang
4/19/2021
115 citations
cs.CV
transformer-attention

Official code: haoyuc/A2N (88 stars, Python, PyTorch, last commit 2021-10-10).

Abstract

Convolutional neural networks have allowed remarkable advances in single image super-resolution (SISR) over the last decade. Among recent advances in SISR, attention mechanisms are crucial for high-performance SR models.

Show full abstract

However, the attention mechanism remains unclear on why and how it works in SISR. In this work, we attempt to quantify and visualize attention mechanisms in SISR and show that not all attention modules are equally beneficial. We then propose attention in attention network (A$^2$N) for more efficient and accurate SISR. Specifically, A$^2$N consists of a non-attention branch and a coupling attention branch. A dynamic attention module is proposed to generate weights for these two branches to suppress unwanted attention adjustments dynamically, where the weights change adaptively according to the input features. This allows attention modules to specialize to beneficial examples without otherwise penalties and thus greatly improve the capacity of the attention network with few parameters overhead. Experimental results demonstrate that our final model A$^2$N could achieve superior trade-off performances comparing with state-of-the-art networks of similar sizes. Codes are available at https://github.com/haoyuc/A2N.

View on arXivView PDF

Code Implementations(1)

haoyuc/A2NOfficial100%
PyTorch

PyTorch code for our paper "Attention in Attention Network for Image Super-Resolution"

8818PythonApr 16, 20215 years ago
attention-mechanismimage-processingimage-restorationimage-super-resolutionpytorch+1 more

Similar Papers

Cite this paper

@article{chen2021attention,
  title  = {Attention in Attention Network for Image Super-Resolution},
  author = {Haoyu Chen and Jinjin Gu and Zhi Zhang},
  year   = {2021},
  eprint = {2104.09497},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.09497}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.09497.svg)](https://codeofpaper.com/paper/2104.09497)

Discussion