[Paper Review] GPT-RE: In-context Learning for Relation Extraction using Large Language Models
GPT-RE enhances in-context learning for relation extraction by using task-aware demonstration retrieval and gold label-induced reasoning, achieving SOTA on Semeval and SciERC and competitive results on TACRED and ACE05.
In spite of the potential for ground-breaking achievements offered by large language models (LLMs) (e.g., GPT-3), they still lag significantly behind fully-supervised baselines (e.g., fine-tuned BERT) in relation extraction (RE). This is due to the two major shortcomings of LLMs in RE: (1) low relevance regarding entity and relation in retrieved demonstrations for in-context learning; and (2) the strong inclination to wrongly classify NULL examples into other pre-defined labels. In this paper, we propose GPT-RE to bridge the gap between LLMs and fully-supervised baselines. GPT-RE successfully addresses the aforementioned issues by (1) incorporating task-specific entity representations in demonstration retrieval; and (2) enriching the demonstrations with gold label-induced reasoning logic. We evaluate GPT-RE on four widely-used RE datasets, and observe that GPT-RE achieves improvements over not only existing GPT-3 baselines, but also fully-supervised baselines. Specifically, GPT-RE achieves SOTA performances on the Semeval and SciERC datasets, and competitive performances on the TACRED and ACE05 datasets.
Motivation & Objective
- Motivate improving in-context learning (ICL) for relation extraction (RE) beyond baseline GPT-3 approaches.
- Address two main limitations of ICL for RE: low relevance of demonstrations and lack of input-label explanation.
- Propose a dual strategy: task-aware demonstration retrieval and gold label-induced reasoning to enrich demonstrations.
- Demonstrate that task-aware retrieval and reasoning yield improvements over GPT-3 baselines and competitive or superior fully supervised baselines across multiple datasets.
Proposed method
- Formulate RE as a language generation task within an in-context learning framework.
- Introduce task-aware retrieval to select high-quality demonstrations using representations that emphasize entities and relations (entity-prompted sentence embedding; fine-tuned relation representations).
- Enrich demonstrations with gold label-induced reasoning to provide chain-of-thought–like clues supporting each labeled example.
- Construct prompts with instructions, task-aware demonstrations (x_i, y_i, r_i), and test input x_test for GPT-3 to predict y_test.
- Optionally incorporate a reasoning module to further improve demonstration quality, especially in low-shot settings.
Experimental results
Research questions
- RQ1Can task-aware demonstration retrieval improve GPT-3 ICL for relation extraction compared to sentence-level or random demonstrations?
- RQ2Does adding gold label-induced reasoning to demonstrations enhance GPT-3’s ability to align input and label for RE tasks?
- RQ3How do GPT-RE variants perform relative to fully supervised RE baselines on standard RE datasets across domains?
- RQ4What is the impact of null (no-relation) examples on GPT-3 RE and can task-aware retrieval mitigate overprediction of nulls?
- RQ5How do low-resource scenarios affect the relative gains of GPT-RE versus fine-tuned models?
Key findings
- GPT-RE variants outperform GPT-3 baselines that rely on random or sentence-level demonstrations.
- Task-aware retrieval (entity-prompted embedding and fine-tuned relation representations) yields higher Micro-F1 than GPT-Sent across datasets.
- Gold label-induced reasoning consistently boosts performance, particularly with fewer demonstrations.
- GPT-RE_FT (fine-tuned relation representation retriever) achieves state-of-the-art results on Semeval and SciERC and competitive results on TACRED and ACE05.
- Reasoning-enhanced demonstrations improve GPT-3 performance by around 2% Micro-F1 in some settings, with larger gains in low-shot regimes.
- GPT-RE methods mitigate the overprediction of null examples compared to vanilla GPT-3 baselines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.