CVAILGNov 28, 2020

Efficient Attention Network: Accelerate Attention by Searching Where to Plug

arXiv:2011.14058v212 citationsHas Code
AI Analysis

This work provides a method to improve the efficiency of existing attention modules for researchers and practitioners working with deep convolutional neural networks, particularly those concerned with computational cost and model size.

This paper addresses the problem of increased computational cost and parameters when integrating plug-and-play self-attention modules into deep CNNs. The authors propose the Efficient Attention Network (EAN) framework, which uses a sharing mechanism and reinforcement learning to search for optimal plug-in locations for attention modules, resulting in sparse connections while maintaining accuracy, reducing parameter increment, and accelerating inference.

Recently, many plug-and-play self-attention modules are proposed to enhance the model generalization by exploiting the internal information of deep convolutional neural networks (CNNs). Previous works lay an emphasis on the design of attention module for specific functionality, e.g., light-weighted or task-oriented attention. However, they ignore the importance of where to plug in the attention module since they connect the modules individually with each block of the entire CNN backbone for granted, leading to incremental computational cost and number of parameters with the growth of network depth. Thus, we propose a framework called Efficient Attention Network (EAN) to improve the efficiency for the existing attention modules. In EAN, we leverage the sharing mechanism (Huang et al. 2020) to share the attention module within the backbone and search where to connect the shared attention module via reinforcement learning. Finally, we obtain the attention network with sparse connections between the backbone and modules, while (1) maintaining accuracy (2) reducing extra parameter increment and (3) accelerating inference. Extensive experiments on widely-used benchmarks and popular attention networks show the effectiveness of EAN. Furthermore, we empirically illustrate that our EAN has the capacity of transferring to other tasks and capturing the informative features. The code is available at https://github.com/gbup-group/EAN-efficient-attention-network.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes