On the Use of Unrealistic Predictions in Hundreds of Papers Evaluating Graph Representations

Li-Chung Lin, Cheng-Hung Liu, Chih-Ming Chen, Kai-Chin Hsu, I-Feng Wu, Ming-Feng Tsai, Chih-Jen Lin

Abstract

In the field of graph representation learning (GRL), a widespread but flawed evaluation practice has emerged: assuming the number of labels for a test node is known a priori during the prediction stage. This paper demonstrates that this "unrealistic" setting significantly inflates performance metrics, particularly Micro-F1, creating a misleading benchmark for model utility. Through theoretical analysis and extensive empirical evaluation, the authors expose the scale of this issue and provide a suite of realistic alternatives for multi-label node classification.

Introduction

Unsupervised graph representation learning aims to map nodes into low-dimensional vectors that preserve structural information for downstream tasks. A primary application is node classification, where a single node (e.g., a user in a social network) often belongs to multiple categories simultaneously. This necessitates a multi-label classification approach. However, a critical flaw has permeated the literature: researchers frequently evaluate their models by providing the classifier with the ground-truth number of labels for each test instance. If a node has $K_i$ labels, the model simply selects its top $K_i$ predictions. In real-world deployments, $K_i$ is unknown, making this setting an unrealistic "cheating" benchmark.

Dataset Characteristics and the Thresholding Trap

The prevalence of this practice stems from the inherent difficulty of multi-label classification on imbalanced datasets. In many GRL benchmarks, most nodes have very few labels, leading standard classifiers to predict "no labels" to minimize error. To avoid the complexity of tuning thresholds for each label, researchers adopted the shortcut of using ground-truth counts.

Statistics of the four datasets used in the study, highlighting the difference between sparse (BlogCatalog, Flickr, YouTube) and dense (PPI) label distributions.

As shown in Figure 1, datasets like BlogCatalog and Flickr are relatively sparse, with an average of fewer than 1.5 labels per instance. In contrast, the Protein-Protein Interaction (PPI) dataset is heavily multi-labeled, with an average of over 38 labels per node. These differences significantly influence how much the unrealistic setting artificially boosts performance.

Performance Inflation and Metric Robustness

The authors provide mathematical proofs showing that knowing the true number of labels pushes the Micro-F1 score toward its maximum possible value. Empirically, they compared the unrealistic setting against several realistic baselines, including standard one-vs-rest classification, thresholding based on validation data, and cost-sensitive learning to handle class imbalance.

Comparison of unrealistic vs. realistic prediction methods across different embedding techniques and datasets. The unrealistic setting consistently inflates Micro-F1 scores.

As illustrated in Figure 2, the unrealistic setting significantly outperforms all realistic methods on Micro-F1. For example, on BlogCatalog using DeepWalk embeddings, the unrealistic Micro-F1 is 0.417, while the realistic one-vs-rest-basic-C is only 0.344. Interestingly, Macro-F1 appears more robust; realistic methods like thresholding and cost-sensitive learning can achieve Macro-F1 scores very close to the unrealistic setting. This suggests that Macro-F1, which weights all labels equally, is a more reliable metric for GRL evaluation than Micro-F1, which is dominated by frequent labels.

Practical Alternatives for Realistic Evaluation

To move the field toward more rigorous standards, the authors propose and evaluate several realistic alternatives:

  • Thresholding: Determining an optimal score cutoff for each label using a validation set.
  • Cost-Sensitive Learning: Adjusting the training loss to account for the sparsity of positive labels.
  • The "No-Empty" Trick: For datasets where most nodes have at least one label, forcing the model to predict at least the single highest-ranked label (one-vs-rest-no-empty) can recover much of the performance lost when moving away from the cheating setting without using privileged information.

To facilitate this transition, the authors released LibMultiLabel, a library designed to help researchers easily implement these realistic evaluation settings.

Conclusion

The "unrealistic" evaluation setting has led to a decade of inflated benchmarks in graph representation learning. While the relative ranking of embedding methods like DeepWalk, Node2vec, and LINE often remains consistent, the absolute performance gaps are frequently exaggerated. By adopting realistic multi-label prediction methods and prioritizing robust metrics like Macro-F1, the GRL community can ensure that reported progress reflects genuine improvements in real-world model utility.

Summary updated

BibTeX
@inproceedings{lin2022use,
  author = {Li-Chung Lin and Cheng-Hung Liu and Chih-Ming Chen and Kai-Chin Hsu and I-Feng Wu and Ming-Feng Tsai and Chih-Jen Lin},
  title = {{On the Use of Unrealistic Predictions in Hundreds of Papers Evaluating Graph Representations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20712},
}
Figure