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

MEGATRON-CNTRL:使用大规模语言模型的具有外部知识的可控故事生成

MEGATRON-CNTRL: Controllable Story Generation with External Knowledge Using Large-Scale Language Models

NVIDIA(英伟达)

Peng Xu, Mostofa Patwary, Mohammad Shoeybi, Raul Puri, Pascale Fung, Anima Anandkumar, Bryan Catanzaro

摘要:

现有的预训练大语言模型已经显示出无与伦比的生成能力。然而,它们是不可控制的。在本文中,我们提出了MEGATRON-CNTRL,一个新的框架,使用大规模的语言模型,并增加了控制文本生成,将外部知识库。我们的框架包括一个关键字预测器,知识检索器,上下文知识排名,和一个条件文本生成器。由于我们无法获得知识排名器的地面真相监督,因此我们利用了来自句子嵌入的弱监督。实证结果表明,我们的模型生成更流畅,一致和连贯的故事,重复较少,更高的多样性相比,以前的工作ROC故事数据集。我们通过替换用于生成故事的关键字并重新运行生成过程来展示我们模型的可控性。人工评估结果显示,这些故事中有77.5%被新关键字成功控制。此外,通过将我们的模型从1.24亿参数扩展到83亿参数,我们证明了更大的模型可以提高生成质量(从74.5%到93.0%的一致性)和可控性(从77.5%到91.5%)。

英文摘要:

Existing pre-trained large language models have shown unparalleled generative capabilities. However, they are not controllable. In this paper, we propose MEGATRON-CNTRL, a novel framework that uses large-scale language models and adds control to text generation by incorporating an external knowledge base. Our framework consists of a keyword predictor, a knowledge retriever, a contextual knowledge ranker, and a conditional text generator. As we do not have access to ground-truth supervision for the knowledge ranker, we make use of weak supervision from sentence embedding. The empirical results show that our model generates more fluent, consistent, and coherent stories with less repetition and higher diversity compared to prior work on the ROC story dataset. We showcase the controllability of our model by replacing the keywords used to generate stories and re-running the generation process. Human evaluation results show that 77.5% of these stories are successfully controlled by the new keywords. Furthermore, by scaling our model from 124 million to 8.3 billion parameters we demonstrate that larger models improve both the quality of generation (from 74.5% to 93.0% for consistency) and controllability (from 77.5% to 91.5%).

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

↑