Relation Extraction Model Based on Keywords Attention (S)

Yu Chen, Jianxia Chen, Chang Liu, Qi LiuSeke 2021

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing (NLP) that involves identifying semantic relationships between entities within a sentence. For instance, in the sentence "The apple is in the basket," an RE system should identify the relationship between "apple" and "basket" as Entity-Destination.

A significant challenge in RE is the presence of "noise"—words that do not contribute to the relationship. Traditional methods often rely on external NLP tools like dependency parsers or Part-of-Speech (POS) taggers to filter this noise. However, these tools can introduce error propagation and information loss. This paper introduces REKA (Relation Extraction based on Keyword Attention), an end-to-end model designed to identify expressive keywords without relying on error-prone external preprocessing.

Methodology

The REKA model utilizes a four-layer architecture to process sentences and extract relations:

  1. Input Layer: Words are converted into deep, contextualized vectors using ELMo (Embeddings from Language Models). These are combined with relative position embeddings (PE) to capture the distance of each word from the target entities.
  2. Self-Attention Layer: A multi-head attention mechanism captures global context and long-range dependencies across the entire sentence.
  3. Bi-GRU Network: A bidirectional Gated Recurrent Unit layer processes the sequence to capture both forward and backward contextual information.
  4. Keyword Attention Layer: This is the core innovation of the model. Instead of standard softmax attention, REKA uses a linear-chain Conditional Random Field (CRF) to assign a binary state to each word: "relevant" ($z=1$) or "irrelevant" ($z=0$). By calculating the marginal distribution of these states, the model determines the attention weight for each word. It also incorporates "Entity Hidden Similarity Features" to categorize entities based on latent space similarity, effectively replacing external lexical databases like WordNet.
Architecture of the REKA model, highlighting the Keyword Attention layer.

Experimental Setup

The model was evaluated on the SemEval-2010 Task 8 benchmark, which contains 10,717 sentences across 19 relationship types (9 directed relations and one "Other" category). The dataset is split into 8,000 training samples and 2,717 testing samples.

Key Results

REKA demonstrates superior performance compared to several high-performing baseline models, including CNNs and various LSTM architectures.

  • State-of-the-Art Performance: REKA achieved an F1 score of 84.8, surpassing the previous best-reported BLSTM model (84.3) and the SDP-LSTM (83.7).
  • Feature Efficiency: Notably, REKA achieves these results using only Position Embeddings (PE) as an additional feature. In contrast, other top models require a combination of POS tagging, WordNet, and dependency trees to reach comparable performance.
  • Sample Efficiency: Experimental results indicate that REKA is significantly more sample-efficient than other RNN-based methods, maintaining higher performance even when trained on only 1% or 20% of the available data.
Comparison of REKA against state-of-the-art models on the SemEval-2010 Task 8 dataset.

Conclusion

The REKA model introduces a novel way to handle noise in Relation Extraction by using a CRF-based keyword attention mechanism. By internalizing feature extraction and avoiding external NLP tools, the model reduces error propagation and achieves state-of-the-art results on standard benchmarks. Future work will focus on extending the model to handle complex, overlapping relationships between multiple entities within a single sentence.

Summary updated

BibTeX
@inproceedings{chen2021relation,
  author = {Yu Chen and Jianxia Chen and Chang Liu and Qi Liu},
  title = {{Relation Extraction Model Based on Keywords Attention (S)}},
  booktitle = {Seke},
  year = {2021},
  doi = {10.18293/seke2021-073},
}
Figure