arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.14704cs.CLcs.AIcs.IRcs.LG
收藏

将知识从记忆中解耦:检索增强的提示学习

Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning

Zhejiang University(浙江大学);Alibaba Group(阿里巴巴集团)

Xiang Chen, Lei Li, Ningyu Zhang, Xiaozhuan Liang, Shumin Deng, Chuanqi Tan, Fei Huang, Luo Si, Huajun Chen

AI总结:

本文提出RetroPrompt,通过构建开卷知识库并在输入、训练和推理中引入检索机制,将知识从记忆中解耦,从而在少样本和零样本场景下提升模型泛化能力并减少对记忆的依赖。

摘要:

提示学习方法在自然语言处理中引起了广泛关注,它能够带来更好的少样本性能,但仍遵循基于参数的学习范式;学习中的遗忘和死记硬背问题可能导致不稳定的泛化问题。具体而言,普通的提示学习可能在完全监督训练中难以通过死记硬背利用非典型实例,或在低样本数据下过拟合浅层模式。为了缓解这些局限,我们开发了RetroPrompt,其动机是将知识从记忆中解耦,以帮助模型在泛化与记忆之间取得平衡。与普通提示学习相比,RetroPrompt从训练实例中构建一个开卷知识库,并在输入、训练和推理过程中实现检索机制,从而使模型具备从训练语料库中检索相关上下文作为增强线索的能力。大量实验表明,RetroPrompt在少样本和零样本设置下都能获得更好的性能。此外,我们进一步说明,所提出的RetroPrompt在新数据集上能够产生更好的泛化能力。对记忆的详细分析确实揭示了RetroPrompt可以减少语言模型对记忆的依赖,从而提高下游任务的泛化能力。代码可在https://github.com/zjunlp/PromptKG/tree/main/research/RetroPrompt获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑