REKnow: Enhanced Knowledge for Joint Entity and Relation Extraction

Sheng Zhang, Patrick Ng, Zhiguo Wang, Bing XiangarXiv 2022 · DOI

Introduction

Relation Extraction (RE) is a fundamental task in natural language processing, aimed at identifying structured triplets—consisting of a subject, a relation, and an object—from unstructured text. For instance, given a sentence about Elon Musk, a model should ideally extract the triplet (Elon Musk, founder_of, SpaceX). Despite its importance, current RE systems face two primary hurdles: a lack of architectural unity across different sub-tasks and significant linguistic ambiguity.

Linguistic ambiguity arises when sentences with identical syntactic structures convey entirely different meanings. As shown in the figure below, the phrase "[Entity A] from [Entity B]" can imply nationality, employment, or membership depending on the real-world context of the entities involved. Without external knowledge, models are often forced to guess based on syntax alone.

Linguistic ambiguity where identical syntax leads to different relational facts.

The REKnow Framework

To address these challenges, the authors introduce REKnow (Relation Extraction with Knowledge enhancement). REKnow is a generative framework that treats relation extraction as a sequence-to-sequence translation task, converting raw text into a structured list of triplets. This approach unifies various RE tasks—such as Relation Classification and Joint Extraction—into a single model architecture.

The core innovation lies in the explicit injection of external background knowledge from Knowledge Graphs (KGs) like Wikidata and DBpedia. The pipeline consists of four main components:

  1. Knowledge Enhancement: The system maps mentions in the text to KG entries using entity linking. It retrieves fine-grained "instance of" properties (e.g., "fictional human" vs. "enterprise") to provide context.
  2. Template Component: This retrieved knowledge is integrated into the input string using special tokens, creating a "knowledge-enhanced" prompt for the model (e.g., Peter Parker [gr] fictional human...).
  3. Generative Backbone: REKnow utilizes pre-trained encoder-decoder models like T5 or BART. During training, it employs data augmentation by shuffling triplet orders to reduce exposure bias.
  4. Post-processing: To ensure accuracy, the model uses Levenshtein similarity to map generated strings back to the original text or a predefined set of valid relations, mitigating potential hallucinations.
The REKnow architecture illustrating the flow from raw input and KG retrieval to the final generated relational facts.

Experimental Evaluation and Results

The researchers evaluated REKnow across five diverse benchmarks: TACRED, SemEval 2010 Task 8, NYT10, WebNLG, and ACE2005. The results demonstrate that REKnow achieves state-of-the-art (SOTA) performance across the board:

  • NYT10: Achieved an F1 score of 93.6, surpassing previous models like REBEL.
  • WebNLG: Reached an F1 of 89.1.
  • TACRED: Achieved a competitive F1 of 75.1, performing on par with specialized models like RECENT.

Ablation studies confirmed that the Knowledge Graph component is vital; removing it led to a significant performance drop, particularly in datasets like NYT10 and WebNLG. This suggests that while large language models (LLMs) possess internal knowledge from pre-training, explicit "on-the-fly" retrieval is far more effective for disambiguation.

Insights and Future Directions

REKnow proves that fine-grained external knowledge is a powerful "tie-breaker" for syntactically similar but semantically distinct relations. Furthermore, the unified generative approach simplifies the RE pipeline, allowing a single model to handle various task formats without architectural changes.

However, the framework's reliance on entity linking remains a limitation. If a linker fails or if the text contains ambiguous pronouns (e.g., "he" or "it"), the model loses its knowledge advantage. Future work may focus on "constrained generation" to force the model to adhere strictly to valid relation sets and improving the handling of inversable relations (e.g., distinguishing parent_of from child_of).

Summary updated

BibTeX
@misc{zhang2022reknow,
  author = {Sheng Zhang and Patrick Ng and Zhiguo Wang and Bing Xiang},
  title = {{REKnow: Enhanced Knowledge for Joint Entity and Relation Extraction}},
  year = {2022},
  eprint = {2206.05123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.05123},
}
Figure