Introduction
Relation extraction (RE) is a fundamental task in information extraction, identifying semantic connections between entities within text. While sentence-level RE is well-established, Document-level RE (DocRE) presents a significantly higher challenge, as it requires reasoning across multiple sentences and handling long-range dependencies.
Current state-of-the-art models typically utilize complex Graph Neural Networks (GNNs) or Transformers to learn implicit representations of these dependencies. However, these "black-box" models lack transparency and often struggle when evidence for a relation is scattered across a long document. This paper introduces LogiRE, a novel probabilistic framework that shifts the focus toward interpretable symbolic logic rules to capture complex relational reasoning explicitly.
Methodology: The LogiRE Framework
LogiRE treats logic rules as latent variables to bridge the gap between neural representations and symbolic reasoning. The framework consists of two primary components:
- Rule Generator ($p_\theta$): A Transformer-based autoregressive model that generates potential logic rules (e.g., $A \xrightarrow{r_1} B \xrightarrow{r_2} C \Rightarrow A \xrightarrow{r_{target}} C$) based on a specific query.
- Relation Extractor ($p_w$): A module that identifies "grounding paths" in the document and uses fuzzy logic (specifically the product t-norm) to score how well the textual evidence supports the generated rules.
To optimize these components without explicit rule annotations, the authors employ an Expectation-Maximization (EM) algorithm. In the E-step, the model estimates the posterior distribution of rules using a second-order Taylor expansion. In the M-step, both the Rule Generator and the Relation Extractor are updated to maximize the likelihood of the observed relations.
Crucially, the Relation Extractor is model-agnostic, allowing LogiRE to serve as a "plug-and-play" enhancement for existing DocRE architectures such as ATLOP or GAIN.
Experimental Setup
The framework was evaluated on two major DocRE benchmarks:
- DocRED: A large-scale dataset featuring 96 relation types.
- DWIE: An entity-centric dataset with 65 relation types, specifically chosen for its requirement of complex, multi-sentence reasoning.
Key Results and Analysis
LogiRE demonstrates significant performance gains across various base models and metrics. On the DWIE dataset, it improved the F1 score by approximately 1.8 points over the state-of-the-art ATLOP model.
Logical Consistency and Interpretability
A standout feature of LogiRE is its ability to ensure logical consistency. The authors introduced a "logic score" to measure how often model predictions align with pre-defined gold rules. As shown in the results table, LogiRE significantly outperforms baseline neural models in this metric, with improvements in consistency reaching up to 18.78% in certain configurations.
Handling Long-Range Dependencies
Logic rules act as "shortcuts" for the model, allowing it to identify high-level intermediate relations that bridge large gaps in text. The performance advantage of LogiRE becomes increasingly pronounced as the distance between entities grows. For entity pairs separated by more than 400 tokens, LogiRE provided a boost of up to 4.47 F1, proving its effectiveness at handling document-wide context where standard representation-based models often fail.
Conclusion and Future Work
LogiRE successfully integrates symbolic reasoning into neural DocRE, providing both performance improvements and human-readable explanations for its predictions. While the current implementation limits rule length to three steps and faces a massive search space for potential rules, it represents a significant step toward more robust and interpretable document-level extraction. Future research will focus on more efficient rule pruning and exploring more complex "chains of thought" through longer logic rules.
Summary updated