OD-RTE: A One-Stage Object Detection Framework for Relational Triple Extraction

Jinzhong Ning, Zhihao Yang, Yuanyuan Sun, Zhizheng Wang, Hongfei LinACL 2023

Abstract

Relational Triple Extraction (RTE) is a fundamental task in information extraction, aiming to identify (subject, relation, object) triples from unstructured text. Traditional table-filling methods often struggle with spatial underutilization, entity overlap, and computational inefficiency. This paper presents OD-RTE, a one-stage framework that reimagines the RTE table as a visual field for object detection. By identifying the four corners of a triple's rectangular region in a token-pair grid and employing a bidirectional decoding algorithm, OD-RTE achieves state-of-the-art results. Furthermore, the introduction of relation negative sampling and a global region detection auxiliary task significantly reduces GPU memory requirements and training time.

Introduction

Relational Triple Extraction (RTE) involves pulling structured information—such as (Tom Luna, place_of_birth, New York City)—from unstructured sentences. Recently, "table-filling" methods have emerged as a powerful approach, representing sentences as 2D matrices where rows and columns correspond to tokens. However, these methods typically face three challenges: underutilization of spatial information (focusing on points rather than regions), difficulty handling overlapping or nested entities, and extreme sparsity leading to computational inefficiency.

OD-RTE addresses these issues by treating the RTE table as an image and triples as "objects" to be detected within that image. This shift in perspective allows the model to capture the inherent spatial correlations between head and tail entities more effectively.

The analogy between Object Detection and Relational Triple Extraction.

Methodology

The OD-RTE framework introduces several innovations to bridge the gap between NLP and computer vision:

Vertices-based Tagging

Instead of merely marking entity boundaries, OD-RTE identifies the four corners of the rectangular area a triple occupies in the 2D token-pair grid: Upper-Left (UL), Upper-Right (UR), Lower-Left (LL), and Lower-Right (LR). This "bounding box" approach captures the entire span of the relationship.

Global Relational Triple Region Detection

To better utilize spatial data, the model includes an auxiliary task that predicts whether a cell belongs to any triple region, regardless of the specific relation. This global heatmap helps the model learn the general structure of information before fine-tuning for specific relations.

Bidirectional Diagonal Walk (Bi-DW)

A novel decoding algorithm, Bi-DW, "walks" through the table from two directions (top-left to bottom-right and vice versa). This allows the model to robustly extract all types of triples, including those that are nested or share entities, such as Entity Pair Overlap (EPO) and Subject-Object Overlap (SOO).

Relation Negative Sampling

To combat the sparsity of the 2D tables, the authors implement relation negative sampling. Instead of training on every possible relation for every sentence, the model keeps all positive relations and samples a small subset of negative ones. This drastically improves training efficiency without sacrificing performance.

The overall architecture of the OD-RTE framework, including the BERT encoder, negative sampling, and the global region detection task.

Experimental Results

The model was evaluated on the NYT and WebNLG benchmark datasets. OD-RTE achieved state-of-the-art (SOTA) F1-scores, outperforming previous heavyweights like TPLinker and OneRel.

Beyond accuracy, OD-RTE demonstrated significant gains in efficiency. On the NYT dataset, training time was reduced from 1203 seconds per epoch (OneRel) to 798 seconds. Most notably, GPU memory usage dropped from 23.7 GB to just 8.3 GB, making the model much more accessible for standard hardware.

Key Insights

  • Spatial Correlation: The spatial arrangement of token pairs in a table carries meaningful regional information. Treating a triple as a bounding box captures the correlation between head and tail entities more effectively than point-based tagging.
  • Regularization via Auxiliary Tasks: The global region detection task acts as a powerful regularizer, forcing the encoder to identify "interesting" regions of the sentence early in the process.
  • Efficiency through Sampling: Negative sampling proves that dense supervision on empty relations is unnecessary, allowing for a nearly 3x reduction in memory footprint compared to competitors.

Conclusion and Future Work

OD-RTE represents a significant shift in how RTE tasks are approached, successfully applying computer vision principles to NLP. While highly effective, future work will focus on further mitigating label imbalance and incorporating explicit entity boundary information to refine span precision. Extending this object-detection logic to N-ary relations also remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{ning2023od,
  author = {Jinzhong Ning and Zhihao Yang and Yuanyuan Sun and Zhizheng Wang and Hongfei Lin},
  title = {{OD-RTE: A One-Stage Object Detection Framework for Relational Triple Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.623},
}
Figure