Skip to main content
QUICK REVIEW

[Paper Review] A Unified Framework for Rank-based Evaluation Metrics for Link Prediction in Knowledge Graphs

Charles Tapley Hoyt, Max Berrendorf|arXiv (Cornell University)|Mar 14, 2022
Advanced Graph Neural NetworksComputer Science8 citations
TL;DR

This paper proposes a unified theoretical framework for rank-based evaluation metrics in knowledge graph link prediction, introducing improved metrics like adjusted MRR (AMRR) and z-scored metrics (ZMRR) that enhance interpretability and comparability across datasets of varying sizes. By leveraging generalized means and probabilistic adjustments, the authors demonstrate that traditional metrics like MRR are biased by dataset size, while their new metrics reveal more accurate and significant performance differences across models and knowledge graphs.

ABSTRACT

The link prediction task on knowledge graphs without explicit negative triples in the training data motivates the usage of rank-based metrics. Here, we review existing rank-based metrics and propose desiderata for improved metrics to address lack of interpretability and comparability of existing metrics to datasets of different sizes and properties. We introduce a simple theoretical framework for rank-based metrics upon which we investigate two avenues for improvements to existing metrics via alternative aggregation functions and concepts from probability theory. We finally propose several new rank-based metrics that are more easily interpreted and compared accompanied by a demonstration of their usage in a benchmarking of knowledge graph embedding models.

Motivation & Objective

  • To address the lack of interpretability and comparability in existing rank-based evaluation metrics for knowledge graph link prediction.
  • To develop a theoretical foundation for rank-based metrics that enables systematic analysis and improvement.
  • To propose new metrics—such as AMRR, ZMRR, and HMR—that are invariant to dataset size and more reliably reflect model performance.
  • To enable fair benchmarking of knowledge graph embedding models (KGEMs) across diverse datasets with different sizes and properties.
  • To provide open-source implementations of the new metrics in PyKEEN for reproducible evaluation.

Proposed method

  • Proposes a theoretical framework based on generalized power means to unify and analyze rank-based evaluation metrics.
  • Introduces alternative aggregation functions such as harmonic mean rank (HMR), geometric mean rank (GMR), and inverse mean rank (IMR) for improved robustness.
  • Applies rank transformations like inverse and geometric means to reduce sensitivity to extreme values and improve interpretability.
  • Derives probabilistic adjustments (e.g., AMRR, ZMRR) using expected value and variance under random ranking to normalize metrics across datasets.
  • Employs z-score normalization to enable direct comparison of metric values across different knowledge graphs by standardizing against expected performance under randomness.
  • Implements all new metrics in PyKEEN v1.8.0 with closed-form solutions for expectation and variance where possible.

Experimental results

Research questions

  • RQ1How can rank-based evaluation metrics for knowledge graph link prediction be made more interpretable and comparable across datasets of different sizes?
  • RQ2What theoretical properties do existing metrics like MRR and HK exhibit, and how do they break down under dataset size variation?
  • RQ3Can alternative aggregation functions (e.g., harmonic, geometric, inverse means) produce more robust and meaningful evaluation scores?
  • RQ4To what extent do probabilistic adjustments (e.g., z-scores, adjusted means) improve fairness and significance in model comparison?
  • RQ5How do the new metrics reveal performance differences that are obscured by traditional metrics like MRR?

Key findings

  • Traditional MRR shows a strong anti-correlation with dataset size, suggesting it is biased and not comparable across different knowledge graphs.
  • The adjusted MRR (AMRR) and z-scored MRR (ZMRR) metrics eliminate the size bias, enabling fairer comparison of model performance across datasets.
  • On the Nations dataset, ComplEx appears competitive with MRR, but AMRR and ZMRR reveal it underperforms significantly compared to WN18-RR.
  • TuckER appears better on Nations by MRR, but AMRR and ZMRR show it actually performs better on the larger WN18-RR dataset.
  • Z-scored metrics reveal that high MRR scores on smaller datasets (Kinships, Nations) are less statistically significant than those on larger datasets (WN18-RR, FB15k-237).
  • The new metrics are available in PyKEEN v1.8.0 with closed-form solutions for expectation and variance, enabling efficient and standardized evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.