Iteratively Learning Embeddings and Rules for Knowledge Graph Reasoning

Wen Zhang, Bibek Paudel, Liang Wang, Jiaoyan Chen, Hai Zhu, Wei Zhang, Abraham Bernstein, Huajun Chen

Introduction: The Sparsity and Efficiency Crisis

Knowledge Graph Reasoning (KGR) is the task of predicting missing facts within a graph of entities and relations. As knowledge bases like Freebase and WordNet grow, the ability to automatically infer new triples becomes crucial. Currently, the field is divided into two primary paradigms, each with a significant limitation.

Embedding-based Reasoning maps entities and relations into a continuous vector space. While these models are fast and scale well to large graphs, they suffer from a "sparsity problem." Entities with very few connections lack sufficient data to be accurately positioned in the vector space, leading to poor predictive performance.

Rule-based Reasoning utilizes logical axioms (e.g., "If X is the father of Y, then Y is the child of X") to derive new facts. These methods are highly interpretable and precise. However, they face an "efficiency crisis." Searching for logical rules in a massive, discrete graph involves an exponential search space, making traditional symbolic rule mining computationally expensive.

Entity frequency vs. Mean Reciprocal Rank (MRR)

The authors of this paper propose IterE, a framework designed to resolve these issues by creating a "virtuous cycle" where embeddings and rules mutually reinforce one another.

The IterE Framework: A Virtuous Cycle

IterE integrates embedding learning and rule induction into a single iterative process. The core idea is to use embeddings to find rules more efficiently and use those rules to "hallucinate" triples for sparse entities, providing the embedding model with the context it needs to learn better representations.

The IterE framework architecture

The framework consists of three main components:

  1. Embedding Learning: The system learns latent representations of entities and relations. It specifically utilizes the ANALOGY model, which treats relations as linear transformations (matrices) between entity vectors.
  2. Axiom Induction (Rule Discovery): Instead of a brute-force search through the graph, IterE uses the learned relation embeddings to "guess" logical rules. By analyzing the geometric relationships between relation matrices, the system can identify properties like symmetry, transitivity, and inversion.
  3. Axiom Injection: The most reliable rules are used to infer new triples, specifically targeting sparse entities. These inferred triples are injected back into the training set, effectively augmenting the data for the next round of embedding learning.

Methodology: From Matrices to Logic

The technical innovation of IterE lies in how it bridges the gap between continuous vector spaces and discrete logical rules.

Axiom Induction via Embeddings

IterE evaluates seven types of OWL2 object property axioms, including SymmetricOP, TransitiveOP, InverseOP, and EquivalentOP. Under the linear map assumption, these axioms correspond to specific matrix properties. For instance, if a relation $r$ is symmetric, its matrix $M_r$ should satisfy $M_r M_r = I$. The system calculates a score for each potential axiom based on the Frobenius norm of the difference between the expected and actual matrix products. This allows the system to rank and select the most plausible rules without ever performing a traditional graph search.

Data Augmentation with Fuzzy Logic

To prevent noisy or incorrect rules from degrading the embedding quality, IterE employs t-norm based fuzzy logic. Each inferred triple is assigned a "truth value" or confidence score ($s_a$). During the Axiom Injection phase, these scores are used to weight the influence of the "hallucinated" triples during training. This ensures that the model remains robust even if some induced axioms are imperfect.

Experimental Results

The authors evaluated IterE on four benchmark datasets: WN18, WN18RR, FB15k, and FB15k-237. To specifically test the model's ability to handle sparsity, they created "sparse" versions of these datasets where the test and validation sets consist only of triples involving entities from the bottom percentile of frequency.

IterE consistently outperformed standard embedding baselines like TransE, DistMult, and ComplEx. On the FB15k-237-sparse dataset, IterE achieved a Mean Reciprocal Rank (MRR) of 24.7, a significant jump from the 19.8 achieved by the standalone ANALOGY model. This demonstrates that the injected rules successfully anchored sparse entities in the vector space.

Efficiency and Quality of Rule Mining

When compared to AMIE+, a state-of-the-art symbolic rule miner, IterE showed dramatic speed improvements. On the FB15k-sparse dataset, IterE generated rules in just 26 seconds, whereas AMIE+ required 428 seconds. Furthermore, IterE discovered a higher percentage of high-quality rules (HQr) across all datasets, proving that the vector space is a highly effective "shortcut" for logical discovery.

Conclusion

IterE represents a significant step toward unifying symbolic and sub-symbolic reasoning. By treating embeddings and rules as complementary rather than competing methods, it addresses the sparsity problem in embeddings and the efficiency crisis in rule mining simultaneously. Future work may involve extending this framework to more complex "Horn rules" or integrating it with non-linear models like Graph Convolutional Networks.

Summary updated

BibTeX
@inproceedings{zhang2019iteratively,
  author = {Wen Zhang and Bibek Paudel and Liang Wang and Jiaoyan Chen and Hai Zhu and Wei Zhang and Abraham Bernstein and Huajun Chen},
  title = {{Iteratively Learning Embeddings and Rules for Knowledge Graph Reasoning}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313612},
}
Figure