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

基于检索的聊天机器人多轮响应选择的顺序匹配框架

A Sequential Matching Framework for Multi-turn Response Selection in Retrieval-based Chatbots

Beihang University(北京航空航天大学);Microsoft Research(微软研究院);NanKai University(南开大学)

Yu Wu, Wei Wu, Chen Xing, Can Xu, Zhoujun Li, Ming Zhou

摘要:

我们研究了基于检索的聊天机器人中多轮对话的响应选择问题。该任务需要将响应候选与会话上下文进行匹配,其挑战包括如何识别上下文的重要部分,以及如何对上下文中的话语之间的关系进行建模。现有的匹配方法可能会丢失上下文中的重要信息,因为我们可以用统一的框架来解释它们,在该框架中,上下文被转换为固定长度的向量,而无需在匹配之前与响应进行任何交互。这一分析促使我们提出一种新的匹配框架,该框架能够充分携带上下文中的重要信息,同时对话语之间的关系进行匹配和建模。新的框架,我们称之为顺序匹配框架(SMF),让每个话语在上下文中的响应候选人在第一步进行交互,并将对匹配向量。然后,使用递归神经网络(RNN)按照上下文中的话语顺序累积匹配向量,该递归神经网络对话语之间的关系进行建模。最后用RNN的隐藏状态计算上下文响应匹配。在SMF下,我们提出了顺序卷积网络和顺序注意网络,并在两个公共数据集上进行了实验,以测试它们的性能。实验结果表明,这两种模型可以显着优于国家的最先进的匹配方法。我们还表明,这些模型是可解释的可视化,为我们提供了关于它们如何捕获和利用上下文中的重要信息进行匹配的见解。

英文摘要:

We study the problem of response selection for multi-turn conversation in retrieval-based chatbots. The task requires matching a response candidate with a conversation context, whose challenges include how to recognize important parts of the context, and how to model the relationships among utterances in the context. Existing matching methods may lose important information in contexts as we can interpret them with a unified framework in which contexts are transformed to fixed-length vectors without any interaction with responses before matching. The analysis motivates us to propose a new matching framework that can sufficiently carry the important information in contexts to matching and model the relationships among utterances at the same time. The new framework, which we call a sequential matching framework (SMF), lets each utterance in a context interacts with a response candidate at the first step and transforms the pair to a matching vector. The matching vectors are then accumulated following the order of the utterances in the context with a recurrent neural network (RNN) which models the relationships among the utterances. The context-response matching is finally calculated with the hidden states of the RNN. Under SMF, we propose a sequential convolutional network and sequential attention network and conduct experiments on two public data sets to test their performance. Experimental results show that both models can significantly outperform the state-of-the-art matching methods. We also show that the models are interpretable with visualizations that provide us insights on how they capture and leverage the important information in contexts for matching.

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

↑