KGExplainer: Towards Exploring Connected Subgraph Explanations for Knowledge Graph Completion

Tengfei Ma, Xiang Song, Wen Tao, Mufei Li, Jiani Zhang, Xiaoqin Pan, Jianxin Lin, Bosheng Song, Xiangxiang ZengarXiv 2024 · DOI

TL;DR

This paper introduces KGExplainer, a novel method for generating and evaluating connected subgraph explanations for knowledge graph completion (KGC) tasks. By moving beyond isolated facts or simple paths, KGExplainer provides more coherent and human-understandable reasons for model predictions, achieving a remarkable 83.3% success rate in human evaluations.

What Problem Does This Paper Address?

Knowledge graphs (KGs) are powerful tools for representing complex relationships between entities, but they are often incomplete. Knowledge Graph Completion (KGC) aims to fill these gaps by predicting missing links. While deep learning models, particularly Knowledge Graph Embeddings (KGEs), excel at KGC, they operate as "black boxes." This lack of transparency makes it difficult to understand why a particular prediction is made, hindering trust and accountability, especially in critical applications. Existing explanation methods often focus on isolated facts or simple paths, which can be insufficient for complex reasoning. Furthermore, the absence of ground truth for explanations makes quantitative evaluation challenging.

Methods

KGExplainer tackles these issues with a three-pronged approach:

  1. KGE Pre-training: First, a standard KGE model (like RotatE) is trained on the target KG. This serves as the foundation for understanding the data's underlying structure.
  2. Explanation Exploration (Greedy Search): KGExplainer employs a model-agnostic, perturbation-based greedy search to identify connected subgraph explanations. It starts with an "enclosing subgraph" around the target prediction (the fact being explained). Then, it iteratively removes entities and their connections, retraining the KGE model on the perturbed subgraph. By measuring the change in the prediction score, it identifies the most critical entities for the explanation. This process is repeated hop-by-hop from the head to the tail entity, ensuring a connected subgraph.
  3. Subgraph Evaluator Distillation: To quantitatively assess the quality of these subgraph explanations, KGExplainer distills a subgraph evaluator. This evaluator is a relational graph neural network (R-GAT) trained to mimic the predictive performance of the original KGE model, but it only has access to the explanation subgraph. This allows for a fidelity check: how well does the explanation subgraph preserve the original model's prediction?

Datasets

The paper evaluates KGExplainer on three widely used benchmark datasets for KGC:

  • WN-18: A dataset derived from WordNet, featuring lexical relationships.
  • Family-rr: A dataset containing bloodline relationships within families.
  • FB15k-237: A subset of the Freebase knowledge graph, containing general facts.

No new benchmarks were introduced; the focus was on evaluating existing KGC tasks.

Key Insights and Ideas

  • Connected Subgraphs are More Informative: The core idea is that explanations are more coherent and understandable when they form a connected subgraph, rather than just isolated facts or simple paths. This allows for a more complete reasoning chain.
  • Perturbation-Based Greedy Search for Explanations: Instead of relying on pre-defined rules or paths, KGExplainer actively "searches" for the most influential subgraph by perturbing the KG and observing the impact on predictions.
  • Distilled Evaluator for Quantitative Assessment: The lack of ground truth for explanations is a major hurdle. KGExplainer cleverly sidesteps this by training a specialized "evaluator" model that can assess the fidelity of an explanation subgraph without needing external ground truth.
  • Model-Agnosticism is Key: The framework is designed to work with various KGE models, making it broadly applicable.

Key Results

  • High Faithfulness: KGExplainer achieves predictive performance on KGC tasks that is very close to the original KGE models it explains, demonstrating its faithfulness. For example, KGExp-RotatE performed nearly as well as RotatE itself.
  • Superior Explainability: In terms of explainability metrics (F1@1 and Recall@1), KGExplainer significantly outperformed fact-based and path-based baselines across all datasets, showing improvements of up to 21.23% and 7.67% respectively.
  • Human Evaluation Success: A human evaluation study revealed that KGExplainer's explanations were selected as the best 83.3% of the time, highlighting their human-understandability.
  • Efficiency: KGExplainer demonstrates competitive inference times, making it scalable to large knowledge graphs.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of KGExplainer can be influenced by the size of the subgraph explored (controlled by the k parameter). The paper found that a k=2 often yielded the best results, suggesting a trade-off between subgraph size and performance.
  • Generalization to Other Domains: While successful in KGC, the authors suggest generalizing the framework to other domains like vision and text-based applications as a future direction.

Summary updated

BibTeX
@misc{ma2024kgexplainer,
  author = {Tengfei Ma and Xiang Song and Wen Tao and Mufei Li and Jiani Zhang and Xiaoqin Pan and Jianxin Lin and Bosheng Song and Xiangxiang Zeng},
  title = {{KGExplainer: Towards Exploring Connected Subgraph Explanations for Knowledge Graph Completion}},
  year = {2024},
  eprint = {2404.03893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.03893},
}
Figure