A sequence-to-sequence approach for document-level relation extraction

John Giorgi, Gary D. Bader, Bo Wang
4/3/2022
73 citations
cs.CLcs.AI

Official code: JohnGiorgi/seq2rel (64 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2024-05-27). 1 more implementation below.

Abstract

Motivated by the fact that many relations cross the sentence boundary, there has been increasing interest in document-level relation extraction (DocRE). DocRE requires integrating information within and across sentences, capturing complex interactions between mentions of entities.

Show full abstract

Most existing methods are pipeline-based, requiring entities as input. However, jointly learning to extract entities and relations can improve performance and be more efficient due to shared parameters and training steps. In this paper, we develop a sequence-to-sequence approach, seq2rel, that can learn the subtasks of DocRE (entity extraction, coreference resolution and relation extraction) end-to-end, replacing a pipeline of task-specific components. Using a simple strategy we call entity hinting, we compare our approach to existing pipeline-based methods on several popular biomedical datasets, in some cases exceeding their performance. We also report the first end-to-end results on these datasets for future comparison. Finally, we demonstrate that, under our model, an end-to-end approach outperforms a pipeline-based approach. Our code, data and trained models are available at {\url{https://github.com/johngiorgi/seq2rel}}. An online demo is available at {\url{https://share.streamlit.io/johngiorgi/seq2rel/main/demo.py}}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
JohnGiorgi/seq2relOfficial64Jupyter NotebookApache-2.02024-05-27
JohnGiorgi/seq2rel-dsCommunity5Python–2022-04-13
JohnGiorgi/seq2relOfficial100%
PyTorchApache-2.0

The corresponding code for our paper: A sequence-to-sequence approach for document-level relation extraction.

646Jupyter Notebook, PythonJan 7, 20212 years agoApache-2.0
allencoreference-resolutionentity-extractioninformation-extractionnamed-entity-recognition+4 more

This is a companion repository to seq2rel (https://github.com/JohnGiorgi/seq2rel) which aims to make it easy to generate training data.

50PythonMar 24, 20214 years ago
coreference-resolutionentity-extractioninformation-extractionrelation-extractionseq2rel+1 more

Similar Papers

Cite this paper

@article{giorgi2022sequencetosequence,
  title  = {A sequence-to-sequence approach for document-level relation extraction},
  author = {John Giorgi and Gary D. Bader and Bo Wang},
  year   = {2022},
  eprint = {2204.01098},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.01098}
}

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/2204.01098.svg)](https://codeofpaper.com/paper/2204.01098)

Discussion