NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge Graph Embedding With Iterative Guidance From Soft Rules

Shu Guo, Quan Wang, Lihong Wang, Bin Wang, Li Guo

Abstract

Embedding knowledge graphs (KGs) into continuous vector spaces is a focus of current research. Combining such an embedding model with logic rules has recently attracted increasing attention. Most previous attempts made a one-time injection of logic rules, ignoring the interactive nature between embedding learning and logical inference. And they focused only on hard rules, which always hold with no exception and usually require extensive manual effort to create or validate. In this paper, we propose Rule-Guided Embedding (RUGE), a novel paradigm of KG embedding with iterative guidance from soft rules. RUGE enables an embedding model to learn simultaneously from 1) labeled triples that have been directly observed in a given KG, 2) unlabeled triples whose labels are going to be predicted iteratively, and 3) soft rules with various confidence levels extracted automatically from the KG. In the learning process, RUGE iteratively queries rules to obtain soft labels for unlabeled triples, and integrates such newly labeled triples to update the embedding model. Through this iterative procedure, knowledge embodied in logic rules may be better transferred into the learned embeddings. We evaluate RUGE in link prediction on Freebase and YAGO. Experimental results show that: 1) with rule knowledge injected iteratively, RUGE achieves significant and consistent improvements over state-of-the-art baselines; and 2) despite their uncertainties, automatically extracted soft rules are highly beneficial to KG embedding, even those with moderate confidence levels.

Introduction

Knowledge Graphs (KGs) like Freebase and YAGO serve as foundational structured knowledge bases for numerous AI applications. However, these graphs are inherently incomplete. Knowledge Graph Embedding (KGE) addresses this by mapping entities and relations into a continuous vector space, enabling the prediction of missing links. While symbolic logic rules offer rich structural constraints, existing KGE methods often treat them as static, one-time injections or rely exclusively on manually curated "hard" rules. This approach fails to capture the synergy between embedding learning and logical inference and limits scalability due to the manual effort required for rule definition.

The RUGE Framework

The proposed Rule-Guided Embedding (RUGE) framework introduces an iterative paradigm that bridges the gap between symbolic logic and algebraic embeddings. RUGE alternates between two primary stages in a continuous feedback loop:

  1. Soft Label Prediction: The model leverages current embeddings and automatically mined soft rules to predict "soft labels" for unlabeled triples. This process ensures labels remain consistent with the embedding model while satisfying logical constraints.
  2. Embedding Rectification: The model updates entity and relation embeddings (using ComplEx as the base scoring function) by training on both observed labeled triples (hard labels) and the newly generated soft-labeled triples.
The RUGE framework iteratively alternates between soft label prediction and embedding rectification to transfer rule knowledge into embeddings.

By iteratively refining these components, the structured knowledge within logic rules is gradually transferred into the continuous vector space.

Experimental Evaluation

RUGE was evaluated on two standard benchmarks: FB15K (a Freebase subgraph) and YAGO37. The model demonstrated superior performance across all metrics compared to state-of-the-art baselines, including TransE, DistMult, and the base ComplEx model.

Link prediction results on FB15K and YAGO37. RUGE consistently outperforms baselines across MRR and Hits@N metrics.

On the FB15K dataset, RUGE achieved a Mean Reciprocal Rank (MRR) of 0.768, a significant jump from the 0.690 achieved by the base ComplEx model. Similarly, the Hits@1 metric improved by approximately 11%, highlighting the effectiveness of iterative rule guidance.

Key Insights

  • Iterative Synergy: The core innovation lies in the mutual benefit between logical inference and embedding learning. Embeddings provide the "fuzzy" grounding for rules, while rules provide structured corrections for embeddings.
  • Utility of Soft Rules: Automatically extracted rules with moderate confidence levels are sufficient to drive substantial performance gains, making the approach highly scalable and removing the need for hand-crafted rules.
  • Efficiency: Despite its iterative nature, RUGE maintains competitive training efficiency. For instance, on FB15K, training time per iteration only increased slightly from 11.4 seconds (ComplEx) to 14.1 seconds.

Conclusion

RUGE presents a robust framework for integrating symbolic logic into KGE models. By moving beyond static injection and hard rules, it enables more flexible and scalable knowledge transfer. Future work may explore extending this framework to more complex logical structures and validating its performance with diverse base embedding architectures.

Summary updated

BibTeX
@inproceedings{guo2018knowledge,
  author = {Shu Guo and Quan Wang and Lihong Wang and Bin Wang and Li Guo},
  title = {{Knowledge Graph Embedding With Iterative Guidance From Soft Rules}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=BkZiky-_WH},
}
Figure