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

DiSAN:用于无RNN/CNN语言理解的定向自注意网络

DiSAN: Directional Self-Attention Network for RNN/CNN-Free Language Understanding

Centre of Artificial Intelligence, FEIT, University of Technology Sydney(悉尼科技大学工程与信息技术学院人工智能中心);Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院)

Tao Shen, Tianyi Zhou, Guodong Long, Jing Jiang, Shirui Pan, Chengqi Zhang

摘要:

递归神经网络(RNN)和卷积神经网络(CNN)被广泛用于NLP任务,分别捕获长期和局部依赖关系。注意力机制由于其高度并行化的计算、显著减少的训练时间和建模依赖性的灵活性,最近引起了极大的兴趣。我们提出了一种新的注意力机制,其中来自输入序列的元素之间的注意力是有方向的和多维的(即,特征方面)。然后,提出了一种轻量级神经网络“方向性自注意力网络(DiSAN)"来学习句子嵌入,仅基于所提出的注意力,而不需要任何RNN/CNN结构。DiSAN仅由具有时间顺序编码的方向性自我注意组成,随后是将序列压缩成向量表示的多维注意。尽管形式简单,但DiSAN在预测质量和时间效率方面都优于复杂的RNN模型。它在所有句子编码方法中实现了最佳测试准确度,并将斯坦福自然语言推理(SNLI)数据集上的最近最佳结果提高了1.02%,并在斯坦福情感树库(SST),多流派自然语言推理上显示了最先进的测试准确度(MultiNLI),涉及成分知识的句子(SICK),客户评论,MPQA,TREC问题类型分类和主观性(SUBJ)数据集。

英文摘要:

Recurrent neural nets (RNN) and convolutional neural nets (CNN) are widely used on NLP tasks to capture the long-term and local dependencies, respectively. Attention mechanisms have recently attracted enormous interest due to their highly parallelizable computation, significantly less training time, and flexibility in modeling dependencies. We propose a novel attention mechanism in which the attention between elements from input sequence(s) is directional and multi-dimensional (i.e., feature-wise). A light-weight neural net, "Directional Self-Attention Network (DiSAN)", is then proposed to learn sentence embedding, based solely on the proposed attention without any RNN/CNN structure. DiSAN is only composed of a directional self-attention with temporal order encoded, followed by a multi-dimensional attention that compresses the sequence into a vector representation. Despite its simple form, DiSAN outperforms complicated RNN models on both prediction quality and time efficiency. It achieves the best test accuracy among all sentence encoding methods and improves the most recent best result by 1.02% on the Stanford Natural Language Inference (SNLI) dataset, and shows state-of-the-art test accuracy on the Stanford Sentiment Treebank (SST), Multi-Genre natural language inference (MultiNLI), Sentences Involving Compositional Knowledge (SICK), Customer Review, MPQA, TREC question-type classification and Subjectivity (SUBJ) datasets.

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

↑