[论文解读] GPT-RE: In-context Learning for Relation Extraction using Large Language Models
GPT-RE 通过使用任务感知演示检索和金标签引导的推理提升上下文学习在关系抽取上的能力,在 Semeval 和 SciERC 上达到SOTA,在 TACRED 和 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.
研究动机与目标
- 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.
提出的方法
- 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.
实验结果
研究问题
- 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?
主要发现
- 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 (PURE) 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.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。