Multi-Stage Prompting for Knowledgeable Dialogue Generation

Zihan Liu, Mostofa Patwary, Ryan Prenger, Shrimai Prabhumoye, Wei Ping +2 more
3/16/2022
cs.CLcs.AI

Official code: NVIDIA/Megatron-LM (18,293 stars, Python, last commit 2026-05-03).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

NVIDIA/Megatron-LMOfficial100%

Ongoing research training transformer models at scale

18,2934,687Python, ShellMar 21, 20197 months agoNOASSERTION
large-language-modelsmodel-paratransformers

Similar Papers

Cite this paper

@article{liu2022multistage,
  title  = {Multi-Stage Prompting for Knowledgeable Dialogue Generation},
  author = {Zihan Liu and Mostofa Patwary and Ryan Prenger and Shrimai Prabhumoye and Wei Ping and Mohammad Shoeybi and Bryan Catanzaro},
  year   = {2022},
  eprint = {2203.08745},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08745}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08745.svg)](https://codeofpaper.com/paper/2203.08745)

Discussion