arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1605.09090cs.CL
收藏

基于双向LSTM模型和内注意力的自然语言推理学习

Learning Natural Language Inference using Bidirectional LSTM model and Inner-Attention

Harbin Institute of Technology(哈尔滨工业大学)

Yang Liu, Chengjie Sun, Lei Lin, Xiaolong Wang

摘要:

本文提出了一种基于句子编码的文本蕴涵识别模型。在我们的方法中,句子的编码是一个两阶段的过程。首先,在单词级双向LSTM(biLSTM)上使用平均池化来生成第一阶段的句子表示。第二,采用注意力机制代替平均池,提高了句子的表征能力。我们利用句子的第一阶段表征来关注源句中出现的词,而不是用目标句来关注源句中的词,这在本文中被称为“内注意”。在斯坦福自然语言推理语料库上的实验证明了“内注意”机制的有效性。由于参数数量较少,我们的模型大大优于现有的基于最佳句子编码的方法。

英文摘要:

In this paper, we proposed a sentence encoding-based model for recognizing text entailment. In our approach, the encoding of sentence is a two-stage process. Firstly, average pooling was used over word-level bidirectional LSTM (biLSTM) to generate a first-stage sentence representation. Secondly, attention mechanism was employed to replace average pooling on the same sentence for better representations. Instead of using target sentence to attend words in source sentence, we utilized the sentence's first-stage representation to attend words appeared in itself, which is called "Inner-Attention" in our paper . Experiments conducted on Stanford Natural Language Inference (SNLI) Corpus has proved the effectiveness of "Inner-Attention" mechanism. With less number of parameters, our model outperformed the existing best sentence encoding-based approach by a large margin.

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

↑