Skip to main content
QUICK REVIEW

[Paper Review] Revisiting Relation Extraction in the era of Large Language Models

Somin Wadhwa, Silvio Amir|arXiv (Cornell University)|May 8, 2023
Topic ModelingComputer Science12 citations
TL;DR

The paper evaluates GPT-3 and Flan-T5 for end-to-end relation extraction (RE) via generation, showing GPT-3 few-shot prompts approach SOTA, and that Flan-T5 with GPT-3–generated Chain-of-Thought explanations achieves SOTA when fine-tuned. It also addresses evaluation challenges for generative RE.

ABSTRACT

Relation extraction (RE) is the core NLP task of inferring semantic relationships between entities from text. Standard supervised RE techniques entail training modules to tag tokens comprising entity spans and then predict the relationship between them. Recent work has instead treated the problem as a \emph{sequence-to-sequence} task, linearizing relations between entities as target strings to be generated conditioned on the input. Here we push the limits of this approach, using larger language models (GPT-3 and Flan-T5 large) than considered in prior work and evaluating their performance on standard RE tasks under varying levels of supervision. We address issues inherent to evaluating generative approaches to RE by doing human evaluations, in lieu of relying on exact matching. Under this refined evaluation, we find that: (1) Few-shot prompting with GPT-3 achieves near SOTA performance, i.e., roughly equivalent to existing fully supervised models; (2) Flan-T5 is not as capable in the few-shot setting, but supervising and fine-tuning it with Chain-of-Thought (CoT) style explanations (generated via GPT-3) yields SOTA results. We release this model as a new baseline for RE tasks.

Motivation & Objective

  • Assess the capabilities of very large language models (LLMs) for end-to-end relation extraction via generation.
  • Evaluate few-shot prompting with GPT-3 and compare to supervised baselines on standard RE datasets.
  • Investigate evaluation challenges for generative RE and propose human-centric assessment to correct strict-match biases.
  • Propose a training strategy where Flan-T5 is fine-tuned with Chain-of-Thought (CoT) explanations to reach SOTA.
  • Offer a practical, open-model baseline for RE using Flan-T5 trained with GPT-3–generated CoT explanations.

Proposed method

  • Model RE as conditional text generation that outputs linearized relation triplets given a context C and input x.
  • Use in-context learning with GPT-3 (text-davinci-002) across ADE, CoNLL04, NYT datasets with carefully crafted prompts.
  • Collect human annotations to assess generated outputs against gold targets due to evaluation fragility of strict string matching.
  • Fine-tune Flan-T5 Large on standard RE supervision and additionally with CoT explanations generated by GPT-3 to improve performance.
  • Generate CoT explanations with GPT-3 to supervise Flan-T5 training, comparing standard supervision versus CoT-augmented supervision.
  • Report results using micro-F1 scores and qualitative analysis of output conformity to target schemas.
Figure 2: Examples of misclassified FPs and FNs from GPT-3 (generated under few-shot in-context prompting scheme) under traditional evaluation of generative output. In each instance, the entity-type of subject and object was correctly identified.
Figure 2: Examples of misclassified FPs and FNs from GPT-3 (generated under few-shot in-context prompting scheme) under traditional evaluation of generative output. In each instance, the entity-type of subject and object was correctly identified.

Experimental results

Research questions

  • RQ1Can few-shot prompting of GPT-3 achieve near-state-of-the-art RE performance on standard datasets?
  • RQ2Does Flan-T5 match or surpass supervised RE models in few-shot settings, and can CoT explanations boost its performance?
  • RQ3How should RE outputs from generative models be evaluated given non-exact-output formats, and what biases arise from strict matching?
  • RQ4Does training Flan-T5 with GPT-3–generated CoT explanations yield robust, state-of-the-art RE performance across multiple datasets?
  • RQ5Is it feasible to establish a smaller, open-source baseline for RE that rivals or surpasses larger models through CoT-informed supervision?

Key findings

  • Few-shot GPT-3 achieves near-SOTA performance, comparable to the best fully supervised models, with only tens of examples.
  • GPT-3 CoT explanations improve few-shot performance and reduce non-conforming outputs.
  • Flan-T5 (Large) in few-shot settings underperforms relative to GPT-3, but Flan-T5 plus GPT-3–generated CoT explanations reaches SOTA results.
  • Fine-tuning Flan-T5 with CoT explanations yields substantial gains (approximately 5–10 micro-F1 points) across ADE, CoNLL, and NYT datasets, outperforming prior fully supervised generative methods.
  • Using CoT-generated supervision for Flan-T5 provides a practical, faster-to-train path to SOTA RE without requiring GPT-3 at inference time.
  • The study highlights evaluation challenges for generative RE and demonstrates that careful human annotation improves reliability of reported gains.
Figure 3: We propose fine-tuning Flan-T5 (large) for relation extraction (RE) using standard supervision and Chain-of-Thought (CoT) reasoning elicited from GPT-3 for RE. This yields SOTA performance across all datasets considered, often by substantial margin ( $\sim$ 5 points absolute gain in F1).
Figure 3: We propose fine-tuning Flan-T5 (large) for relation extraction (RE) using standard supervision and Chain-of-Thought (CoT) reasoning elicited from GPT-3 for RE. This yields SOTA performance across all datasets considered, often by substantial margin ( $\sim$ 5 points absolute gain in F1).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.