Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Models

Yilmazcan Ozyurt, Stefan Feuerriegel, Ce Zhang
10/17/2023
9 citations
cs.CLcs.AIcs.LG

Official code: oezyurty/REPLM (13 stars, Python, last commit 2024-05-15).

Abstract

Document-level relation extraction aims at inferring structured human knowledge from textual documents. State-of-the-art methods for this task use pre-trained language models (LMs) via fine-tuning, yet fine-tuning is computationally expensive and cannot adapt to new relation types or new LMs.

Show full abstract

As a remedy, we leverage the generalization capabilities of pre-trained LMs and present a novel framework for document-level in-context few-shot relation extraction. Our framework has three strengths: it eliminates the need (1) for named entity recognition and (2) for human annotations of documents, and (3) it can be updated to new LMs without re-training. We evaluate our framework using DocRED, the largest publicly available dataset for document-level relation extraction, and demonstrate that our framework achieves state-of-the-art performance. We further show that our framework actually performs much better than the original labels from the development set of DocRED. Finally, we conduct an extensive benchmark demonstrating the effectiveness of our framework, achieving state-of-the-art results across six relation extraction datasets and outperforming more than 30 baseline methods. Unlike our framework, the baseline methods have large computational overhead (e.g., from fine-tuning). To the best of our knowledge, we are the first to reformulate the document-level relation extraction task as a tailored in-context few-shot learning paradigm.

View on arXivView PDF

Code Implementations(1)

oezyurty/REPLMOfficial100%

Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Models

131Python, ShellMay 21, 20232 years ago

Similar Papers

Cite this paper

@article{ozyurt2023documentlevel,
  title  = {Document-Level In-Context Few-Shot Relation Extraction via Pre-Trained Language Models},
  author = {Yilmazcan Ozyurt and Stefan Feuerriegel and Ce Zhang},
  year   = {2023},
  eprint = {2310.11085},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11085v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.11085.svg)](https://codeofpaper.com/paper/2310.11085)

Discussion