Multi-Stage Prompting for Knowledgeable Dialogue Generation

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

Introduction

Building knowledgeable conversational agents traditionally relies on massive external databases and complex retrieval models. However, as databases scale, the "curse of retrieval" often leads to irrelevant information being fetched. Furthermore, finetuning massive Large Language Models (LLMs) like Megatron-Turing NLG 530B is often computationally prohibitive or impossible due to API-only access. Researchers from NVIDIA and HKUST propose Multi-Stage Dialogue Prompting (MSDP) to address these challenges by "unlocking" the knowledge already stored within the parameters of pretrained LLMs.

The MSDP Framework

MSDP is a two-stage pipeline designed to generate knowledgeable responses without task-specific finetuning. The framework shifts the burden from external retrieval to internal generation.

Overview of the Multi-Stage Dialogue Prompting (MSDP) framework, illustrating the transition from knowledge generation to response generation.

Stage 1: Knowledge Generation

Instead of querying a static database like Wikipedia, MSDP prompts the LLM to generate relevant facts itself. To ensure these facts are contextually grounded, the system uses query-based sample selection. A small local database of dialogue examples is searched using a sentence encoder to find semantically similar instances. These instances are then provided as few-shot prompts to guide the LLM's internal "memory retrieval."

Stage 2: Response Generation

Once the knowledge is generated, it is combined with the dialogue history. The LLM is prompted a second time to produce the final response. A critical component of this stage is the use of comprehensive connection tokens—natural language markers like "Systems:", "Users:", and "We know that:"—which help the model distinguish between conversation flow and factual grounding.

Experimental Evaluation

The framework was evaluated on the Wizard of Wikipedia (WoW) and Wizard of Internet (WoI) datasets. Notably, the WoW training set was used only for prompt examples, maintaining a zero-shot/few-shot setting relative to the model weights. This allows the model to generalize better to "unseen" topics compared to traditional retrieval-based systems.

Performance and Scaling

The results indicate that LLMs act as highly effective implicit knowledge bases. At the 530B parameter scale, MSDP achieved a factual correctness score of 3.94/4.0 on unseen topics. Human evaluations further confirmed that MSDP responses were more engaging and knowledgeable than those from finetuned models by up to 5% and 10%, respectively.

Performance metrics (F1, R-L, and KF1 scores) across different numbers of few-shot samples, demonstrating the model's sensitivity to prompt construction.

As shown in the empirical analysis, the performance of the model is sensitive to the number of samples used in the prompt construction. While more samples generally improve knowledge-related metrics (KF1), there is a balancing point for general dialogue quality (F1) and R-L scores.

Discussion and Limitations

MSDP demonstrates that prompting can outperform finetuning for knowledge-heavy tasks. However, the approach introduces higher inference latency because it requires two passes through the model (one for knowledge, one for the response). Additionally, while scaling to 530B parameters significantly reduces hallucinations, the model remains sensitive to the quality of the few-shot examples provided. Future research may focus on synthetic prompt generation to further reduce reliance on external example databases.

Conclusion

Multi-Stage Dialogue Prompting represents a significant step toward leveraging the latent knowledge of LLMs. By decomposing the task into explicit knowledge generation and response crafting, MSDP achieves state-of-the-art performance on out-of-domain topics without the need for expensive finetuning or massive retrieval infrastructures.

Summary updated

BibTeX
@inproceedings{liu2022multi,
  author = {Zihan Liu and Mostofa Patwary and Ryan Prenger and Shrimai Prabhumoye and Wei Ping and Mohammad Shoeybi and Bryan Catanzaro},
  title = {{Multi-Stage Prompting for Knowledgeable Dialogue Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.104},
}
Figure