[Paper Review] Understanding Isomorphism Bias in Graph Data Sets
This paper identifies isomorphism bias in 54 widely used graph classification datasets, where repeated isomorphic graphs artificially inflate model accuracy by enabling memorization of labels. The authors propose a method to detect and remove isomorphic instances, release cleaned datasets free of isomorphic bias, and demonstrate that models can achieve up to 5% higher accuracy on biased sets due to memorization rather than generalization.
In recent years there has been a rapid increase in classification methods on graph structured data. Both in graph kernels and graph neural networks, one of the implicit assumptions of successful state-of-the-art models was that incorporating graph isomorphism features into the architecture leads to better empirical performance. However, as we discover in this work, commonly used data sets for graph classification have repeating instances which cause the problem of isomorphism bias, i.e. artificially increasing the accuracy of the models by memorizing target information from the training set. This prevents fair competition of the algorithms and raises a question of the validity of the obtained results. We analyze 54 data sets, previously extensively used for graph-related tasks, on the existence of isomorphism bias, give a set of recommendations to machine learning practitioners to properly set up their models, and open source new data sets for the future experiments.
Motivation & Objective
- To investigate the prevalence of isomorphic graphs in commonly used graph classification datasets.
- To expose how isomorphic instances lead to unfair performance advantages through label memorization.
- To develop and release a methodology for detecting isomorphic graphs in graph datasets using node and edge features.
- To provide cleaned, isomorphism-free datasets to ensure fair evaluation of graph classification models.
- To offer practical recommendations for researchers to avoid isomorphism bias in future experiments.
Proposed method
- Proposed a graph isomorphism detection pipeline that leverages node and edge labels, numerical attributes, and graph topology to identify isomorphic instances.
- Applied orbit-based clustering to group isomorphic graphs and removed duplicates unless they had inconsistent labels.
- Used a heuristic (majority vote) to assign labels to isomorphic instances with consistent labels, and discarded orbits with conflicting labels.
- Evaluated model performance on both original and cleaned test sets to isolate the impact of isomorphism bias.
- Implemented and open-sourced code for isomorphism detection at https://github.com/nd7141/iso_bias.
- Released cleaned datasets at https://github.com/nd7141/graph_datasets, integrated into PyTorch-Geometric for broader usability.
Experimental results
Research questions
- RQ1How prevalent are isomorphic graphs in widely used graph classification datasets?
- RQ2To what extent does isomorphism bias artificially inflate model accuracy in graph classification tasks?
- RQ3What causes the presence of isomorphic graphs in graph datasets, and how can they be detected reliably?
- RQ4Can removing isomorphic instances lead to fairer and more generalizable model evaluation?
- RQ5What are the practical recommendations for researchers to avoid isomorphism bias in future graph learning experiments?
Key findings
- In 54 analyzed graph datasets, up to 100% of graphs were isomorphic, with some datasets containing only 20% unique graphs.
- Many isomorphic graphs had inconsistent labels, rendering them unsuitable for training or evaluation.
- Models achieved up to 5% higher accuracy on biased datasets due to memorization rather than generalization.
- Even strong models like GNNs and graph kernels failed to achieve 100% accuracy on isomorphic instances, indicating inherent limitations in generalization.
- The proposed cleaning method removed isomorphic instances with conflicting labels and retained only one representative per orbit with consistent labels.
- The new cleaned datasets, released with PyTorch-Geometric compatibility, eliminate isomorphism bias and enable fairer model comparison.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.