arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.02074cs.CLcs.CV
收藏

使用 Transformer 模型的条件生成式聊天机器人

A Conditional Generative Chatbot using Transformer Model

Semnan University(塞姆南大学);Electrical and Computer Engineering Faculty(电气与计算机工程学院)

Nura Esfandiari, Kourosh Kiani, Razieh Rastgoo

AI总结:

本文提出一种结合条件Wasserstein生成对抗网络与Transformer模型的新架构,通过在生成器使用完整Transformer、判别器使用Transformer编码器,有效解决了序列模型的准确度问题,提升了聊天机器人的回答生成质量。

摘要:

聊天机器人作为人类用户与机器之间的通信工具,旨在根据人类输入生成合适的回答。在较新的方法中,通常结合自然语言处理和序列模型来构建生成式聊天机器人。这些模型的主要挑战在于其序列特性,导致结果准确度较低。为应对这一挑战,本文提出了一种新颖的架构,使用条件 Wasserstein 生成对抗网络和 Transformer 模型来生成聊天机器人的回答。该模型的生成器由完整的 Transformer 模型组成以生成回答,而判别器仅包含 Transformer 模型的编码器部分并后接一个分类器。据我们所知,这是首次提出在生成器和判别器模型中均嵌入 Transformer 的生成式聊天机器人。得益于 Transformer 模型的并行计算能力,所提模型在 Cornell Movie-Dialog 语料库和 Chit-Chat 数据集上的结果,证实了其使用不同评估指标相较于最先进替代方案的优越性。

英文摘要:

A Chatbot serves as a communication tool between a human user and a machine to achieve an appropriate answer based on the human input. In more recent approaches, a combination of Natural Language Processing and sequential models are used to build a generative Chatbot. The main challenge of these models is their sequential nature, which leads to less accurate results. To tackle this challenge, in this paper, a novel architecture is proposed using conditional Wasserstein Generative Adversarial Networks and a transformer model for answer generation in Chatbots. While the generator of the proposed model consists of a full transformer model to generate an answer, the discriminator includes only the encoder part of a transformer model followed by a classifier. To the best of our knowledge, this is the first time that a generative Chatbot is proposed using the embedded transformer in both generator and discriminator models. Relying on the parallel computing of the transformer model, the results of the proposed model on the Cornell Movie-Dialog corpus and the Chit-Chat datasets confirm the superiority of the proposed model compared to state-of-the-art alternatives using different evaluation metrics.

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

↑