NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Revisiting Relation Extraction in the era of Large Language Models

Somin Wadhwa, Silvio Amir, Byron C. Wallace

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing, focused on identifying semantic relationships between entities in text—for instance, determining that a specific drug causes a particular side effect in medical literature. Traditionally, RE has relied on specialized, supervised pipelines that require extensive human-labeled data. However, the emergence of Large Language Models (LLMs) has shifted the paradigm. This paper explores how LLMs can serve as the new standard for RE, achieving state-of-the-art (SOTA) results through few-shot prompting and a novel reasoning-based distillation process.

The Evaluation Trap

A core contribution of this research is identifying the "Evaluation Trap" that often obscures the true capabilities of generative models. Standard RE evaluation relies on exact string matching between model outputs and "gold standard" labels. Because LLMs are generative, they may produce a correct relation using a slightly different format or capture valid relations missed by human annotators.

Figure 2: Examples of the 'Evaluation Trap' where generative models produce correct relations that are unfairly penalized by exact-match metrics.

By employing human-in-the-loop evaluation, the authors discovered that over 50% of the "false positives" generated by GPT-3 on the ADE dataset were actually correct relations. This suggests that traditional metrics provide a pessimistic view of LLM performance and that these models are often more accurate than the datasets used to test them.

Methodology: Reasoning as Supervision

The researchers treat RE as a sequence-to-sequence (seq2seq) task, where models generate linearized triplets in the form of (subject, relation, object). They investigated two primary strategies:

  1. Few-shot Prompting: Utilizing GPT-3 (text-davinci-002) with minimal examples (12–20) to perform extraction directly.
  2. Chain-of-Thought (CoT) Distillation: To create a more efficient and accessible solution, the authors used GPT-3 to generate "explanations" for relations within training data. They then fine-tuned a smaller, open-source model—Flan-T5 Large—on these explanations. This process allows the smaller model to learn the underlying reasoning logic rather than just memorizing label patterns.

Experimental Results

The study evaluated these approaches across four diverse benchmarks: ADE (medical), CoNLL04 (news), NYT (journalism), and DocRED (document-level). The results were definitive: the "Flan-T5 + CoT" approach established new SOTA records across the board.

Figure 1: Performance comparison on the CoNLL04 dataset, showing the progression from few-shot GPT-3 to the SOTA fine-tuned Flan-T5 + CoT model.

On the CoNLL04 dataset, the fine-tuned Flan-T5 with CoT achieved a Micro-F1 score of 80.76, significantly outperforming the previous baseline (REBEL) at 75.44. Similar gains were seen in the ADE dataset (92.17 F1) and NYT (95.23 F1). Remarkably, even few-shot GPT-3 with only 20 examples was able to match or exceed fully supervised models trained on thousands of data points.

Insights and Future Directions

The findings suggest a shift in the "default" approach for RE. LLMs should now be considered the starting point for extraction tasks due to their reasoning capabilities and data efficiency. While smaller models like Flan-T5 struggle in few-shot settings, they become powerhouses when fine-tuned with CoT explanations distilled from larger models.

However, challenges remain. Document-level extraction (like DocRED) remains difficult due to context window constraints and the high number of possible relations. Additionally, while the final models are open-source, the distillation process still relies on proprietary APIs for initial explanation generation. Future work will likely focus on extending these methods to n-ary relations and multi-lingual datasets.

Summary updated

BibTeX
@inproceedings{wadhwa2023revisiting,
  author = {Somin Wadhwa and Silvio Amir and Byron C. Wallace},
  title = {{Revisiting Relation Extraction in the era of Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.868},
}
Figure