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

自然语言句子的双边多视角匹配

Bilateral Multi-Perspective Matching for Natural Language Sentences

IBM T.J. Watson Research Center(IBM T.J. 华生研究中心)

Zhiguo Wang, Wael Hamza, Radu Florian

摘要:

自然语言句子匹配是一项基础性的技术。以前的方法要么从单个方向匹配句子,要么只应用单个粒度(逐词或逐句)匹配。在这项工作中,我们提出了一个双边多视角匹配(BiMPM)模型下的“匹配聚合”的框架。给定两个句子$P$和$Q$,我们的模型首先使用BiLSTM编码器对它们进行编码。接下来,我们在两个方向$P \rightarrow Q$和$P \leftarrow Q$上匹配两个编码的句子。在每个匹配方向上,一个句子的每个时间步从多个角度与另一个句子的所有时间步进行匹配。然后,另一个BiLSTM层用于将匹配结果聚合成固定长度的匹配向量。最后,基于匹配向量,通过全连接层进行决策。我们评估我们的模型上的三个任务:释义识别,自然语言推理和答案句子选择。在标准基准数据集上的实验结果表明,我们的模型在所有任务上都达到了最先进的性能。

英文摘要:

Natural language sentence matching is a fundamental technology for a variety of tasks. Previous approaches either match sentences from a single direction or only apply single granular (word-by-word or sentence-by-sentence) matching. In this work, we propose a bilateral multi-perspective matching (BiMPM) model under the "matching-aggregation" framework. Given two sentences $P$ and $Q$, our model first encodes them with a BiLSTM encoder. Next, we match the two encoded sentences in two directions $P \rightarrow Q$ and $P \leftarrow Q$. In each matching direction, each time step of one sentence is matched against all time-steps of the other sentence from multiple perspectives. Then, another BiLSTM layer is utilized to aggregate the matching results into a fix-length matching vector. Finally, based on the matching vector, the decision is made through a fully connected layer. We evaluate our model on three tasks: paraphrase identification, natural language inference and answer sentence selection. Experimental results on standard benchmark datasets show that our model achieves the state-of-the-art performance on all tasks.

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

↑