Abstract
Knowledge Graphs (KGs) are pivotal for representing complex biomedical interactions, yet they are often plagued by incompleteness. While Knowledge Graph Embeddings (KGEs) effectively capture statistical patterns in latent space, they frequently fail to incorporate explicit domain-specific logical constraints. This paper presents a neuro-symbolic framework utilizing Relational Reasoning Networks (R2N) to integrate First-Order Logic (FOL) rules with KGEs. By leveraging automatically mined logic rules, the proposed method achieves a new state-of-the-art on the PharmKG benchmark, demonstrating that symbolic reasoning significantly enhances the predictive accuracy of sub-symbolic representations.
Introduction
In the biomedical domain, Knowledge Graphs serve as the backbone for understanding relationships between genes, diseases, and drugs. These graphs facilitate critical tasks such as drug-target interaction prediction and gene-disease association discovery. However, real-world KGs are notoriously incomplete. To address this, researchers typically employ Knowledge Graph Embeddings (KGEs), which map entities and relations into a low-dimensional vector space to predict missing links.
Despite their success, KGEs are "sub-symbolic" and struggle to account for explicit domain knowledge—such as the transitivity of disease hierarchies or the reciprocal nature of certain protein interactions. Conversely, symbolic logic systems can represent these rules perfectly but lack the flexibility and scalability of neural embeddings. The challenge lies in bridging this gap without requiring exhaustive manual rule-writing by domain experts.
Methodology: Relational Reasoning Networks (R2N)
This research employs a neuro-symbolic architecture known as Relational Reasoning Networks (R2N) to refine latent embeddings using logical constraints. The pipeline consists of five primary stages:
- Initial Embedding Generation: The process begins with a standard KGE model, specifically DistMult, to create initial vector representations for all entities and relations within the graph.
- Automated Rule Mining: To avoid the bottleneck of manual rule engineering, the authors utilize AMIE, an automated tool that mines Horn Clauses (e.g., if A is a child of B, and B is a child of C, then A is a child of C) directly from the dataset.
- Factor Graph Construction: The mined rules are used to construct a factor graph. In this graph, nodes represent "atoms" (potential facts or triples), and factors represent the logical dependencies defined by the rules.
- Neural Message Passing: The R2N functions as a message-passing algorithm over the factor graph. Through multiple "Reasoning Layers," the model updates the embedding of an atom based on the embeddings of logically related atoms. This allows the model to "reason" about the likelihood of a fact based on its logical context.
- Residual Learning: To maintain the strengths of the original statistical embeddings, the reasoning layers learn a residual update. This ensures the model refines the existing knowledge rather than discarding the statistical patterns captured by the initial KGE.
Experimental Setup and Datasets
The model was evaluated on PharmKG, a comprehensive multi-relational biomedical benchmark. PharmKG consists of approximately 500,000 triples involving 7,000 entities (genes, chemicals, and diseases) and 28 distinct relation types. These relations range from "pathogenesis link" to "possible therapeutic effect," representing a high degree of biological complexity.
Results and Discussion
The integration of logic rules via R2N yielded a significant performance boost, establishing a new state-of-the-art (SOTA) on the PharmKG dataset.
Performance Metrics
Compared to the previous SOTA model (HRGAT), the R2N approach showed marked improvements across all standard metrics:
- Mean Reciprocal Rank (MRR): Increased from 0.154 to 0.215.
- Hits@10: Improved from 0.315 to 0.342.
- Hits@1: Nearly doubled, rising from 0.074 to 0.145.
The dramatic increase in Hits@1 suggests that logical reasoning is particularly effective at resolving ambiguity in top-ranked predictions, where statistical patterns alone might be insufficient to distinguish between similar candidates.
Key Insights
- Logic as a Refiner: The study demonstrates that logic should not be viewed as a rigid "hard constraint" but as a mechanism for refining latent representations. The message-passing approach allows the model to weigh logical rules against observed data.
- The Power of Automated Rules: A significant finding is that even noisy, automatically mined rules provide enough structural signal to improve performance. This eliminates the need for thousands of hours of expert manual labor.
- Precision vs. Recall: Ablation studies revealed that selecting rules based on Precision-based metrics (such as PCA Confidence) is more effective than selecting based on frequency (Recall). High-quality, targeted rules are more beneficial than broad, frequent rules that may introduce logical errors.
Conclusion and Future Directions
By combining the statistical power of KGEs with the structural rigor of First-Order Logic, the R2N framework provides a robust solution for biomedical knowledge graph completion. While the current implementation uses a heuristic for grounding formulas to maintain scalability, future work will explore more complex logical structures and recursive rules. Additionally, the researchers plan to test the generalizability of this automated rule-mining approach on larger, non-biomedical datasets to determine its broader applicability in the field of neuro-symbolic AI.
Summary updated