Inconsistency of evaluation metrics in link prediction
Yilin Bi, Xinshan Jiao, Yan-Li Lee, Tao Zhou
TL;DR
This paper tackles the problem that evaluation metrics for link-prediction algorithms can yield inconsistent algorithm rankings. Through a large-scale study across $340$ real networks and $25$ algorithms, it reveals substantial inconsistency among common metrics, with only $AUPR$, $AUC$-Precision, and $NDCG$ forming a tight cluster, while $AUC$-mROC remains relatively independent. It proves that for a fixed threshold $k$, threshold-dependent metrics are rank-equivalent, and offers practical guidance to use $AUC$ plus one of $AUPR$, $AUC$-Precision, or $NDCG$, reserving threshold-dependent metrics for problem-specific thresholds and recommending $AUC$-mROC only when very few top predictions matter. The work provides four actionable guidelines for metric selection and releases data and code to enable fair, reproducible benchmarking in link prediction, aiming to standardize evaluation practices in the field.
Abstract
Link prediction is a paradigmatic and challenging problem in network science, which aims to predict missing links, future links and temporal links based on known topology. Along with the increasing number of link prediction algorithms, a critical yet previously ignored risk is that the evaluation metrics for algorithm performance are usually chosen at will. This paper implements extensive experiments on hundreds of real networks and 25 well-known algorithms, revealing significant inconsistency among evaluation metrics, namely different metrics probably produce remarkably different rankings of algorithms. Therefore, we conclude that any single metric cannot comprehensively or credibly evaluate algorithm performance. Further analysis suggests the usage of at least two metrics: one is the area under the receiver operating characteristic curve (AUC), and the other is one of the following three candidates, say the area under the precision-recall curve (AUPR), the area under the precision curve (AUC-Precision), and the normalized discounted cumulative gain (NDCG). In addition, as we have proved the essential equivalence of threshold-dependent metrics, if in a link prediction task, some specific thresholds are meaningful, we can consider any one threshold-dependent metric with those thresholds. This work completes a missing part in the landscape of link prediction, and provides a starting point toward a well-accepted criterion or standard to select proper evaluation metrics for link prediction.
