Abstract
Relational reasoning is a core challenge in document-level relation extraction (RE), where many facts must be inferred across sentence boundaries. We present a novel framework that explicitly incorporates relational reasoning through a specialized multi-head attention mechanism and a self-distillation training objective. Our Reasoning Multi-head Self-Attention (R-MSA) module is designed to capture four fundamental logic patterns. To ensure the model utilizes these patterns, we employ a two-branch self-distillation strategy that masks entity pair features, forcing the model to perform logical inference. Experimental results on DocRED and biomedical benchmarks demonstrate that our approach achieves state-of-the-art performance, particularly in identifying inter-sentence relations.
Introduction
Relation Extraction (RE) is the task of identifying semantic relationships between entities in text. While sentence-level RE has matured, document-level RE presents unique challenges because many relations are implicit and require reasoning across multiple sentences. Current document-level RE models often fail to explicitly model these reasoning processes, instead relying on standard supervised learning to capture patterns implicitly. This often leads to models that ignore complex logical chains or fail when direct evidence is absent.
Methodology
We propose two key components to enhance relational reasoning:
- Reasoning Multi-head Self-Attention (R-MSA): Standard self-attention is replaced with R-MSA, which consists of four heads, each dedicated to a specific reasoning pattern: transitivity, shared subject, shared object, and reverse transitivity. These patterns are mathematically constrained to ensure the model looks for specific logical dependencies between entity pairs.
- Self-Distillation Training: To prevent the model from relying solely on surface-level features, we introduce a masked training branch. By randomly masking the feature vectors of entity pairs, we force the model to predict relations based on the logical context provided by other pairs. A standard branch is trained alongside this masked branch, and self-distillation via Kullback-Leibler (KL) divergence is used to transfer the reasoning "intuition" from the masked branch to the final model.
Results and Discussion
Our model, Ours-BERT, was evaluated on the DocRED dataset and two biomedical datasets (CDR and GDA). As shown in the results table, our model achieves a state-of-the-art F1 score of 62.85 on DocRED, outperforming previous strong baselines such as ATLOP and DocuNet.
Analysis of the results shows that the four logic patterns cover approximately 76.5% of the relational triples in DocRED, validating our design choice for R-MSA. Furthermore, the significant improvement in Inter-F1 (relations spanning multiple sentences) indicates that the self-distillation process effectively forces the model to utilize long-range logical dependencies. The model also showed strong generalization, reaching 86.4 F1 on the GDA dataset.
Conclusion
This work demonstrates that explicitly modeling reasoning patterns and using bottleneck-based training can significantly improve document-level relation extraction. While the current model uses fixed patterns, future research could explore dynamic pattern discovery or application to knowledge graph completion tasks where reasoning is even more critical.
Summary updated