Path-based Explanation for Knowledge Graph Completion

Heng Chang, Jiangnan Ye, Alejo Lopez-Avila, Jinhua Du, Jia Li

Abstract

Knowledge Graph Completion (KGC) models, particularly those based on Graph Neural Networks (GNNs), often lack interpretability. This paper introduces Power-Link, a path-based explainer designed to generate human-readable reasoning paths for GNN-based KGC. Power-Link utilizes a GPU-friendly "graph-powering" technique to efficiently identify influential paths, overcoming the computational bottlenecks of traditional search algorithms. Experimental results on benchmark datasets demonstrate that Power-Link provides more faithful and interpretable explanations than existing subgraph-based methods while maintaining high scalability.

Introduction

Knowledge Graphs (KGs) represent real-world facts as triplets (e.g., (New York, located_in, USA)). Due to their inherent incompleteness, Knowledge Graph Completion (KGC) models, often powered by Graph Neural Networks (GNNs), are employed to predict missing links. However, GNNs function as "black boxes," providing high accuracy without explaining the underlying reasoning.

Existing Explainable AI (XAI) methods for graphs typically focus on identifying "important subgraphs." In KGs, these subgraphs can be noisy and disconnected, making them difficult for humans to interpret. In contrast, humans naturally prefer paths of reasoning (e.g., John -> born_in -> New York -> located_in -> USA). The primary challenge lies in the computational expense of searching for such paths in massive graphs.

Comparison of Subgraph vs. Path Explanations. Path-based explanations provide a clearer logical chain for human interpretation.

Power-Link introduces a three-stage pipeline to generate path-based explanations efficiently:

  1. Extraction and Pruning: The system extracts a $k$-hop subgraph around the target entities. It applies "$k$-core pruning" to remove low-degree nodes unlikely to contribute to a meaningful explanation, reducing the search space.
  2. Triplet Edge Scorer (TES): A lightweight neural network assigns importance scores to edges within the pruned subgraph. It evaluates local edge features relative to the target triplet being explained.
  3. Path-Enforcing Learning: To avoid slow sequential shortest-path algorithms during training, the authors employ a graph-powering trick. By iteratively multiplying row vectors by the adjacency matrix, the model calculates path probabilities in a fully parallelizable manner on GPUs.
  4. Path Generation: Finally, Dijkstra’s algorithm is applied to the learned importance scores to extract the most influential reasoning paths.
The Power-Link pipeline, illustrating the extraction, scoring, and path-enforcement stages.

The model is optimized using Mutual Information Maximization to ensure faithfulness to the original GNN's logic, combined with a specific Path Loss to encourage the formation of connected chains.

Experimental Evaluation

The authors evaluated Power-Link on standard KGC benchmarks, including FB15k-237 (dense general knowledge) and WN18RR (sparse lexical relations).

Key Metrics and Results

  • Interpretability: In human evaluations, 64.7% of participants preferred Power-Link’s path-based explanations over traditional subgraph baselines.
  • Efficiency: Power-Link achieved a 3.18x speedup over the previous state-of-the-art path-based explainer, PaGE-Link.
  • Scalability: The framework demonstrates a linear relationship between graph size and memory usage, explaining graphs with 140,000 edges using only ~2GB of GPU memory.
  • Faithfulness: The authors introduced $H\Delta R$ (Hit Rate of Rank Drop) to measure how much model confidence decreases when the explanatory path is removed. Power-Link consistently outperformed baselines in $Fidelity+$ and $Fidelity-$ metrics.

Conclusion

Power-Link addresses the critical need for interpretable explanations in GNN-based KGC. By prioritizing paths over subgraphs and leveraging a parallelizable graph-powering technique, it offers a scalable and human-centric approach to XAI in Knowledge Graphs. Future work may explore intrinsic explainability-by-design and improving performance on extremely sparse datasets.

Summary updated

BibTeX
@inproceedings{chang2024path,
  author = {Heng Chang and Jiangnan Ye and Alejo Lopez-Avila and Jinhua Du and Jia Li},
  title = {{Path-based Explanation for Knowledge Graph Completion}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure