[Paper Review] On Evaluation Metrics for Graph Generative Models
This paper proposes scalar, domain-agnostic, and computationally efficient evaluation metrics for graph generative models (GGMs) using untrained random Graph Neural Networks (GNNs) to extract graph representations. The authors introduce random-GNN-based metrics that outperform existing methods in measuring fidelity and diversity, with two recommended metrics depending on sample size, enabling consistent model ranking across domains.
In image generation, generative models can be evaluated naturally by visually inspecting model outputs. However, this is not always the case for graph generative models (GGMs), making their evaluation challenging. Currently, the standard process for evaluating GGMs suffers from three critical limitations: i) it does not produce a single score which makes model selection challenging, ii) in many cases it fails to consider underlying edge and node features, and iii) it is prohibitively slow to perform. In this work, we mitigate these issues by searching for scalar, domain-agnostic, and scalable metrics for evaluating and ranking GGMs. To this end, we study existing GGM metrics and neural-network-based metrics emerging from generative models of images that use embeddings extracted from a task-specific network. Motivated by the power of certain Graph Neural Networks (GNNs) to extract meaningful graph representations without any training, we introduce several metrics based on the features extracted by an untrained random GNN. We design experiments to thoroughly test metrics on their ability to measure the diversity and fidelity of generated graphs, as well as their sample and computational efficiency. Depending on the quantity of samples, we recommend one of two random-GNN-based metrics that we show to be more expressive than pre-existing metrics. While we focus on applying these metrics to GGM evaluation, in practice this enables the ability to easily compute the dissimilarity between any two sets of graphs regardless of domain. Our code is released at: https://github.com/uoguelph-mlrg/GGM-metrics.
Motivation & Objective
- To address the lack of a single, consistent, and scalable metric for evaluating graph generative models (GGMs), which currently rely on multiple, non-unified statistics.
- To overcome limitations of existing metrics, including lack of feature incorporation, high computational cost, and dependence on specific graph statistics.
- To develop a unified, scalar evaluation framework applicable across diverse domains, especially those involving node and edge features such as molecular graphs.
- To evaluate and rank a wide range of metrics objectively based on fidelity, diversity, sample efficiency, and computational efficiency.
- To demonstrate that untrained random GNNs can extract meaningful representations for GGM evaluation, enabling domain-agnostic comparison of graph sets.
Proposed method
- Propose a family of evaluation metrics based on feature activations from a randomly initialized GNN, leveraging its ability to extract meaningful representations without training.
- Use Maximum Mean Discrepancy (MMD) with RBF kernel on GNN-embedded features to compute a scalar distance between real and generated graph sets.
- Evaluate metrics using a comprehensive benchmark across multiple datasets (e.g., Grid, MOL, PROTEINS) and GGMs (e.g., GraphRNN, GRAN) at various training stages.
- Introduce two key metrics: one based on final-layer GNN features and another using a global average pooling of all layers, recommended based on sample size.
- Perform objective scoring using fidelity (F1 PR), diversity (MMD), and efficiency (computation time and sample count) to rank metrics.
- Release code at https://github.com/uoguelph-mlrg/GGM-metrics to enable reproducibility and broad adoption.
Experimental results
Research questions
- RQ1Can untrained random GNNs serve as effective feature extractors for evaluating graph generative models in a domain-agnostic manner?
- RQ2Which scalar metric based on random-GNN features best balances fidelity, diversity, and computational efficiency for GGM evaluation?
- RQ3How do random-GNN-based metrics compare to existing GGM evaluation metrics in terms of expressiveness and consistency across datasets?
- RQ4Does the performance of random-GNN-based metrics depend on the number of generated graphs, and if so, how should the metric be selected accordingly?
- RQ5Can these metrics be used to compare any two sets of graphs, regardless of domain, due to their generalization capability?
Key findings
- The proposed random-GNN-based metrics significantly outperform existing metrics in measuring both fidelity and diversity of generated graphs, as validated by objective scoring.
- For small sample sizes (<100 graphs), the metric using global average pooling across all GNN layers achieves the best balance of fidelity and diversity, with an F1 PR score of 0.995 on the Grid dataset.
- For larger sample sizes (>100 graphs), the final-layer feature-based metric achieves superior performance, with an F1 PR score of 1.0 on the Grid dataset and consistently high scores across other benchmarks.
- The random-GNN-based metrics are computationally efficient, with evaluation times under 1 second for 100 graphs, making them scalable for iterative model training.
- The metrics are robust across domains: they perform well on molecular (MOL), protein (PROTEINS), and synthetic (Grid) datasets, demonstrating domain-agnostic applicability.
- The study identifies that metrics relying solely on graph structure (e.g., degree, clustering) or requiring pretraining (e.g., Fréchet ChemNet Distance) are less expressive and less scalable than the proposed approach.
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.