KnowPrefix-Tuning: A Two-Stage Prefix-Tuning Framework for Knowledge-Grounded Dialogue Generation

Abstract

Existing knowledge-grounded conversation systems generate responses typically in a retrieve-then-generate manner. They require a large knowledge base and a strong knowledge retrieval component, which is time- and resource-consuming. In this paper, we address the challenge by leveraging the inherent knowledge encoded in the pre-trained language models (PLMs). We propose K nowledgeable P refix Tuning ( KnowPrefix-Tuning ), a two-stage tuning framework, bypassing the retrieval process in a knowledge-grounded conversation system by injecting prior knowledge into the lightweight knowledge prefix. The knowledge prefix is a sequence of continuous knowledge-specific vectors that can be learned during training. In addition, we propose a novel interactive re-parameterization mechanism that allows the prefix to interact fully with the PLM during the optimization of response generation. Experimental results demonstrate that KnowPrefix-Tuning outperforms fine-tuning and other lightweight tuning approaches, and performs comparably with strong retrieval-based baselines while being $3\times $ faster during inference (The code is available at https://github.com/fantast4ever/KnowPrefix-Tuning .)

Cite

Text

Bai et al. "KnowPrefix-Tuning: A Two-Stage Prefix-Tuning Framework for Knowledge-Grounded Dialogue Generation." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2023. doi:10.1007/978-3-031-43415-0_31

Markdown

[Bai et al. "KnowPrefix-Tuning: A Two-Stage Prefix-Tuning Framework for Knowledge-Grounded Dialogue Generation." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2023.](https://mlanthology.org/ecmlpkdd/2023/bai2023ecmlpkdd-knowprefixtuning/) doi:10.1007/978-3-031-43415-0_31

BibTeX

@inproceedings{bai2023ecmlpkdd-knowprefixtuning,
  title     = {{KnowPrefix-Tuning: A Two-Stage Prefix-Tuning Framework for Knowledge-Grounded Dialogue Generation}},
  author    = {Bai, Jiaqi and Yan, Zhao and Yang, Ze and Yang, Jian and Liang, Xinnian and Guo, Hongcheng and Li, Zhoujun},
  booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
  year      = {2023},
  pages     = {525-542},
  doi       = {10.1007/978-3-031-43415-0_31},
  url       = {https://mlanthology.org/ecmlpkdd/2023/bai2023ecmlpkdd-knowprefixtuning/}
}