Abstract
Knowledge Base (KB) embedding models are powerful tools for link prediction but operate as uninterpretable black boxes. This paper introduces a pedagogical framework to extract human-readable explanations from these models. By training a transparent student model (logistic regression) to mimic a complex teacher model, we extract weighted Horn rules that reveal the symbolic logic underlying high-dimensional vector predictions. Our evaluation on standard benchmarks demonstrates that this approach achieves high fidelity and can even identify instances where models reason correctly for the wrong reasons.
Introduction
Knowledge Bases—large-scale repositories of facts like "Paris is the capital of France"—are fundamental to modern AI and search engines. However, they are inherently incomplete. Embedding models address this by mapping entities and relations into a high-dimensional vector space to predict missing links. While accurate, these models are opaque; a vector of hundreds of numbers provides no intuition as to why a specific relationship, such as a person's profession or marital status, was predicted. This lack of transparency hinders trust and debugging. This research aims to bridge the gap between the continuous mathematics of embeddings and the symbolic logic humans use for reasoning.
Methods
The authors employ a pedagogical approach, treating the complex embedding model as a black box and learning a simpler, transparent model from its behavior. They propose the XKE (Explaining Knowledge Embeddings) framework, which exists in two primary variants:
- XKE-PRED: This variant assesses the model's internal coherence. It constructs a "predicted graph" based on the black box's own outputs and extracts rules from this synthetic structure using a nearest-neighbor strategy in the embedding space.
- XKE-TRUE: This variant explains predictions using external, ground-truth knowledge. It identifies which real-world features correlate most strongly with the model's decisions.
Both methods utilize Subgraph Feature Extraction (SFE) to convert relational paths (e.g., Person A → spouse → Person B → religion → Religion X) into binary features. These features are then processed by a logistic regression model, where the learned weights correspond to the strength of extracted Horn rules (logical "if-then" statements).
Experimental Setup
The framework was evaluated on two standard Knowledge Base benchmarks:
- FB13: A subset of Freebase containing 13 relations and 75,043 entities.
- NELL186: A subset of the "Never-Ending Language Learner" featuring 186 relations and approximately 14,463 entities.
Results and Analysis
Quantitative Performance
The XKE variants were tested for their ability to mimic the teacher model (fidelity) and their overall predictive accuracy. As shown in the results table below, the methods achieved over 80% fidelity in cases where relational features could be successfully extracted.
Notably, in the NELL186 dataset, the interpretable student model occasionally outperformed the teacher embedding model in accuracy. This suggests that for certain relational structures, simple symbolic rules may be more robust than complex vector-based representations.
Qualitative Interpretability
A key advantage of the pedagogical approach is the generation of human-auditable rules. The extracted rules are kept concise, averaging approximately three relations per path. This allows users to identify when a model is "right for the wrong reasons."
For instance, the qualitative analysis (Figure 3) illustrates how specific reasons (e.g., "parents, religion") contribute to the final XKE score. It also highlights potential pitfalls, such as rules that might incorrectly associate a person's cause of death with their profession, providing a clear path for model debugging.
Discussion and Future Work
While the XKE framework provides significant transparency, it faces challenges regarding feature sparsity. In roughly 50% of test cases, no connecting paths could be found, forcing the explanation to rely on a non-descriptive "bias" term. Additionally, the computational cost of generating the predicted graph for XKE-PRED scales quadratically with the number of entities, posing a hurdle for massive KBs.
Future research will focus on exploring more complex feature types beyond simple paths and developing localized explanation methods to provide deeper insights into particularly difficult or anomalous predictions.
Summary updated