Joint Extraction of Entities and Overlapping Relations Using Position-Attentive Sequence Labeling

Dai Dai, Xinyan Xiao, Yajuan Lyu, Shan Dou, Qiaoqiao She, Haifeng Wang

Introduction

Information Extraction (IE) aims to convert unstructured text into structured knowledge, typically represented as triplets of (Entity1, Relation, Entity2). Traditional pipeline methods, which separate entity recognition from relation classification, often suffer from error propagation. While joint extraction models address this, they frequently struggle with overlapping relations—scenarios where a single entity participates in multiple relationships. For instance, in the sentence "Trump was born in Queens in New York City," the entity "Trump" is linked to both "Queens" and "New York City" via the Born_in relation.

Proposed Methodology: Position-Attentive Sequence Labeling

The authors introduce a novel framework that treats joint extraction as a series of position-conditioned sequence labeling tasks.

Query-Based Tagging Scheme

The core innovation is a tagging scheme that generates $n$ different sequences for a sentence of length $n$. For each "query position" $p$:

  • If the word at $p$ starts an entity, it is assigned its entity type (e.g., PERSON).
  • Other words that share a relationship with the entity at $p$ are tagged with the corresponding relation type (e.g., Born_in).
  • All other words are labeled O (Outside).
The query-based tagging scheme allows the model to extract multiple relations by iterating through each word as a potential subject.

Model Architecture

The architecture consists of three main components:

  1. Bi-LSTM Encoder: Captures semantic features from word and character embeddings.
  2. Position-Attention Mechanism: For every query position $p$, the model computes a unique sentence representation. This allows the system to focus on context relevant to the specific entity at that position, facilitating the detection of long-range dependencies.
  3. CRF Decoder: Ensures global consistency in the predicted tag sequences using a BIES (Begin, Inside, End, Single) scheme.

Experimental Evaluation

The model was evaluated on the NYT and Wiki-KBP datasets. These datasets are particularly challenging as approximately one-third of their training instances contain overlapping relations.

Key Results

The proposed PA-LSTM-CRF model achieved state-of-the-art results, notably outperforming the previous best model (LSTM-LSTM-Bias) by 5.7% in F1 score on Wiki-KBP.

A significant strength of the model is its robustness to the distance between entities. While baseline models typically see a sharp decline in performance as entities move further apart, the PA-LSTM-CRF maintains stable performance, thanks to its position-attentive mechanism.

Comparison of F1 scores between PA-LSTM-CRF and the baseline as the distance between entities increases.

Conclusion and Future Work

By reframing joint extraction as a query-based tagging problem, this research effectively handles the complexity of overlapping relations. While the $O(n^2)$ complexity is a consideration, the gains in accuracy and robustness for long-range relationships are substantial. Future work may involve optimizing computational efficiency through query position pruning or extending the framework to handle n-ary relations.

Summary updated

BibTeX
@inproceedings{dai2019joint,
  author = {Dai Dai and Xinyan Xiao and Yajuan Lyu and Shan Dou and Qiaoqiao She and Haifeng Wang},
  title = {{Joint Extraction of Entities and Overlapping Relations Using Position-Attentive Sequence Labeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016300},
}
Figure