Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-08T08:58:26.378Z Has data issue: false hasContentIssue false

An end-to-end neural framework using coarse-to-fine-grained attention for overlapping relational triple extraction

Published online by Cambridge University Press:  21 February 2023

Huizhe Su
Affiliation:
School of Computer Engineering and Science, Shanghai University, Shanghai, China
Hao Wang*
Affiliation:
School of Computer Engineering and Science, Shanghai University, Shanghai, China
Xiangfeng Luo
Affiliation:
School of Computer Engineering and Science, Shanghai University, Shanghai, China
Shaorong Xie*
Affiliation:
School of Computer Engineering and Science, Shanghai University, Shanghai, China
*
*Corresponding authors. Email: wang-hao@shu.edu.cn; srxie@shu.edu.cn
*Corresponding authors. Email: wang-hao@shu.edu.cn; srxie@shu.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

In recent years, the extraction of overlapping relations has received great attention in the field of natural language processing (NLP). However, most existing approaches treat relational triples in sentences as isolated, without considering the rich semantic correlations implied in the relational hierarchy. Extracting these overlapping relational triples is challenging, given the overlapping types are various and relatively complex. In addition, these approaches do not highlight the semantic information in the sentence from coarse-grained to fine-grained. In this paper, we propose an end-to-end neural framework based on a decomposition model that incorporates multi-granularity relational features for the extraction of overlapping triples. Our approach employs an attention mechanism that combines relational hierarchy information with multiple granularities and pretrained textual representations, where the relational hierarchies are constructed manually or obtained by unsupervised clustering. We found that the different hierarchy construction strategies have little effect on the final extraction results. Experimental results on two public datasets, NYT and WebNLG, show that our mode substantially outperforms the baseline system in extracting overlapping relational triples, especially for long-tailed relations.

Information

Type
Article
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1. Examples of overlapping relation patterns, e.g., Normal, SingleEntityOverlap (SEO) and EntityPairOverlap (EPO).

Figure 1

Table 1. Statistics of datasets. Note that a sentence can belong to both the EPO class and SEO class

Figure 2

Figure 2. Hierarchical structure of NYT dataset.

Figure 3

Figure 3. Framework of our model.

Figure 4

Figure 4. An illustration of our model. The left panel is an overview of our joint extraction model, and the right panel shows the acquisition of the hierarchical structure of relations and how to obtain coarse-to-fine granularity relation information through the attention mechanism. For WebNLG datasets without manually annotated hierarchical relations, the hierarchical structure of the relations is obtained by clustering automatically; for the NYT dataset with a manually annotated relational structure, we use clustering to obtain the hierarchy or utilize the annotated relational structure. Here, we use a two-level structure to unify the number of relational hierarchies of the NYT and WebNLG datasets and take a sentence in the NYT training set as an input example.

Figure 5

Figure 5. The relationship weight of input sentences at different levels is achieved by the attention mechanism.

Figure 6

Figure 6. Clustering results of different datasets. (a) and (b) are the clustering results of the WebNLG dataset when the mapping functions of obtaining the overall representation of base-level relations are the “average” and “sum”; when the “average” and “sum” are the mapping functions of the NYT dataset to obtain the overall representation of base-level relations, (c) and (d) are the clustering results.

Figure 7

Table 2. The main results for partial entity matching and exact entity matching. The datasets labeled $\clubsuit$ are the results of exact entity matching and vice versa for partial entity matching. The $CasRel_{BERT}$ marked with $^{*}$ is the result of our reimplementation, and the results marked with $\dagger$ are on the validation dataset. The highest scores are marked in bold. These comparison model results are quoted directly from the original papers

Figure 8

Table 3. An ablation study of the Partial entity matching results of our model on the validation set. The model that does not combine with knowledge of relational hierarchies is $CasRel_{BERT}$, where our reimplementation is marked by *. The results obtained by $Our_{Cluster}$ or $Our_{Manual}$ in different datasets with the most worked mapping function, that is, $Our_{Cluster}$ uses the “AvgAvg” mapping function in NYT and the “SumAvg” mapping function in WebNLG, while $Our_{Manual}$ uses the “SumAvg” mapping function in NYT

Figure 9

Table 4. F1-score of sentences with the different overlapping patterns using Partial entity matching. Baselines are all quoted directly from Wei et al. (2020) except for the ETL-Span. The results of ETL-Span are reproduced from official implementation

Figure 10

Table 5. F1-score of sentences with different triple numbers using Partial entity matching. The data source is the same as Table 4

Figure 11

Table 6. Different results with different mapping functions on validation set for representing base-level and higher-level relations in two datasets. The highest score of the model in different datasets is marked in bold when using clustering or not. “w/ category prefix” indicates that at the base-level relationship clustering, the relationship name is incorporating category labels; “w/o category prefix” indicates that the relationship name is not incorporating category labels

Figure 12

Figure 7. Label frequency distribution of positive relations in NYT and WebNLG datasets.

Figure 13

Table 7. Mean-F1, Micro-F1, and Macro-F1 using Partial entity matching between our model and the state-of-the-art model on relations with fewer than 100/200 training instances

Figure 14

Figure 8. Clustering results for different mapping functions of base-level relationships in the NYT dataset. (a) and (c) are the clustering results when the mapping functions of base-level relations are “average”, while (b) and (d) are the clustering results when the mapping functions of base-level relations are “sum”. “w/ category prefix” indicates that at the base-level relationship clustering, the relationship name is incorporating category labels; “w/o category prefix” indicates that the relationship name is not incorporating category labels.

Figure 15

Table 8. Samples of clustering results including the cluster 0 and the cluster 1 in the NYT dataset when the base-level relations using the “average” mapping function. “w/ category prefix” indicates that we cluster relation names with using explicit category prefixes; “w/o category prefix” indicates that we cluster relation names without using explicit category prefixes.