[Paper Review] Interpreting Embedding Models of Knowledge Bases: A Pedagogical Approach
This paper proposes two pedagogical methods—XKE-PRED and XKE-TRUE—to interpret black-box knowledge base embedding models by extracting weighted Horn rules from learned embeddings. By mapping predictions to interpretable relational rules based on subgraph features, the approach improves model transparency while maintaining high fidelity and accuracy, especially when using ground-truth labels for feature extraction.
Knowledge bases are employed in a variety of applications from natural language processing to semantic web search; alas, in practice their usefulness is hurt by their incompleteness. Embedding models attain state-of-the-art accuracy in knowledge base completion, but their predictions are notoriously hard to interpret. In this paper, we adapt "pedagogical approaches" (from the literature on neural networks) so as to interpret embedding models by extracting weighted Horn rules from them. We show how pedagogical approaches have to be adapted to take upon the large-scale relational aspects of knowledge bases and show experimentally their strengths and weaknesses.
Motivation & Objective
- To address the poor interpretability of state-of-the-art embedding models in knowledge base completion.
- To adapt pedagogical techniques—originally for neural networks—to relational knowledge bases with structured, symbolic outputs.
- To generate interpretable, weighted Horn rules that explain embedding model predictions using subgraph features.
- To evaluate the trade-offs between fidelity, accuracy, and interpretability in rule extraction from embeddings.
- To provide a foundation for future methods in explaining embedding-based knowledge base reasoning.
Proposed method
- Adapts pedagogical approaches by training an interpretable model (logistic regression) on features derived from an embedding model's predictions.
- Uses subgraph feature extraction (SFE) to generate binary features representing path types between entities in a knowledge graph.
- Constructs feature matrices from k random walks around each entity, merging subgraphs to form path-based features for each (head, relation, tail) triple.
- Applies two variants: XKE-PRED uses predictions from the embedding model as supervision; XKE-TRUE uses ground-truth labels as supervision.
- Extracts weighted Horn rules from the interpretable model, where each rule corresponds to a path in the knowledge graph with associated confidence scores.
- Employs a threshold-based classification for triple existence, using learned parameters to generate human-readable explanations.
Experimental results
Research questions
- RQ1Can pedagogical approaches be effectively adapted to interpret embedding models in relational knowledge bases?
- RQ2How do XKE-PRED and XKE-TRUE compare in terms of fidelity and accuracy when explaining embedding model predictions?
- RQ3What is the impact of using model predictions versus ground truth as supervision for rule extraction?
- RQ4To what extent can extracted weighted Horn rules capture meaningful, interpretable patterns from complex embedding representations?
- RQ5How do feature sparsity and path complexity affect the interpretability and performance of the extracted rules?
Key findings
- XKE-TRUE achieved 90.41% accuracy on NELL186 when trained on ground-truth labels, outperforming the embedding model’s own accuracy in some cases.
- XKE-PRED achieved 78.97% weighted accuracy on FB13, with 71.88% accuracy on examples with at least one feature extracted.
- XKE-TRUE showed higher fidelity than XKE-PRED on average, though both methods had limited coverage due to sparse feature extraction.
- In qualitative analysis, XKE-TRUE provided semantically meaningful explanations (e.g., familial religious ties), while XKE-PRED sometimes generated nonsensical rules (e.g., linking cause of death to profession).
- The method revealed internal inconsistencies in embedding models, such as spurious correlations between unrelated concepts.
- When the interpretable model’s accuracy exceeded the black-box model’s, XKE-TRUE was preferred for both prediction and explanation, suggesting a path to replacing embeddings with interpretable models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.