Joint Extraction of Entities and Relations Based on a Novel Tagging Scheme

Suncong Zheng, Feng Wang, Hongyun Bao, Yuexing Hao, Peng Zhou, Bo Xu

Abstract

Joint extraction of entities and relations is an important task in information extraction. To tackle this problem, we firstly propose a novel tagging scheme that can convert the joint extraction task to a tagging problem. Then, based on our tagging scheme, we study different end-to-end models to extract entities and their relations directly, without identifying entities and relations separately. We conduct experiments on a public dataset produced by distant supervision method and the experimental results show that the tagging based methods are better than most of the existing pipelined and joint learning methods. What's more, the end-to-end model proposed in this paper, achieves the best results on the public dataset.

Introduction

In Information Extraction (IE), the primary goal is to identify triplets consisting of two entities and the relation between them: (Entity 1, Relation, Entity 2). Traditionally, this task is approached using a pipelined method. First, a Named Entity Recognition (NER) system identifies entities (e.g., people, organizations, locations). Second, a Relation Classification (RC) model determines the relationship between identified pairs.

However, pipelined approaches suffer from "error propagation"—if the NER step fails to identify an entity, the subsequent RC step cannot recover the missing relation. While existing "joint" models attempt to solve this by sharing parameters between tasks, they often remain complex, requiring heavy feature engineering or treating the two tasks as distinct components within a single framework. This paper introduces a novel tagging scheme that simplifies joint extraction into a unified sequence labeling problem.

Methodology: The Novel Tagging Scheme

The core innovation of this research is a tagging scheme that encodes entity boundaries, relation types, and entity roles directly into word-level tags. Unlike standard NER tags (e.g., B-Person), these tags contain three specific components:

  1. Entity Boundary: Using the BIES (Begin, Inside, End, Single) format to mark the position of a word within an entity.
  2. Relation Type: A label representing a specific relation from a predefined set (e.g., "Country-President" or "Company-Founder").
  3. Relation Role: A numerical indicator ("1" or "2") identifying whether the word belongs to the first or second entity in the triplet.
The proposed tagging scheme applied to a sample sentence, demonstrating how entities and relations are jointly encoded.

By using this scheme, the model can extract triplets directly. For instance, in the sentence "The United States President Trump...", "United States" is tagged as the first entity in a Country-President relation, while "Trump" is tagged as the second. If multiple entities of the same type exist, the model employs a "proximity rule," pairing the closest Entity 1 and Entity 2 of the same relation type.

Model Architecture

The authors propose an end-to-end model consisting of three primary layers:

  • Embedding Layer: Converts words into dense vector representations.
  • Encoding Layer: Utilizes a Bidirectional LSTM (Bi-LSTM) to capture long-range dependencies and produce context-aware hidden states for each word.
  • Decoding Layer: A second LSTM layer that produces the final tag sequence based on the encoded representations.

To address the imbalance in the dataset—where the "Other" (O) tag is significantly more frequent than relation-specific tags—the authors introduced a biased objective function. By incorporating a bias parameter ($\alpha$), the model is forced to pay more attention to the rarer, more informative relation tags, effectively boosting recall.

Experimental Results

The models were evaluated on the NYT (New York Times) dataset, generated via distant supervision. This dataset contains approximately 353,000 training triplets and 24 predefined relation types. The proposed LSTM-LSTM-Bias model demonstrated superior performance compared to both pipelined and existing joint learning frameworks.

Performance comparison of the proposed tagging-based models against state-of-the-art baselines on the NYT dataset.

As shown in the results, the LSTM-LSTM-Bias model achieved a state-of-the-art F1 score of 0.495, outperforming the previous best model, CoType (0.463). The biased objective function was critical for this success; while a standard LSTM-LSTM model achieved high precision but lower recall (~0.32), the biased version successfully increased recall to 0.414.

Conclusion and Future Work

This paper demonstrates that joint entity and relation extraction can be effectively modeled as a sequence labeling task. This approach reduces the need for complex feature engineering and mitigates error propagation inherent in pipelined systems.

Despite its success, the current tagging scheme faces challenges with overlapping relations, where a single entity participates in multiple relations (e.g., one person being the CEO of two different companies). Because the current scheme assigns only one tag per word, it cannot represent these overlaps. Future work will explore replacing the final Softmax layer with multiple classifiers to allow for multi-label tagging, potentially resolving this limitation.

Summary updated

Abstract

Joint extraction of entities and relations is an important task in information extraction. To tackle this problem, we firstly propose a novel tagging scheme that can convert the joint extraction task to a tagging problem. Then, based on our tagging scheme, we study different end-to-end models to extract entities and their relations directly, without identifying entities and relations separately. We conduct experiments on a public dataset produced by distant supervision method and the experimental results show that the tagging based methods are better than most of the existing pipelined and joint learning methods. What's more, the end-to-end model proposed in this paper, achieves the best results on the public dataset.
BibTeX
@inproceedings{zheng2017joint,
  author = {Suncong Zheng and Feng Wang and Hongyun Bao and Yuexing Hao and Peng Zhou and Bo Xu},
  title = {{Joint Extraction of Entities and Relations Based on a Novel Tagging Scheme}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-1113},
}
Figure