Abstract
While there are a plethora of methods for link prediction in knowledge graphs, state-of-the-art approaches are often black box, obfuscating model reasoning and thereby limiting the ability of users to make informed decisions about model predictions. Recently, methods have emerged to generate prediction explanations for Knowledge Graph Embedding models, a widely-used class of methods for link prediction. The question then becomes, how well do these explanation systems work? To date this has generally been addressed anecdotally, or through time-consuming user research. In this work, we present an in-depth exploration of a simple link prediction explanation method we call LinkLogic, that surfaces and ranks explanatory information used for the prediction. Importantly, we construct the first-ever link prediction explanation benchmark, based on family structures present in the FB13 dataset. We demonstrate the use of this benchmark as a rich evaluation sandbox, probing LinkLogic quantitatively and qualitatively to assess the fidelity, selectivity and relevance of the generated explanations. We hope our work paves the way for more holistic and empirical assessment of knowledge graph prediction explanation methods in the future.
Introduction
Knowledge graphs (KGs) serve as a foundational technology for modern AI applications, ranging from semantic search to drug discovery. Knowledge Graph Embedding (KGE) models are particularly effective at link prediction—the task of inferring missing relationships between entities. However, these models are notoriously opaque; they transform entities and relations into high-dimensional vectors, making it difficult to understand the reasoning behind a specific prediction. For instance, if a model predicts a familial link, users often lack the context to understand which existing graph structures influenced that decision.
This paper introduces LinkLogic, a novel explanation method designed to unmask the "black box" of KGE models. Furthermore, the authors address a critical gap in the field: the lack of standardized benchmarks for evaluating explanation quality. By introducing the Parents Benchmark, the study provides a quantitative framework to measure the fidelity and relevance of generated explanations.
The LinkLogic Method
LinkLogic identifies and ranks specific paths within a graph that drive a model's prediction. The method follows a multi-step process:
- Perturbation: To explain a prediction (e.g., "Maria is the child of Leopold"), LinkLogic introduces Gaussian noise to the entity embeddings.
- Path Scoring: It identifies candidate paths (e.g., Maria $\rightarrow$ sibling $\rightarrow$ Wolfgang $\rightarrow$ parent $\rightarrow$ Leopold) and assesses their influence.
- Surrogate Modeling: A Lasso regression model is trained to map changes in embeddings to changes in the final prediction score.
- Non-Negative Constraints: By enforcing non-negative weights, the surrogate model ensures that explanations only highlight paths that positively support the prediction, enhancing human interpretability.
The Parents Benchmark
To move beyond anecdotal evaluation, the authors developed the Parents Benchmark using family structures from the FB13 and FB14 datasets. This benchmark establishes a "ground truth" for explanations based on logical familial rules. For example, a predicted parent-child relationship can be logically supported by paths through a spouse or a sibling.
This framework allows researchers to "grade" an explainer's performance quantitatively for the first time, assessing whether the paths it highlights are logically relevant to the predicted relationship.
Experimental Results
The evaluation of LinkLogic yielded several key insights:
- High Relevance: Using the Normalized Discounted Cumulative Gain (NDCG) metric, LinkLogic significantly outperformed standard path-score heuristics. It demonstrated a roughly 40% improvement in ranking the most relevant explanations at the top.
- Selectivity and Fidelity: LinkLogic is highly selective, focusing on a small number of high-impact paths rather than overwhelming the user with irrelevant data. It also showed high fidelity ($R^2$ values) for familial relations, indicating that the surrogate model accurately mirrors the underlying KGE model's logic.
- Structural Discovery: In experiments where specific relations (like "sibling") were removed, LinkLogic revealed that the KGE model used "spouse" relations as proxies. This suggests that KGE models can learn complex social structures even without explicit labels.
Discussion and Future Work
LinkLogic provides a practical and efficient solution for explainable AI, generating explanations in under 10 seconds on standard hardware. However, the authors note several areas for future exploration. The current study focused primarily on the ComplEx model and familial relations; future work should test LinkLogic across diverse architectures like Graph Neural Networks (GNNs). Additionally, while the current method explains why a link exists, developing "negative explanations"—explaining why a link was not predicted—remains a compelling challenge for the field.
Summary updated