arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.10336cs.CV
收藏

注意力在图像恢复中的潜力有多大?

How Powerful Potential of Attention on Image Restoration?

Sun Yat-sen University(中山大学);The Hong Kong Polytechnic University(香港理工大学);Nanjing University of Science and Technology(南京理工大学);National University of Singapore(新加坡国立大学);Dalian University of Technology(大连理工大学)

Cong Wang, Jinshan Pan, Yeying Jin, Liyan Wang, Wei Wang, Gang Fu, Wenqi Ren, Xiaochun Cao

AI总结:

本文实证探索了去除前馈网络的纯注意力机制在图像恢复中的潜力,提出连续缩放注意力(CSAttn),在多个任务上超越CNN和Transformer基线。

摘要:

Transformer已在图像恢复任务中展现出有效性。现有的Transformer架构通常包含两个基本组件:多头自注意力和前馈网络(FFN)。前者捕获长距离像素依赖关系,而后者使模型能够学习数据中的复杂模式和关系。先前的研究表明,FFN是键值记忆\cite{geva2020transformer},在现代Transformer架构中至关重要。在本文中,我们进行了一项实证研究,以探索不使用FFN的注意力机制的潜力,并提供新颖的结构来证明去除FFN对于图像恢复是灵活的。具体来说,我们提出了连续缩放注意力(CSAttn),一种在不使用FFN的情况下分三个阶段连续计算注意力的方法。为了实现具有竞争力的性能,我们在注意力内部提出了一系列关键组件。我们的设计提供了对注意力机制的更深入观察,并揭示了一些简单操作可以显著影响模型性能。我们将CSAttn应用于多个图像恢复任务,并表明我们的模型可以胜过基于CNN和基于Transformer的图像恢复方法。

英文摘要:

Transformers have demonstrated their effectiveness in image restoration tasks. Existing Transformer architectures typically comprise two essential components: multi-head self-attention and feed-forward network (FFN). The former captures long-range pixel dependencies, while the latter enables the model to learn complex patterns and relationships in the data. Previous studies have demonstrated that FFNs are key-value memories \cite{geva2020transformer}, which are vital in modern Transformer architectures. In this paper, we conduct an empirical study to explore the potential of attention mechanisms without using FFN and provide novel structures to demonstrate that removing FFN is flexible for image restoration. Specifically, we propose Continuous Scaling Attention (\textbf{CSAttn}), a method that computes attention continuously in three stages without using FFN. To achieve competitive performance, we propose a series of key components within the attention. Our designs provide a closer look at the attention mechanism and reveal that some simple operations can significantly affect the model performance. We apply our \textbf{CSAttn} to several image restoration tasks and show that our model can outperform CNN-based and Transformer-based image restoration approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑