arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.08008cs.CVcs.LGeess.IV
收藏

更少的内存,更快的速度:用于图像重建的改进自我注意模块

Less Memory, Faster Speed: Refining Self-Attention Module for Image Reconstruction

Beijing Institute of Technology(北京理工大学)

Zheng Wang, Jianwu Li, Ge Song, Tieling Li

摘要:

自注意(Self-attention,SA)机制可以有效地捕捉深度神经网络中的全局依赖关系,并已成功应用于自然语言处理和图像处理。然而,用于图像重建的SA模块具有较高的时间和空间复杂度,这限制了其在更高分辨率图像中的应用。本文对自注意生成对抗网络(SAGAN)中的SA模块进行了改进,通过调整非局部操作、修改SA模块中单元之间的连通性以及重新实现SA模块的计算模式,使其空间复杂度从$\text{O}(n^2)$降低到$\text{O}(n)$,但仍与原SA模块等价.进一步,我们探索了该模块背后的原理,发现我们的模块是一种特殊的通道注意力机制。基于两个图像重建基准数据集的实验结果表明,在相同的计算环境下,两种模型的图像重建效果相当,但所提模型运行速度更快,占用内存空间更少。

英文摘要:

Self-attention (SA) mechanisms can capture effectively global dependencies in deep neural networks, and have been applied to natural language processing and image processing successfully. However, SA modules for image reconstruction have high time and space complexity, which restrict their applications to higher-resolution images. In this paper, we refine the SA module in self-attention generative adversarial networks (SAGAN) via adapting a non-local operation, revising the connectivity among the units in SA module and re-implementing its computational pattern, such that its time and space complexity is reduced from $\text{O}(n^2)$ to $\text{O}(n)$, but it is still equivalent to the original SA module. Further, we explore the principles behind the module and discover that our module is a special kind of channel attention mechanisms. Experimental results based on two benchmark datasets of image reconstruction, verify that under the same computational environment, two models can achieve comparable effectiveness for image reconstruction, but the proposed one runs faster and takes up less memory space.

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

↑