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

Jiaqi Bai, Zhao Yan, Jian Yang, Xinnian Liang, Hongcheng Guo +1 more
6/27/2023
cs.CL

No official code found. Best implementation: jiaqi5598/KnowPrefix-Tuning (8 stars, last commit 2023-07-14).

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 Knowledgeable Prefix 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.

View on arXivView PDF

Code Implementations(1)

80PythonJun 20, 20233 years ago

Similar Papers

Cite this paper

@article{bai2023knowprefixtuning,
  title  = {KnowPrefix-Tuning: A Two-Stage Prefix-Tuning Framework for Knowledge-Grounded Dialogue Generation},
  author = {Jiaqi Bai and Zhao Yan and Jian Yang and Xinnian Liang and Hongcheng Guo and Zhoujun Li},
  year   = {2023},
  eprint = {2306.15430},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.15430v1}
}

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/2306.15430.svg)](https://codeofpaper.com/paper/2306.15430)

Discussion