Abstract
Document-level Relation Extraction (DocRE) presents a significant challenge in natural language processing, requiring models to identify semantic connections between entities that span multiple sentences. Success in this task depends on robust coreference reasoning and the integration of factual commonsense. We introduce KIRE (Knowledge Injection for Relation Extraction), a model-agnostic framework designed to inject coreference and factual data from Knowledge Graphs (KGs) into DocRE models. By reconciling text and KG representations into a unified semantic space, KIRE consistently improves the performance of various baseline architectures on complex reasoning tasks.
Introduction
Relation Extraction (RE) is the task of identifying semantic connections between entities in text, such as recognizing that a specific organization is located in a particular region. While sentence-level RE has seen significant progress, document-level RE is considerably more complex. In a document, relations often span multiple sentences, requiring the model to synthesize information across a broader context.
To perform effectively at the document level, a model must address two primary hurdles:
- Coreference Reasoning: The ability to understand that different mentions (e.g., "IBM," "the company," and "it") refer to the same entity across sentences.
- Factual Commonsense: Utilizing external knowledge to resolve ambiguities. For instance, knowing that "São Paulo" is a city and "South America" is a continent helps a model correctly identify a "location" relation rather than a "subsidiary" relation.
Current models often struggle to synthesize this information or rely on "hard-coded" external data that can introduce noise if the underlying extraction tools make errors. KIRE addresses these issues by acting as a "knowledge plugin" that bridges the gap between raw text and structured knowledge.
The KIRE Framework
KIRE is designed to be inserted between a model's encoding layer (such as BERT) and its prediction layer. The framework consists of three core components:
Coreference Distillation
Rather than treating coreference links as rigid, potentially erroneous edges in a graph, KIRE employs a "teacher-student" distillation approach. A pre-trained coreference model acts as the teacher, guiding the RE model (the student) to learn the probability of coreference. This "soft" injection makes the system more robust to the noise typically associated with automated coreference resolution tools.
Knowledge Graph Encoding
KIRE leverages external data from Wikidata to provide factual context. This module uses an AutoEncoder to compress entity attributes, such as descriptions, and a Relational Graph Attention Network (R-GAT) to capture the structural relationships between entities within the Knowledge Graph.
Representation Reconciliation
Because text representations and KG representations exist in different vector spaces, they cannot be simply concatenated. KIRE utilizes a reconciliation module consisting of stacked aggregators with multi-head self-attention. This module fuses the two distinct data types into a single, unified semantic space, allowing the model to reason across both linguistic and factual inputs simultaneously.
Experimental Evaluation
The researchers evaluated KIRE using two major benchmarks: DocRED, a large-scale crowdsourced dataset for document-level RE, and DWIE, an entity-centric multi-task dataset. Wikidata served as the primary source for external factual injection.
Key Results
Experiments demonstrated that KIRE provides a stable and significant performance boost across various architectures:
- Model Agnostic Gains: KIRE was applied to four baseline architectures (CNN, LSTM, BiLSTM, and Context-aware models) and three state-of-the-art models (ATLOP, SSAN, and GLRE). In every case, performance improved.
- Metric Improvements: On the DocRED dataset, KIRE achieved an improvement of up to 2.63 points in "Ignore F1" (a metric that excludes relations already present in the training set), indicating better generalization.
- Comparative Superiority: KIRE outperformed existing knowledge injection frameworks like RESIDE and RECON. The authors attribute this to KIRE's more graceful handling of coreference and its deeper fusion of KG data.
Discussion and Insights
A key takeaway from the KIRE framework is that "soft" knowledge injection is superior to "hard" injection. By distilling coreference knowledge as a training objective rather than importing it as fixed data, the model learns generalized reasoning patterns. Furthermore, the ablation studies confirmed that both factual knowledge and linguistic coreference are necessary; removing either component led to a measurable drop in performance.
However, limitations remain. Case studies revealed that complex multi-hop reasoning—where a model must link three or more entities across several sentences—is still a challenge. When the reasoning chain becomes too long (e.g., Entity A → Coref → Entity B → Logic → Entity C), the model's accuracy decreases.
Conclusion
KIRE demonstrates that injecting structured entity knowledge and coreference data can significantly enhance document-level relation extraction. By reconciling heterogeneous data sources, KIRE allows models to move beyond simple pattern matching toward more sophisticated semantic reasoning. Future work will focus on integrating broader knowledge sources and developing more advanced frameworks to tackle long-tail, multi-hop reasoning chains.
Summary updated