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

基于动态词汇的神经反应生成

Neural Response Generation with Dynamic Vocabularies

State Key Lab of Software Development Environment, Beihang University(北京航空航天大学软件开发环境国家重点实验室);Microsoft Research(微软研究院)

Yu Wu, Wei Wu, Dejian Yang, Can Xu, Zhoujun Li, Ming Zhou

摘要:

我们研究了聊天机器人中开放域会话的响应生成。现有的方法假设响应中的单词是从相同的词汇表中生成的,而不管它们的输入,这不仅使它们容易受到通用模式和不相关噪声的影响,而且还导致解码的高成本。我们提出了一个动态词汇序列到序列(DVS2S)模型,允许每个输入拥有自己的词汇解码。在训练中,词汇构建和响应生成是通过使用蒙特卡洛抽样方法最大化真实目标的下限来共同学习的。在推理中,该模型利用单词预测模型为输入动态地分配小词汇,并且仅利用小词汇进行解码。由于采用了动态词汇机制,DVS 2S在生成过程中避开了大量的类属模式和无关词,同时具有高效的解码能力。自动度量和人工注释的实验结果表明,DVS 2S在响应质量方面可以显着优于最先进的方法,但与最有效的基线相比,只需要60%的解码时间。

英文摘要:

We study response generation for open domain conversation in chatbots. Existing methods assume that words in responses are generated from an identical vocabulary regardless of their inputs, which not only makes them vulnerable to generic patterns and irrelevant noise, but also causes a high cost in decoding. We propose a dynamic vocabulary sequence-to-sequence (DVS2S) model which allows each input to possess their own vocabulary in decoding. In training, vocabulary construction and response generation are jointly learned by maximizing a lower bound of the true objective with a Monte Carlo sampling method. In inference, the model dynamically allocates a small vocabulary for an input with the word prediction model, and conducts decoding only with the small vocabulary. Because of the dynamic vocabulary mechanism, DVS2S eludes many generic patterns and irrelevant words in generation, and enjoys efficient decoding at the same time. Experimental results on both automatic metrics and human annotations show that DVS2S can significantly outperform state-of-the-art methods in terms of response quality, but only requires 60% decoding time compared to the most efficient baseline.

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

↑