A Novel Hierarchical Binary Tagging Framework for Joint Extraction of Entities and Relations

Zhepei Wei, Jianlin Su, Yue Wang, Yuan Tian, Yi Chang

Abstract

Extracting relational triples from unstructured text is fundamental for building knowledge graphs. However, most existing joint extraction models struggle with the "overlapping triple problem," where entities are shared across multiple facts. We present CASREL, a cascade binary tagging framework that models relations as functions mapping subjects to objects. This approach allows for the simultaneous extraction of multiple triples even when they share entities. Our framework achieves state-of-the-art performance on the NYT and WebNLG benchmarks, showing remarkable robustness in complex linguistic scenarios.

Introduction

The goal of relational triple extraction is to identify subject-relation-object $(s, r, o)$ triplets from raw text. While traditional pipeline methods suffer from error propagation, joint extraction models aim to capture the dependencies between entity recognition and relation extraction. A major challenge in this field is handling sentences where entities overlap across different triples.

As illustrated in the figure above, overlapping patterns can be categorized into three types: Normal (no shared entities), Entity Pair Overlap (EPO) (a pair of entities shares multiple relations), and Single Entity Overlap (SEO) (an entity participates in multiple triples as either a subject or an object).

The CASREL Framework

The core innovation of CASREL is the shift from treating relations as discrete labels to treating them as functions. Instead of classifying a pair $(s, o)$ into a relation $r$, the model learns a mapping $f_r(s) \to o$. This functional perspective allows the model to actively "look" for objects given a specific subject and relation.

Cascade Binary Tagging

The framework employs a two-stage cascade process built upon a BERT encoder:

  1. Subject Tagger: Identifies all potential subjects in a sentence using two binary classifiers (start and end pointers).
  2. Relation-Specific Object Taggers: For each identified subject, the model applies a set of $N$ taggers, where $N$ is the number of relations in the schema. Each tagger identifies the corresponding objects for that specific relation and subject.
The CASREL architecture featuring a BERT encoder, a subject tagger, and relation-specific object taggers.

This hierarchical structure ensures that the model can extract multiple objects for a single subject under different relations, naturally solving the SEO and EPO problems. By training on a single objective—maximizing the likelihood of the entire triple—CASREL avoids the error propagation common in pipeline approaches.

Experimental Results

The authors evaluated CASREL on the NYT and WebNLG datasets, which are known for their complexity and high number of overlapping triples. The results demonstrate a significant leap in performance:

  • NYT Dataset: CASREL achieved an F1-score of 89.6, a 17.5-point absolute improvement over previous benchmarks.
  • WebNLG Dataset: The model reached an F1-score of 91.8, representing a staggering 30.2-point absolute gain.

Crucially, CASREL maintains high performance even as the number of triples per sentence increases. In complex cases with five or more triples, CASREL outperformed the best baselines by over 35 F1 points, proving its effectiveness in dense informational contexts.

Conclusion

CASREL redefines relational triple extraction by modeling relations as functional mappings. This cascade binary tagging approach effectively addresses the limitations of previous models in handling overlapping entities. While the model shows some sensitivity to errors in the initial subject tagging stage, its overall robustness and performance gains mark a significant advancement in the field of structured knowledge extraction.

Summary updated

BibTeX
@misc{wei2019novel,
  author = {Zhepei Wei and Jianlin Su and Yue Wang and Yuan Tian and Yi Chang},
  title = {{A Novel Hierarchical Binary Tagging Framework for Joint Extraction of Entities and Relations}},
  year = {2019},
  eprint = {1909.03227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.03227},
}
Figure