vix.ing · top · new · best · stats · spec

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

2019/05/20 by Zheng Wang, Jianwu Li, Wang, Zheng +5
Computer Science · Engineering · #Computer Vision and Pattern Recognition (cs.CV) #FOS: Computer and information sciences #FOS: Electrical engineering #Image and Video Processing (eess.IV) #Machine Learning (cs.LG) #cs.CV #cs.LG #eess.IV #electronic engineering #information engineering

paper · pdf · doi:10.48550/arxiv.1905.08008

arxiv created 2019/05/20 · arxiv updated 2019/05/21

Abstract

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 O(n2) to 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.

Related