Abstract
Through document-level relation extraction (RE), the analysis of the global relation between entities in the text is feasible, and more comprehensive and accurate semantic information can be obtained. In document-level RE, the model needs to infer the implicit relations between two entities in different sentences. To obtain more semantic information, existing methods mainly focus on exploring entity representations. However, they ignore the correlations and indivisibility between relations, entities and contexts. Furthermore, current methods only independently estimate the cases of predefined relations, ignoring the case of "no relation", which results in poor prediction. To address the above issues, we propose a document-level RE method based on attention mechanisms, which considers the case of "no relation". Specifically, our approach leverages graph attention and multi-head attention networks to capture the correlations and indivisibility among relations, entities, and contexts, respectively. In addition, a novel multi-label loss function that promotes large margins in label confidence scores between each predefined class and the none class is employed to improve the prediction performance. Extensive experiments conducted on benchmarking datasets demonstrate that our proposed method outperforms the state-of-the-art baselines with higher accuracy.
1. Introduction
Document-level Relation Extraction (RE) is a fundamental task for building Knowledge Graphs, requiring the identification of semantic connections between entities across an entire document. Unlike sentence-level extraction, document-level RE involves reasoning over long-range dependencies and implicit relations. As noted in the IJCAI-24 proceedings, current models often struggle with two key issues: the interdependency of relations and the ambiguity of the "None" (no relation) class. Most entity pairs in a document lack a predefined relation, and failing to calibrate the boundary between a weak signal and a definitive "no relation" leads to poor performance, particularly on rare "long-tail" relations.
2. Methodology
The proposed Ours-BERT framework introduces a holistic approach to modeling the indivisibility of relations, entities, and context.
2.1 Fusion Module for Representation
The model utilizes Graph Attention Networks (GAT) to encode prior knowledge of relation correlations. By constructing a correlation graph from training data, the model learns how specific relations co-occur. These features are then integrated with entity and context embeddings via Multi-Head Attention (MHA). This fusion ensures that the representation of an entity pair is informed by the broader relational landscape of the document.
2.2 Alignment and Tucker Factorization
To effectively score potential triples (Subject, Relation, Object), the authors employ Tucker Factorization. This tensor decomposition method captures complex multi-way interactions between the ternary components of a relationship more effectively than standard linear layers, allowing for better alignment between entities and their predicted relations.
2.3 None Class Ranking Loss
A significant contribution of this work is the None Class Ranking Loss. Rather than treating "None" as a standard label, it serves as an adaptive threshold. The loss function enforces a ranking where positive relation scores must exceed the "None" score, which in turn must exceed the scores of irrelevant relations. Additionally, a "margin shifting" mechanism is introduced to handle potential noise and false negatives in human-annotated datasets.
3. Experiments and Results
The model was evaluated on two major benchmarks: DocRED, a large-scale dataset from Wikipedia, and Re-DocRED, a revised version with improved label quality.
3.1 Comparative Performance
Ours-BERT demonstrated superior performance over state-of-the-art baselines such as ATLOP-BERT and SRLR-BERT. On the DocRED test set, it achieved an F1 score of 63.40. On the Re-DocRED dataset, where label noise is reduced, the model reached an F1 score of 76.30. Ablation studies confirmed that the None Class Ranking Loss is the most critical component, with its removal leading to a drop of nearly 2 F1 points.
4. Conclusion
The integration of relation correlations and an adaptive ranking loss for the "None" class provides a robust solution for document-level RE. By treating the absence of a relation as a dynamic baseline rather than a static category, the model achieves higher accuracy and better handles the inherent noise in large-scale datasets. Future work will explore the application of this ranking logic to other multi-label document-level tasks.
Summary updated