arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.13858cs.LGcs.NEstat.ML
收藏

AReLU:基于注意力的线性校正单元

AReLU: Attention-based Rectified Linear Unit

National University of Defense Technology(国防科技大学)

Dengsheng Chen, Jun Li, Kai Xu

摘要:

逐元素激活函数通过影响表达能力和学习动力在深度神经网络中起着关键作用。基于学习的激活函数最近获得了越来越多的关注和成功。我们提出了一个新的视角,通过制定他们与元素明智的注意力机制可学习的激活函数。在每个网络层中,我们设计了一个注意力模块,该模块学习预激活特征图的基于元素、基于符号的注意力图。注意力地图基于元素的符号来缩放元素。将注意力模块与整流线性单元(ReLU)相结合,可以放大正元素,抑制负元素,两者都具有学习的数据自适应参数。我们硬币产生的激活函数基于注意力的整流线性单元(AReLU)。注意力模块本质上是学习输入的激活部分的元素残差,因为ReLU可以被视为一种身份转换。这使得网络训练更能抵抗梯度消失。学习的注意激活导致特征图的相关区域的集中激活。通过广泛的评估,我们表明,AReLU显着提高了大多数主流网络架构的性能,每层仅引入两个额外的可学习参数。值得注意的是,AReLU有助于在小学习率下进行快速网络训练,这使得它特别适合迁移学习和元学习的情况。我们的源代码已经发布(请参阅https://github.com/densechen/AReLU)。

英文摘要:

Element-wise activation functions play a critical role in deep neural networks via affecting the expressivity power and the learning dynamics. Learning-based activation functions have recently gained increasing attention and success. We propose a new perspective of learnable activation function through formulating them with element-wise attention mechanism. In each network layer, we devise an attention module which learns an element-wise, sign-based attention map for the pre-activation feature map. The attention map scales an element based on its sign. Adding the attention module with a rectified linear unit (ReLU) results in an amplification of positive elements and a suppression of negative ones, both with learned, data-adaptive parameters. We coin the resulting activation function Attention-based Rectified Linear Unit (AReLU). The attention module essentially learns an element-wise residue of the activated part of the input, as ReLU can be viewed as an identity transformation. This makes the network training more resistant to gradient vanishing. The learned attentive activation leads to well-focused activation of relevant regions of a feature map. Through extensive evaluations, we show that AReLU significantly boosts the performance of most mainstream network architectures with only two extra learnable parameters per layer introduced. Notably, AReLU facilitates fast network training under small learning rates, which makes it especially suited in the case of transfer learning and meta learning. Our source code has been released (see https://github.com/densechen/AReLU).

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

↑