From Chain to Tree: Refining Chain-like Rules into Tree-like Rules on Knowledge Graphs

Wangtao Sun, Shizhu He, Jun Zhao, Kang Liu

Abstract

Knowledge Graph Completion (KGC) often relies on simple "chain-like" rules that lack the precision to handle complex reasoning. This paper introduces a framework to refine these chains into "tree-like" rules by adding branching constraints, significantly boosting reasoning accuracy and "Standard Confidence," especially in dense knowledge graphs.

Introduction

Knowledge Graphs (KGs) serve as massive repositories of structured facts, such as "Paris is the capital of France." Completing these graphs—filling in missing links—is a fundamental task in AI. Symbolic rules are favored for this task due to their interpretability and controllability. However, most existing methods induce chain-like rules (e.g., $live(X, Y) \land lang(Y, Z) \Rightarrow speak(X, Z)$).

Conceptual transition from chain-like to tree-like rules via rule refinement.

While easy to discover, these chains are often too "loose." For instance, if a person lives in a country with multiple official languages, a simple chain might incorrectly predict they speak all of them. These rules suffer from low Standard Confidence (precision) because they lack the semantic constraints necessary to filter out incorrect "groundings" during reasoning.

Refining Rules into Tree Structures

To address these limitations, we propose a framework that evolves existing chain-like rules into tree-like rules. A tree-like rule incorporates "branch atoms"—additional triplets that attach to the main chain to narrow down variable values.

The refinement process follows a three-step pipeline:

  1. Forward Reasoning: The system samples entities for the starting variable ($X$) and propagates them through the rule to compare predictions against ground truth. This identifies "positive" groundings (correct) and "negative" groundings (errors).
  2. Backward Reasoning: Using an abductive approach, the system works backward to identify which intermediate entities contributed to incorrect outcomes.
  3. Candidate Atom Selection: Potential branch atoms are evaluated based on their ability to "mask" negative groundings while preserving positive ones. These branches include:
  4. AUX: Connecting a variable to an auxiliary concept (e.g., "Y is a capital city").
  5. ENT: Connecting a variable to a specific entity (e.g., "Y is Italy").
  6. QRY: Adding an extra relation back to the original query variable (e.g., "X was born in Y").

Experimental Evaluation

The framework was evaluated on four standard KGC benchmarks: FB15k-237 (dense Freebase subset), WN18RR (sparse WordNet subset), UMLS (dense medical KG), and YAGO3-10 (general knowledge). We tested the refiner on rules generated by three base methods: BBFS (search-based), AMIE (symbol-based), and AnyBurl (reinforcement learning-based).

Key Results

Tree-like rules consistently demonstrated superior performance over their chain-like counterparts. As shown in the table below, the refined rules improved Mean Reciprocal Rank (MRR) and Hits@k across nearly all datasets and miners.

Link prediction performance comparison between chain-like and tree-like rules across multiple datasets and miners.

Key findings include:

  • Precision Boost: Standard Confidence saw significant gains. For example, on FB15k-237, AMIE-mined rules improved from 30.71% to 56.63% confidence.
  • Density Correlation: The effectiveness of tree-like rules is highly correlated with KG density (Pearson correlation of 0.844). In dense graphs, tree-like rules provide the necessary constraints to navigate "distractor" paths.
  • Universal Compatibility: As a post-processing refiner, this framework can be "plugged in" to improve rules generated by almost any existing KGC rule-induction method.

Conclusion

By treating branches as semantic filters, our framework effectively prunes the search space for KGC. Future work will focus on scaling the process for massive graphs and exploring automated discovery of complex tree structures from scratch in an end-to-end differentiable manner.

Summary updated

BibTeX
@inproceedings{sun2025from,
  author = {Wangtao Sun and Shizhu He and Jun Zhao and Kang Liu},
  title = {{From Chain to Tree: Refining Chain-like Rules into Tree-like Rules on Knowledge Graphs}},
  booktitle = {Workshops @ COLING},
  year = {2025},
}
Figure