arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.02355cs.CLcs.AIcs.IRcs.LG
收藏

关系抽取作为开卷考试:检索增强的提示调优

Relation Extraction as Open-book Examination: Retrieval-enhanced Prompt Tuning

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

Xiang Chen, Lei Li, Ningyu Zhang, Chuanqi Tan, Fei Huang, Luo Si, Huajun Chen

AI总结:

本文将关系抽取建模为开卷考试,提出检索增强提示调优的半参数化方法,通过查询存储的键值对实例辅助推理,在监督和少样本设置下均取得最优性能。

摘要:

预训练语言模型通过展现出色的少样本学习能力,对关系抽取做出了重要贡献。然而,用于关系抽取的提示调优方法可能仍然难以泛化到那些罕见或困难的模式。值得注意的是,先前的参数化学习范式可以被视为将训练数据当作一本书进行记忆,而将推理视为闭卷测试。在少样本实例的情况下,那些长尾或困难的模式很难被记忆在参数中。为此,我们将关系抽取视为一种开卷考试,并提出了一种新的半参数化范式,即用于关系抽取的检索增强提示调优。我们构建了一个开卷数据存储库用于检索,将基于提示的实例表示和相应的关系标签作为已记忆的键值对。在推理过程中,模型可以通过将预训练语言模型的基础输出与数据存储库上的非参数最近邻分布进行线性插值来推断关系。通过这种方式,我们的模型不仅通过训练期间存储在权重中的知识来推断关系,还通过展开和查询开卷数据存储库中的示例来辅助决策。在基准数据集上的大量实验表明,我们的方法在标准监督和少样本设置下均能达到最先进的性能。代码可在 https://github.com/zjunlp/PromptKG/tree/main/research/RetrievalRE 获取。

英文摘要:

Pre-trained language models have contributed significantly to relation extraction by demonstrating remarkable few-shot learning abilities. However, prompt tuning methods for relation extraction may still fail to generalize to those rare or hard patterns. Note that the previous parametric learning paradigm can be viewed as memorization regarding training data as a book and inference as the close-book test. Those long-tailed or hard patterns can hardly be memorized in parameters given few-shot instances. To this end, we regard RE as an open-book examination and propose a new semiparametric paradigm of retrieval-enhanced prompt tuning for relation extraction. We construct an open-book datastore for retrieval regarding prompt-based instance representations and corresponding relation labels as memorized key-value pairs. During inference, the model can infer relations by linearly interpolating the base output of PLM with the non-parametric nearest neighbor distribution over the datastore. In this way, our model not only infers relation through knowledge stored in the weights during training but also assists decision-making by unwinding and querying examples in the open-book datastore. Extensive experiments on benchmark datasets show that our method can achieve state-of-the-art in both standard supervised and few-shot settings. Code are available in https://github.com/zjunlp/PromptKG/tree/main/research/RetrievalRE.

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

↑