Combining Rules and Embeddings via Neuro-Symbolic AI for Knowledge Base Completion

Prithviraj Sen, Breno W. S. R. Carvalho, Ibrahim Abdelaziz, Pavan Kapanipathi, Francois P. S. Luus, Salim Roukos, Alexander G. GrayarXiv 2021

Introduction

Knowledge Graphs (KGs) are fundamental to modern AI, yet they are often incomplete. Knowledge Base Completion (KBC) seeks to predict missing links within these graphs. Historically, researchers have chosen between high-accuracy but opaque embedding-based methods and interpretable but complex rule-based methods. The latter often rely on heavy Recurrent Neural Network (RNN) architectures, which can be difficult to train and interpret. This paper proposes a simpler, "RNN-less" neuro-symbolic approach using Logical Neural Networks (LNNs).

Methodology: Logical Neural Networks for KBC

The authors leverage LNNs, a framework where neurons correspond directly to logical components (e.g., conjunctions, disjunctions). This allows for end-to-end differentiability while maintaining strict logical constraints. Two primary architectures are introduced for learning first-order logic rules:

  1. Chain of Mixtures (LNN-CM): This model learns rules where each "hop" in the body is a weighted mixture of all available relations.
  2. Mixture of Paths (LNN-MP): This model represents a rule as a weighted mixture of various multi-hop paths.
The proposed rule-learning architectures: (a) Chain of Mixtures and (b) Mixture of Paths.

Addressing Data Sparsity

A significant challenge in rule learning is sparsity: many logically valid paths occur rarely in the training data. To mitigate this, the authors incorporate pre-trained Knowledge Graph Embeddings (KGE). These embeddings provide a statistical "prior" to score paths, effectively smoothing the raw counts and guiding the LNN toward meaningful rules even when direct evidence is scarce.

Embedding-smoothed path scores for the Kinship dataset, providing a denser signal for rule learning compared to raw counts.

Experimental Results

The models were evaluated on standard benchmarks including Kinship, UMLS, WN18RR, and FB15K-237.

  • Performance: The LNN-MP model demonstrated significant improvements over existing rule-based baselines like NeuralLP and DRUM, achieving a 2% to 10% increase in Mean Reciprocal Rank (MRR).
  • State-of-the-Art Comparison: When augmented with KGE (specifically CP-N3), the LNN-MP approach reached performance levels competitive with the state-of-the-art RNNLogic model, despite its simpler architecture.
  • Interpretability: Because LNN weights map directly to logical importance, the models produce human-readable rules. For instance, the model correctly inferred that a person's language is often determined by their nationality and the primary language of that nation.

Conclusion

This work demonstrates that complex RNNs are not strictly necessary for high-performance rule-based KBC. By combining the interpretability of LNNs with the statistical smoothing of KGEs, the authors provide a robust, transparent framework for reasoning over Knowledge Graphs. Future work will explore hybrid architectures that unify the CM and MP approaches and investigate scaling to longer-range logical dependencies.

Summary updated

BibTeX
@misc{sen2021combining,
  author = {Prithviraj Sen and Breno W. S. R. Carvalho and Ibrahim Abdelaziz and Pavan Kapanipathi and Francois P. S. Luus and Salim Roukos and Alexander G. Gray},
  title = {{Combining Rules and Embeddings via Neuro-Symbolic AI for Knowledge Base Completion}},
  year = {2021},
  eprint = {2109.09566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.09566},
}
Figure