Introduction
Traditional Relation Extraction (RE) focuses on identifying semantic connections between entities within a single sentence or document. However, in the real world, knowledge is often distributed across multiple sources. Cross-document Relation Extraction (CodRE) addresses this by identifying relationships between two entities that do not appear together in any single text. This task is critical for building comprehensive knowledge bases from fragmented data.
To address the inherent complexities of CodRE, researchers have introduced the Entity-centered Cross-path Relation Inference Method (ECRIM). This framework significantly improves extraction accuracy by optimizing how models filter relevant information and how they reason across disparate evidence paths.
The Challenges of Cross-Document Reasoning
Existing CodRE models face two primary hurdles:
- Information Noise: Because transformer-based models like BERT have strict input limits (typically 512 tokens), they cannot process multiple long documents in their entirety. Previous methods often selected irrelevant text snippets, leading to a "garbage in, garbage out" scenario where the model is overwhelmed by noise.
- Path Isolation: Most models treat different "text paths"—sequences of documents that potentially link two entities—as independent. This ignores the global context where different paths often share "bridge entities" that could provide mutual reinforcement or clarification.
The ECRIM Framework
ECRIM introduces two major innovations to overcome these limitations: the Entity-based Document-Context Filter and Cross-Path Entity Relation Attention.
1. Entity-based Document-Context Filter
To fit within the 512-token constraint without losing vital information, ECRIM employs a two-step distillation process:
- Heuristic Filtering: The model identifies "bridge entities"—entities that appear in multiple documents within a path. It scores sentences based on their proximity to these bridges, looking for direct co-occurrences and indirect links across the document bag.
- Semantic Reordering: Using a specialized algorithm, the highest-scoring sentences are reordered into a condensed "pseudo-document." This ensures that the most semantically relevant evidence is preserved for the transformer encoder.
2. Cross-Path Entity Relation Attention
Rather than analyzing paths in isolation, ECRIM constructs a global relation matrix for the entire document bag. It utilizes a multi-layer Transformer to perform self-attention across this matrix. This allows the model to capture dependencies between different paths, enabling evidence found in one document sequence to strengthen or clarify the reasoning in another. By viewing the entities globally, the model can resolve ambiguities that a local, single-path approach would miss.
Experimental Evaluation
The model was evaluated on CodRED, a large-scale benchmark derived from English Wikipedia and Wikidata. CodRED is particularly challenging due to its 276 relation types and an average document length of nearly 5,000 tokens, which necessitates sophisticated filtering.
Key Results
ECRIM demonstrated a substantial performance leap over previous state-of-the-art (SOTA) models:
- F1 Score: Improved from 51.02% to 62.48% (an absolute gain of ~11.5%).
- AUC (Area Under Curve): Increased from 47.46% to 60.67%.
- Precision at N: The model showed significantly higher accuracy in its top-500 and top-1000 predictions, suggesting it is highly reliable for automated knowledge base population.
Ablation studies confirmed that both the bridge entity logic and the cross-path attention mechanism are essential; removing either component resulted in a significant performance decline.
Discussion and Future Work
The success of ECRIM highlights that bridge entities are the primary signals for multi-hop reasoning across documents. However, the model's cross-path attention mechanism is memory-intensive, with complexity scaling at $|E|^4 \times d$ relative to the number of entities.
Future research may focus on developing more efficient attention mechanisms to handle larger document bags. Additionally, while the current document filter relies on fixed heuristics, moving toward a learnable, neural-based filter could further refine the evidence selection process. Finally, incorporating explicit discourse structure—modeling the logical flow between documents—remains a promising avenue for enhancing cross-document reasoning.
Summary updated