Introduction
Relational triple extraction is a fundamental task in knowledge graph construction, aimed at identifying (subject, relation, object) triples from unstructured text. A significant challenge in this field is handling sentences with overlapping triples, which occur in three main patterns:
- Single Entity Overlap (SEO): One entity participates in multiple triples with different roles.
- Entity Pair Overlap (EPO): A pair of entities share multiple distinct relations.
- Subject Object Overlap (SOO): An entity serves as a subject in one triple and an object in another.
While previous joint extraction methods like CasRel and TPLinker made significant strides, they often suffered from computational inefficiency. CasRel is limited by a sequential "one-subject-at-a-time" bottleneck, while TPLinker relies on massive, sparse matrices that become redundant as the number of possible relations grows.
Methodology
PRGC (Potential Relation and Global Correspondence) addresses these inefficiencies by decomposing the extraction task into three distinct, parallelizable subtasks.
- Relation Judgement: The model first performs multi-label classification on the entire sentence to identify a small subset of Potential Relations ($R_{pot}$). This pruning step drastically reduces the search space for subsequent entity extraction.
- Entity Extraction: For each potential relation, the model performs Relation-Specific Sequence Tagging. Using standard BIO (Begin, Inside, Outside) tagging, it identifies potential subjects and objects. This method is more robust for long entity names compared to traditional span-based pointers.
- Subject-Object Alignment: To link extracted entities into valid triples, PRGC employs a Global Correspondence matrix. This single $n \times n$ matrix predicts whether a subject starting at index $i$ and an object starting at index $j$ are related, regardless of the specific relation type. This decouples the alignment logic from the specific relation labels, simplifying the learning process.
Key Insights
- Efficiency through Pruning: By filtering hundreds of possible relations down to the few actually present in a sentence, PRGC avoids the computational waste seen in previous dense-matrix approaches.
- Robustness of BIO Tagging: Sequence tagging forces the model to learn the internal structure of entities, leading to better generalization on complex entity names than simple start/end span prediction.
- Decoupled Alignment: Realizing that related entities share a strong correspondence independent of their specific relation label allows for a leaner, more efficient "glue" matrix to pair subjects and objects.
Key Results
PRGC was evaluated on the NYT and WebNLG benchmarks, consistently outperforming baselines in both accuracy and speed. On the complex WebNLG dataset (containing up to 216 relations), PRGC achieved a state-of-the-art F1-score of 88.5%.
Beyond accuracy, the model is highly efficient. On the NYT dataset, PRGC's decoder uses 40% fewer parameters than TPLinker. In terms of inference speed, PRGC is up to 3x faster in single-thread mode and nearly 2x faster in parallel processing, achieving an average inference time of 4.4ms* per sentence.
Conclusion
PRGC provides a high-efficiency framework for relational triple extraction that effectively handles overlapping triples without the computational overhead of previous methods. By combining relation pruning with global correspondence alignment, it offers a scalable solution for large-scale knowledge graph construction.
Summary updated