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

05/04/2022
by   Xiang Chen, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/02/2023

How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?

Scaling language models have revolutionized widespread NLP tasks, yet li...
research
10/21/2022

Rescue Implicit and Long-tail Cases: Nearest Neighbor Relation Extraction

Relation extraction (RE) has achieved remarkable progress with the help ...
research
05/04/2022

Few-Shot Document-Level Relation Extraction

We present FREDo, a few-shot document-level relation extraction (FSDLRE)...
research
05/29/2022

Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning

Prompt learning approaches have made waves in natural language processin...
research
03/27/2023

Experiences with Remote Examination Formats in Light of GPT-4

Sudden access to the rapidly improving large language model GPT by open-...
research
06/04/2021

Entity Concept-enhanced Few-shot Relation Extraction

Few-shot relation extraction (FSRE) is of great importance in long-tail ...
research
11/30/2022

Open Relation and Event Type Discovery with Type Abstraction

Conventional closed-world information extraction (IE) approaches rely on...

Please sign up or login with your details

Forgot password? Click here to reset