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

知识对话生成的多阶段算法

Multi-Stage Prompting for Knowledgeable Dialogue Generation

NVIDIA(英伟达)

Zihan Liu, Mostofa Patwary, Ryan Prenger, Shrimai Prabhumoye, Wei Ping, Mohammad Shoeybi, Bryan Catanzaro

摘要:

现有的基于知识的对话系统通常使用预先训练的语言模型(LM)和大规模知识库的微调版本。这些模型通常无法概括知识库之外的主题,并且每次需要微调时都需要维护单独的潜在大型检查点。在本文中,我们的目标是通过利用存储在预训练LM中的固有知识及其强大的生成能力来解决这些限制。我们提出了一个多阶段的提示方法,从一个单一的预训练LM产生知识渊博的反应。我们首先提示LM根据对话上下文生成知识。然后,我们进一步提示它根据对话上下文和先前生成的知识生成响应。结果表明,我们的知识生成器优于国家的最先进的检索为基础的模型的5.8%,结合知识的相关性和正确性。此外,我们的多阶段提示在响应知识性和参与度方面分别优于基于微调的对话模型,分别高达10%和5%。此外,我们将模型扩展到5300亿个参数,并表明较大的LM将生成正确性分数提高了10%,响应相关性,知识性和参与度提高了10%。我们的代码可在https://github.com/NVIDIA/Megatron-LM上获取。

英文摘要:

Existing knowledge-grounded dialogue systems typically use finetuned versions of a pretrained language model (LM) and large-scale knowledge bases. These models typically fail to generalize on topics outside of the knowledge base, and require maintaining separate potentially large checkpoints each time finetuning is needed. In this paper, we aim to address these limitations by leveraging the inherent knowledge stored in the pretrained LM as well as its powerful generation ability. We propose a multi-stage prompting approach to generate knowledgeable responses from a single pretrained LM. We first prompt the LM to generate knowledge based on the dialogue context. Then, we further prompt it to generate responses based on the dialogue context and the previously generated knowledge. Results show that our knowledge generator outperforms the state-of-the-art retrieval-based model by 5.8% when combining knowledge relevance and correctness. In addition, our multi-stage prompting outperforms the finetuning-based dialogue model in terms of response knowledgeability and engagement by up to 10% and 5%, respectively. Furthermore, we scale our model up to 530 billion parameters and show that larger LMs improve the generation correctness score by up to 10%, and response relevance, knowledgeability and engagement by up to 10%. Our code is available at: https://github.com/NVIDIA/Megatron-LM.

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

↑