How Fragile is Relation Extraction under Entity Replacements?

Yiwei Wang, Bryan Hooi, Fei Wang, Yujun Cai, Yuxuan Liang, Wenxuan Zhou, Jing Tang, Manjuan Duan, Muhao Chen

Abstract

State-of-the-art Relation Extraction (RE) models have shown impressive results on standard benchmarks. However, this research reveals that these models are often fragile, relying on memorized entity names rather than textual context—a phenomenon known as entity bias. By introducing ENTRE (Entity Replacement for RE), a method that swaps entities with others of the same type, we demonstrate that top-tier models suffer a 30% to 50% drop in F1 score. This work highlights the prevalence of "shortcuts" in existing benchmarks like TACRED and calls for a shift toward models that prioritize contextual reasoning.

Introduction

Relation Extraction (RE) involves identifying the semantic relationship between two entities in a sentence. Ideally, a model should analyze the linguistic context surrounding the entities to determine their relationship. However, many current models exhibit significant entity bias, learning spurious correlations between specific entity names and relations. For instance, if a training set frequently associates "Bill Clinton" with the "United States," a model might predict "country of residence" based solely on the entity names, even if the sentence context suggests otherwise.

An example of a shortcut in TACRED where the model predicts the correct relation even without textual context.

Existing benchmarks like TACRED inadvertently encourage this behavior due to limited entity diversity and the presence of "shortcuts," where entity names alone provide sufficient information to guess the correct label.

Methodology: The ENTRE Framework

To evaluate and mitigate entity bias, the authors propose ENTRE (Entity Replacement for RE). This framework consists of three main components:

  1. Type-Constrained Replacement: To maintain grammatical and logical consistency, entities are replaced only by others of the same semantic type (e.g., replacing one [PERSON] with another).
  2. Lexicon-Based Diversity: A large-scale lexicon derived from Wikipedia, containing over 900,000 person entities and 24,000 organizations, is used to ensure high diversity in replacements.
  3. Causal Inference Analysis: A counterfactual approach is employed to quantify "shortcuts." By masking the textual context and providing only entity names to the model, researchers can measure the degree to which a model relies on entities versus the actual sentence.

The authors also introduce ENTRED, a benchmark created by applying ENTRE to the TACRED test set, which significantly increases entity name diversity and breaks existing shortcuts.

Results and Analysis

The impact of entity replacement on model performance is substantial. When evaluated on ENTRE-modified datasets, state-of-the-art models like LUKE and IRE show a dramatic decline in accuracy.

F1 score performance of IRE and LUKE models on original TACRED vs. ENTRE-modified versions.

As shown in the figure above, LUKE's F1 score dropped from 72.7% to 45.0% (a 44% relative decrease), while IRE's score fell from 74.6% to 49.3% (a 34% relative decrease). These results suggest that these models are heavily reliant on memorizing entity-relation patterns rather than performing true linguistic reasoning.

Further analysis revealed that over 70% of instances in the original TACRED dataset allow for shortcuts. ENTRE effectively reduces these shortcuts, forcing models to focus on the textual context. Additionally, manual inspection found that approximately 10% of TACRED test instances contain incorrect entity annotations, which further complicates model training.

Conclusion

The fragility of current RE models under entity replacement indicates a fundamental reliance on entity-specific memorization. To advance the field, the community must move beyond simple pattern matching. Future research should focus on developing inductive biases and training methodologies that prioritize textual context, ensuring that models are robust to variations in entity names and truly understand the underlying relationships described in text.

Summary updated

BibTeX
@inproceedings{wang2023how,
  author = {Yiwei Wang and Bryan Hooi and Fei Wang and Yujun Cai and Yuxuan Liang and Wenxuan Zhou and Jing Tang and Manjuan Duan and Muhao Chen},
  title = {{How Fragile is Relation Extraction under Entity Replacements?}},
  booktitle = {CoNLL},
  year = {2023},
  doi = {10.18653/v1/2023.conll-1.27},
}
Figure