TL;DR
Current methods for evaluating knowledge graph embedding models (KGEs) are insufficient for assessing their ability to complete knowledge bases. This paper introduces a new evaluation protocol, entity-pair ranking (PR), and demonstrates that popular KGE models perform poorly on knowledge base completion tasks, often being outperformed by a simple rule-based model.
What Problem Does This Paper Address?
Knowledge graphs (KBs) are vast collections of facts, but they are inherently incomplete. Knowledge graph embedding (KGE) models aim to learn low-dimensional representations of entities and relations to infer these missing facts. However, the standard evaluation protocol for KGEs, called entity ranking (ER), is designed for question answering (QA) and doesn't accurately reflect performance on knowledge base completion (KBC). The ER protocol only evaluates a subset of a model's predictions by generating questions from known true triples. This means models that assign high scores to incorrect but plausible triples might not be penalized, leading to an overestimation of their KBC capabilities. The authors argue that this discrepancy means many KGE models, despite good ER scores, are not well-suited for the actual task of KBC.
Methods
The paper's core contribution is the proposal of a new evaluation protocol called entity-pair ranking (PR). Unlike the ER protocol, which ranks answers to specific questions derived from true triples, the PR protocol ranks all possible entity pairs for a given relation. This comprehensive ranking allows for a more direct assessment of a model's ability to identify true triples among all possibilities.
The authors also introduce two metrics for the PR protocol:
- Weighted MAP@K (Mean Average Precision): Measures the average precision of the top-K ranked triples for each relation, weighted by the number of test triples for that relation.
- Weighted Hits@K: Measures the proportion of true triples found within the top-K ranked predictions, also weighted by the number of test triples.
They also explore type filtering as a post-processing step to see if filtering out predictions inconsistent with entity types and relation domain/range constraints improves performance.
Datasets
The study uses four common benchmark datasets for knowledge base completion:
- FB15K: A widely used dataset derived from Freebase.
- WN18: A dataset derived from WordNet.
- FB-237: A subset of FB15K designed to be more challenging for embedding models.
- WNRR: Another dataset designed to be more challenging.
The paper notes that FB15K and WN18 were previously considered "too easy" for embedding models based on ER results, motivating the creation of datasets like FB-237.
Key Insights and Ideas
- The ER protocol is misleading for KBC: The ER protocol's focus on specific, known-true triples means it doesn't penalize models for assigning high scores to plausible but false triples. This is a critical flaw when evaluating KBC, where the goal is to distinguish true facts from a vast space of possibilities.
- Popular KGE models struggle with KBC: Despite achieving good scores on the ER protocol, many state-of-the-art KGE models perform poorly on the more realistic PR protocol, often failing to identify true triples effectively.
- Simple rule-based models can be surprisingly effective: A simple rule-based model (RuleN) often outperformed complex embedding models on the PR protocol, suggesting that capturing logical patterns might be more crucial for KBC than complex latent representations alone.
- Type consistency matters: Filtering predictions based on entity types and relation domain/range constraints significantly improves the performance of KGE models, indicating that they often fail to capture these fundamental constraints.
Key Results
- On the PR protocol, most KGE models showed unsatisfactory performance, even on datasets previously considered easy. For instance, DistMult's Hits@100 on WN18 was less than 10%, meaning over 90% of predicted triples could be false.
- The RuleN baseline model often achieved superior performance on the PR protocol compared to embedding models, particularly on FB15K and WN18.
- Type filtering improved the performance of all KGE models, with DistMult showing considerable gains. This suggests that KGE models often predict type-inconsistent triples.
- The PR evaluation was found to be about 3-4 times slower than ER, taking approximately 30-90 minutes for evaluation.
Limitations and Future Work
- Underestimation of performance: The authors acknowledge that the PR protocol, like ER, can underestimate model performance due to unobserved true triples being treated as negatives. However, they found this is not the primary reason for the low PR performance of KGE models.
- Computational cost of PR: While feasible for current datasets, the PR protocol is more computationally expensive than ER. Future work could explore optimizations like maximum inner-product search.
- Need for better KGE models and training strategies: The consistently poor performance of KGE models on KBC tasks, even with type filtering, highlights the need for further research into developing more effective KGE architectures and training methodologies specifically for knowledge base completion.
Summary updated