Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning

Xiang Chen, Lei Li, Ningyu Zhang, Xiaozhuan Liang, Shumin Deng +4 more
5/29/2022
69 citations
cs.CLcs.AIcs.IR
rag

Official code: zjunlp/PromptKG (736 stars, Python, MIT, PyTorch, last commit 2024-03-22).

Abstract

Prompt learning approaches have made waves in natural language processing by inducing better few-shot performance while they still follow a parametric-based learning paradigm; the oblivion and rote memorization problems in learning may encounter unstable generalization issues. Specifically, vanilla prompt learning may struggle to utilize atypical instances by rote during fully-supervised training or overfit shallow patterns with low-shot data.

Show full abstract

To alleviate such limitations, we develop RetroPrompt with the motivation of decoupling knowledge from memorization to help the model strike a balance between generalization and memorization. In contrast with vanilla prompt learning, RetroPrompt constructs an open-book knowledge-store from training instances and implements a retrieval mechanism during the process of input, training and inference, thus equipping the model with the ability to retrieve related contexts from the training corpus as cues for enhancement. Extensive experiments demonstrate that RetroPrompt can obtain better performance in both few-shot and zero-shot settings. Besides, we further illustrate that our proposed RetroPrompt can yield better generalization abilities with new datasets. Detailed analysis of memorization indeed reveals RetroPrompt can reduce the reliance of language models on memorization; thus, improving generalization for downstream tasks. Code is available in https://github.com/zjunlp/PromptKG/tree/main/research/RetroPrompt.

View on arXivView PDF

Code Implementations(1)

zjunlp/PromptKGOfficial100%
PyTorchMIT

PromptKG Family: a Gallery of Prompt Learning & KG-related research works, toolkits, and paper-list.

73676Python, ShellDec 18, 20212 years agoMIT
awsome-listdemo-tuningdialoguegenkgcknowledge-graph+15 more

Similar Papers

Cite this paper

@article{chen2022decoupling,
  title  = {Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning},
  author = {Xiang Chen and Lei Li and Ningyu Zhang and Xiaozhuan Liang and Shumin Deng and Chuanqi Tan and Fei Huang and Luo Si and Huajun Chen},
  year   = {2022},
  eprint = {2205.14704},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14704}
}

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

Discussion