Attentive Convolution:为CNN配备RNN风格的注意力机制
Attentive Convolution: Equipping CNNs with RNN-style Attention Mechanisms
摘要:
在NLP中,卷积神经网络(CNN)从注意力机制中获益少于递归神经网络(RNN)。我们假设这是因为CNN中的注意力主要被实现为注意力池(即,它被应用于池化)而不是作为注意卷积(即,它被集成到卷积中)。卷积是CNN的微分器,因为它可以通过考虑输入文本t^x中单词的局部固定大小上下文来强大地建模单词的更高级别表示。在这项工作中,我们提出了一个专注的卷积网络,ATTCONV。它扩展了卷积运算的上下文范围,不仅从局部上下文中导出单词的更高级别的特征,而且还通过RNN中常用的注意力机制从非局部上下文中提取信息。该非局部上下文可以来自(i)输入文本t^x的远离的部分,或者(ii)来自额外的(即,外部)上下文t^y。在零语境(情感分析)、单语境(文本蕴涵)和多语境(声明验证)下的句子建模实验表明,ATTCONV在结合语境的句子表示学习中是有效的。特别是,注意卷积优于注意池,是流行的注意RNN的强有力竞争对手。
英文摘要:
In NLP, convolutional neural networks (CNNs) have benefited less than recurrent neural networks (RNNs) from attention mechanisms. We hypothesize that this is because the attention in CNNs has been mainly implemented as attentive pooling (i.e., it is applied to pooling) rather than as attentive convolution (i.e., it is integrated into convolution). Convolution is the differentiator of CNNs in that it can powerfully model the higher-level representation of a word by taking into account its local fixed-size context in the input text t^x. In this work, we propose an attentive convolution network, ATTCONV. It extends the context scope of the convolution operation, deriving higher-level features for a word not only from local context, but also information extracted from nonlocal context by the attention mechanism commonly used in RNNs. This nonlocal context can come (i) from parts of the input text t^x that are distant or (ii) from extra (i.e., external) contexts t^y. Experiments on sentence modeling with zero-context (sentiment analysis), single-context (textual entailment) and multiple-context (claim verification) demonstrate the effectiveness of ATTCONV in sentence representation learning with the incorporation of context. In particular, attentive convolution outperforms attentive pooling and is a strong competitor to popular attentive RNNs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。