Consistent Document-Level Relation Extraction via Counterfactuals

Ali Modarressi, Abdullatif Köksal, Hinrich Schütze
7/9/2024
cs.CL

No official code found. Best implementation: amodaresi/CovEReD (4 stars, MIT, last commit 2024-10-16).

Abstract

Many datasets have been developed to train and evaluate document-level relation extraction (RE) models. Most of these are constructed using real-world data. It has been shown that RE models trained on real-world data suffer from factual biases. To evaluate and address this issue, we present CovEReD, a counterfactual data generation approach for document-level relation extraction datasets using entity replacement. We first demonstrate that models trained on factual data exhibit inconsistent behavior: while they accurately extract triples from factual data, they fail to extract the same triples after counterfactual modification. This inconsistency suggests that models trained on factual data rely on spurious signals such as specific entities and external knowledge $\unicode{x2013}$ rather than on the input context $\unicode{x2013}$ to extract triples. We show that by generating document-level counterfactual data with CovEReD and training models on them, consistency is maintained with minimal impact on RE performance. We release our CovEReD pipeline as well as Re-DocRED-CF, a dataset of counterfactual RE documents, to assist in evaluating and addressing inconsistency in document-level RE.

View on arXivView PDF

Code Implementations(1)

amodaresi/CovEReDCommunity100%
MIT

Consistent Document-Level Relation Extraction via Counterfactuals

41Python, Jupyter NotebookJul 8, 20242 years agoMIT

Similar Papers

Cite this paper

@article{modarressi2024consistent,
  title  = {Consistent Document-Level Relation Extraction via Counterfactuals},
  author = {Ali Modarressi and Abdullatif Köksal and Hinrich Schütze},
  year   = {2024},
  eprint = {2407.06699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.06699v2}
}

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

Discussion