Perform like an Engine: A Closed-Loop Neural-Symbolic Learning Framework for Knowledge Graph Inference

Guanglin Niu, Bo Li, Yongfei Zhang, Shiliang Pu

Abstract

Knowledge Graph (KG) completion is a fundamental task in artificial intelligence, traditionally split between interpretable symbolic rule learning and scalable neural KG embeddings (KGE). We present EngineKG, a framework that unifies these paradigms through a "four-stroke" closed-loop architecture. By iteratively refining rules and embeddings in tandem, EngineKG leverages the strengths of both paradigms. Experimental results on four benchmark datasets demonstrate that EngineKG consistently outperforms existing state-of-the-art models in link prediction accuracy while providing human-readable explanations for its inferences.

Introduction

Knowledge Graphs (KGs) serve as the backbone for numerous applications, from search engines to recommendation systems. However, KGs are often incomplete. Existing completion methods generally fall into two categories: symbolic rule learning and KG embeddings. Rule learning offers high interpretability but struggles with scalability and noisy data. Conversely, KGE methods map entities and relations into vector spaces, offering excellent generalization but operating as "black boxes."

EngineKG bridges this gap by treating the inference process as a cyclic engine. This neural-symbolic approach ensures that symbolic rules guide the embedding process, while the learned embeddings facilitate the discovery of more complex and accurate rules.

The EngineKG Framework

The core of EngineKG is its "four-stroke" cycle, which iteratively improves both the rule set and the embedding quality.

The four-stroke engine architecture of EngineKG, illustrating the cycle between rule injection, embedding, and rule learning.
  1. Intake Stroke: The cycle begins by injecting a set of initial "seed" rules into the system. These rules provide the initial structural constraints for the embedding module.
  2. Compression Stroke (KGE Module): This module learns entity and relation embeddings. Unlike standard KGE, EngineKG uses rules to "compose" multi-hop paths into shorter representations and incorporates relation correlations derived from the rule set. This ensures the embeddings respect the logical structure of the KG.
  3. Expansion Stroke (Rule Learning Module): New candidate rules are mined from the graph. To manage the search space, EngineKG employs two pruning strategies: embedding-based semantic relevance (checking if a rule's body is semantically close to its head) and concept-based co-occurrence (using ontological concepts to ensure logical consistency).
  4. Exhaust Stroke: The newly discovered high-quality rules are integrated into the rule set, replacing or augmenting the previous set for the next iteration.

Experimental Evaluation

EngineKG was evaluated on four standard datasets: FB15K, FB15K237, NELL-995, and DBpedia-242. These datasets provide a mix of general knowledge and specific ontological concepts, allowing for a robust assessment of the framework's pruning strategies.

Performance and Iterative Growth

A key finding is the effectiveness of the closed-loop mechanism. As the system iterates, the quality of both the rules and the embeddings improves simultaneously.

Performance metrics (MRR, Hits@10, Hits@1) across iterations, showing steady improvement as the closed-loop cycle progresses.

As shown in the performance curves, EngineKG achieves significant gains in the first few iterations before converging. On the FB15K dataset, it reached a Mean Reciprocal Rank (MRR) of 0.854, outperforming traditional KGE baselines like RotatE. Furthermore, the model showed massive improvements in challenging "Many-to-One" and "One-to-Many" relation predictions, where traditional models often struggle.

Key Insights

  • Mutual Reinforcement: The primary innovation is the feedback loop. Embeddings provide a continuous space for efficient rule pruning, while symbolic rules provide discrete structural constraints that regularize the embeddings.
  • Efficiency: By using embeddings to prune the rule search space, EngineKG is significantly faster than traditional rule mining tools. On FB15K, the rule mining process was approximately 12 times faster per iteration compared to AMIE+.
  • Interpretability: Because the model maintains a set of symbolic rules, it can provide human-readable justifications for its link predictions, solving the "black box" problem inherent in pure neural approaches.

Conclusion

EngineKG demonstrates that neural and symbolic methods are not mutually exclusive but can be integrated into a powerful, self-improving system. By mimicking the cycles of an engine, the framework achieves high accuracy, scalability, and interpretability. Future work will explore extending this framework to dynamic knowledge graphs and incorporating richer metadata such as entity descriptions.

Summary updated

BibTeX
@inproceedings{niu2022perform,
  author = {Guanglin Niu and Bo Li and Yongfei Zhang and Shiliang Pu},
  title = {{Perform like an Engine: A Closed-Loop Neural-Symbolic Learning Framework for Knowledge Graph Inference}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure