Abstract
Knowledge Graph Embeddings (KGEs) have become fundamental in graph-based machine learning, yet their high-dimensional nature makes them difficult to interpret. This paper introduces a demo for FeaBI (Feature selection-Based Interpretation), a framework designed to provide human-readable explanations for KGEs. By mapping abstract vectors back to the original symbolic data of a Knowledge Graph (KG), FeaBI identifies the most influential graph structures driving entity similarity. The demo showcases an interactive web application that allows researchers to debug models and understand the "why" behind embedding-based predictions.
Introduction
Knowledge Graph Embeddings (KGEs) map entities and relations into low-dimensional vector spaces, enabling tasks like link prediction and recommendation. However, these embeddings are often "black boxes." For instance, if a model determines that "Isaac Newton" and "Albert Einstein" are similar, it does so through complex mathematical transformations that offer no intuitive justification to users. This lack of transparency hinders trust and complicates model debugging. The FeaBI framework addresses this by bridging the gap between latent vector representations and symbolic graph features.
Methods and Framework
The FeaBI framework operates by treating pre-computed KGE vectors as targets for reconstruction using interpretable graph features. The process consists of three main stages:
- Feature Generation: The system extracts "propositional features" from the KG, representing the local neighborhood of entities, such as specific relations and connected nodes.
- Feature Selection: Using techniques like Random Forests, FeaBI identifies which graph features are most critical for reconstructing the embedding model’s vectors. This identifies what the model has "learned" to prioritize.
- Explanation Generation: The system produces both general model explanations (ranked lists of globally important features) and specific similarity explanations (shared features between two entities).
The demo is implemented as a web application with a Python backend and an interactive frontend, supporting various KGE architectures such as TransE, CompGCN, NodePiece, and SNoRE. Users can also upload custom KGs in .tsv format and pre-trained embeddings in .json format.
Key Insights and Results
A primary advantage of FeaBI is its model-agnostic nature, allowing for the comparison of how different algorithms interpret the same underlying data. The framework effectively "reverse-engineers" the embedding space by using graph features to predict the embeddings themselves.
The demo provides an interactive interface for exploring these explanations. Users can select an entity, view its nearest neighbors in the embedding space, and click to see a detailed breakdown of the features contributing to that similarity.
Experimental results on benchmarks like DBpedia50 and FB15k237 demonstrate the efficiency of the approach. Feature construction and selection are completed in under 33 seconds even for larger datasets, making the tool suitable for real-time exploration. The demo successfully highlights specific features, such as profession.{physicist}, that drive similarity, providing a clear bridge between symbolic logic and vector-based learning.
Conclusion and Future Work
FeaBI offers a significant step toward making KGEs interpretable and trustworthy. While the current demo focuses on entity embeddings, future research will explore explaining relation embeddings and integrating higher-level semantic information from ontologies. Additionally, further optimizations are planned to ensure scalability for massive, industrial-scale Knowledge Graphs.
Summary updated