RFBFN: A Relation-First Blank Filling Network for Joint Relational Triple Extraction

Zhe Li, Luoyi Fu, Xinbing Wang, Haisong Zhang, Chenghu Zhou

Abstract

Relational triple extraction—identifying (subject, relation, object) sets from unstructured text—is a cornerstone of knowledge graph construction. Traditional methods often struggle with relation semantics, sequential bottlenecks, and overlapping triples. We introduce the Relation-First Blank Filling Network (RFBFN), a novel framework that reimagines extraction as a two-stage process: first identifying potential relations and then treating entity extraction as a simultaneous "fill-in-the-blanks" task using semantic templates. RFBFN achieves state-of-the-art performance on major benchmarks, including NYT and WebNLG.

Introduction

Extracting relational triples from text is essential for building structured knowledge bases. However, existing models face three primary challenges:

  1. Ignoring Relation Semantics: Relations are often treated as arbitrary class IDs, ignoring the rich semantic information inherent in relation names.
  2. Sequential Bottlenecks: Many models extract subjects before objects, leading to error propagation and increased computational passes.
  3. Overlapping Triples: Sentences where entities participate in multiple relations (e.g., "Elon Musk is the CEO of Tesla and SpaceX") are difficult for standard tagging schemes to resolve.

The RFBFN Framework

RFBFN addresses these issues by breaking the extraction task into three distinct modules:

1. Span-Level Encoder

Instead of word-level representations, RFBFN utilizes BERT to generate representations for every possible span (phrase) in a sentence. This naturally accommodates multi-word entities.

2. Relation Detection Module

Adopting a "relation-first" philosophy, the model uses a non-autoregressive decoder to predict which relations are present in the text. This acts as a semantic filter, narrowing the search space to only relevant triples.

3. Blank Filling Module

For each detected relation, the model generates a natural language template with blanks (e.g., [MASK] is the leader of [MASK]). A non-autoregressive transformer then fills these blanks simultaneously with the identified spans. This approach leverages the prior knowledge of pre-trained language models and eliminates order bias between subjects and objects.

The architecture of RFBFN, illustrating the flow from the Span-Level Encoder through the Relation Detection and Blank Filling modules.

Experimental Evaluation

The model was evaluated on two standard benchmarks:

  • NYT (New York Times): Featuring 24 relation types across original and word-annotated versions.
  • WebNLG: A challenging dataset from DBpedia with up to 216 relation types and high triple overlap.

Key Results and Insights

RFBFN established new state-of-the-art (SOTA) benchmarks across all tested datasets. Notably, it achieved an F1 score of 93.6% on NYT and 90.4% on WebNLG.

Performance comparison of RFBFN against existing state-of-the-art models on the NYT and WebNLG benchmarks.

Handling Complexity

The model demonstrated significant robustness in complex scenarios involving Entity Pair Overlap (EPO) and Single Entity Overlap (SEO). On WebNLG, RFBFN outperformed the PRGC model by nearly 5% in F1 score for sentences containing more than five triples. Ablation studies confirmed that the use of semantic templates is critical; replacing them with simple embeddings resulted in a marked performance decline.

Conclusion

RFBFN demonstrates that prioritizing relation semantics and employing simultaneous blank-filling significantly improves relational triple extraction. While current templates are manually defined, future work will explore automatic template generation and prompt tuning to scale the system to datasets with thousands of relations.

Summary updated

BibTeX
@inproceedings{li2022rfbfn,
  author = {Zhe Li and Luoyi Fu and Xinbing Wang and Haisong Zhang and Chenghu Zhou},
  title = {{RFBFN: A Relation-First Blank Filling Network for Joint Relational Triple Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-srw.2},
}
Figure