Abstract
There is an increasing interest in developing new models for graph classification problem that serves as a common benchmark for evaluation and comparison of GNNs and graph kernels. To ensure a fair comparison of the models several commonly used datasets exist and current assessments and conclusions rely on the validity of these datasets. However, as we show in this paper majority of these datasets contain isomorphic copies of the data points, which can lead to misleading conclusions. For example, the relative ranking of the graph models can change substantially if we remove isomorphic graphs in the test set. To mitigate this we present several results. We show that explicitly incorporating the knowledge of isomorphism in the datasets can significantly boost the performance of any graph model. Finally, we re-evaluate commonly used graph models on refined graph datasets and provide recommendations for designing new datasets and metrics for graph classification problem.
Introduction
Graph classification is a cornerstone of evaluating Graph Neural Networks (GNNs) and graph kernels. Standard benchmarks like TUDataset are widely used to rank models. However, this study identifies a critical flaw: many of these datasets contain isomorphic copies of graphs across training and test splits. This "isomorphism bias" allows models to achieve high performance through memorization rather than generalization, essentially "cheating" by recognizing identical structures seen during training.
Quantifying Isomorphism Bias
The authors conducted a rigorous audit of 54 popular datasets using the nauty algorithm to identify "graph orbits"—sets of isomorphic graphs. They introduced the $I\%$ metric, representing the proportion of graphs with at least one isomorphic counterpart. In some cases, like the SYNTHETIC dataset, $I\%$ reaches 100%, meaning every graph has a twin.
As shown in Figure 4, datasets like IMDB-BINARY and COLLAB exhibit significant numbers of orbits with sizes greater than one. Large orbits indicate that many graphs in the dataset are structurally identical. This duplication is particularly problematic when isomorphic graphs are split between training and test sets, leading to significant data leakage.
The Role of Labels
While one might expect node or edge labels (e.g., atom types in chemical graphs) to distinguish structurally similar graphs, the research shows that isomorphism persists even in labeled datasets.
Figure 6 illustrates that while adding node labels reduces the size and frequency of orbits (shifting the distribution toward smaller orbit sizes), significant isomorphism remains in datasets like IMUTAG and PROTEINS. Furthermore, some datasets contain "mismatched labels," where identical graphs are assigned different target classes, creating irreducible noise that limits the theoretical maximum accuracy of any model.
Impact on Model Evaluation
To demonstrate the exploitability of this bias, the authors developed "peering models" (e.g., NN-PH, WL-PH) that explicitly check for isomorphism against the training set. These models achieved up to a 5% accuracy boost on standard benchmarks simply by memorizing labels. When evaluated on "cleaned" datasets where duplicates were removed, the relative rankings of popular models like GIN, DGCNN, and DiffPool shifted significantly. For instance, on the IMDB-BINARY dataset, accuracies dropped by 1.2% to 4.8% once duplicates were removed, suggesting that current leaderboards may not accurately reflect true generalization capabilities.
Conclusion
The presence of isomorphic duplicates in graph datasets undermines the validity of current benchmarks. The authors recommend that future research include "isomorphism reports" for new datasets and utilize the provided cleaned versions of TUDatasets to ensure rigorous evaluation of graph classification models. Moving beyond exact isomorphism to structural similarity remains an important area for future work.
Summary updated