Abstract
Knowledge Graph Embeddings (KGEs) are essential for representing relational data in vector space, yet their evaluation typically relies on global metrics that obscure local performance variations. We introduce ReliK, a learning-free, embedding-agnostic measure designed to assess the local reliability of KGEs. By analyzing the relative ranking of triples against sampled negative neighbors, ReliK identifies subgraphs where embeddings are likely to fail or succeed. Our experiments across six benchmarks demonstrate that ReliK correlates strongly with standard performance metrics and significantly enhances downstream tasks like rule mining by identifying high-quality data clusters.
1. Introduction
Knowledge Graph Embeddings (KGEs) serve as the foundation for modern semantic web applications, transforming complex relational facts—such as (Leonardo da Vinci, painted, Mona Lisa)—into low-dimensional mathematical vectors. Traditionally, these models are evaluated using "global" metrics like Mean Reciprocal Rank (MRR) or Hits@K, which provide an average performance score across an entire dataset.
However, KGE performance is rarely uniform. A model may exhibit high accuracy for biographical data while failing significantly on geographical or temporal relationships. Until now, researchers lacked a mechanism to assess local reliability—the ability to determine if a specific embedding is trustworthy for a particular subgraph. Furthermore, existing diagnostic methods often require expensive retraining or the execution of downstream tasks just to gauge model health. ReliK addresses these gaps by providing a "health check" for embeddings before they are deployed in production environments.
2. The ReliK Framework
ReliK (Reliability for KGEs) is designed around three core principles: it is embedding-agnostic, learning-free, and locality-aware. Unlike methods that require auxiliary models, ReliK utilizes the scores already produced by the KGE model (e.g., TransE, DistMult, or RotatE).
2.1 Intuition and Ranking
The fundamental intuition behind ReliK is based on relative ranking rather than absolute scores. Absolute scores are often incomparable across different models or even different regions of the same graph. ReliK evaluates a "positive" triple (a known fact) by comparing its score to a set of "negative" triples (corrupted facts created by swapping the head or tail entity). If the model consistently ranks the true fact significantly higher than its immediate negative neighbors, the embedding for that local neighborhood is deemed reliable.
2.2 Scalability via Approximation
Calculating the exact rank for every possible entity-relation combination is computationally prohibitive, scaling at $O(|E| \cdot |R|)$. To mitigate this, the authors developed $ReliK_{Apx}$. This variant employs random sampling to estimate the rank. Empirical tests show that $ReliK_{Apx}$ achieves a 2.5x speedup over the exact calculation while maintaining a negligible Mean Squared Error (MSE) of only 0.002. This allows the measure to scale to massive graphs like YAGO2.
3. Experimental Evaluation
The effectiveness of ReliK was validated across six diverse Knowledge Graph benchmarks:
- Countries: A small-scale graph focused on geographical containment.
- FB15k237: A standard benchmark derived from Freebase, cleaned of inverse relations.
- Codex (S, M, L): Three datasets of varying sizes designed to be more representative of real-world complexity than FB15k237.
- YAGO2: A high-quality, large-scale graph used primarily for rule mining experiments.
4. Key Findings
4.1 Correlation with Standard Metrics
ReliK demonstrates a high Pearson correlation with standard evaluation metrics, including MRR and classification accuracy. This suggests that ReliK can serve as a reliable proxy for model performance in scenarios where ground truth for a downstream task is not yet available.
4.2 Capturing the Locality Property
The research confirms that KGE performance varies wildly across different graph neighborhoods. ReliK successfully captures this variance, allowing practitioners to "debug" their models by identifying specific low-reliability clusters. This is particularly useful for identifying subgraphs where the embedding model has failed to capture the underlying relational logic.
4.3 Enhancing Downstream Tasks
ReliK's utility extends beyond simple diagnostics. In rule mining experiments on YAGO2, the authors used ReliK to identify dense, reliable subgraphs. By focusing on these areas, they discovered 33% of all valid rules using only 26% of the graph. In contrast, random sampling only identified 16% of valid rules using the same amount of data. This indicates that ReliK can significantly improve the efficiency of knowledge discovery processes.
5. Discussion and Future Work
While ReliK provides a robust diagnostic tool, it currently relies on 1-hop neighborhoods. Future iterations may incorporate multi-hop structures to better evaluate embeddings designed for path-based reasoning. Additionally, because ReliK relies on the model's own scoring function, it may be susceptible to biases inherent in that function; if a model is fundamentally flawed and assigns high ranks to noise, ReliK might perceive that noise as reliability.
Moving forward, the authors suggest integrating ReliK directly into the training loop. By identifying "hard" or unreliable parts of the graph in real-time, ReliK could guide the model to focus its learning capacity where it is most needed, potentially leading to more balanced and robust Knowledge Graph Embeddings.
Summary updated