TL;DR
PolyGraph Discrepancy (PGD) is a new, classifier-based metric for evaluating graph generative models that replaces the flawed "de facto" standard, Maximum Mean Discrepancy (MMD). By training a hyperparameter-free classifier to distinguish between real and generated graphs, PGD provides an absolute, interpretable score between 0 and 1 that is more robust to small sample sizes and correlates better with actual model quality.
The Problem with Current Graph Evaluation
Evaluating how well a model generates graphs—such as molecular structures or social networks—is surprisingly difficult. Currently, researchers primarily rely on Maximum Mean Discrepancy (MMD), which compares distributions of hand-crafted features (e.g., node degrees or clustering coefficients).
However, MMD suffers from three major "deal-breaker" flaws:
- No Absolute Scale: An MMD value of 0.05 might be considered "good" for one dataset but "bad" for another. It fails to provide an absolute measure of how close the generated distribution is to perfection.
- Hyperparameter Sensitivity: The score changes drastically depending on the chosen "kernel" or feature scaling, making it easy to accidentally (or intentionally) manipulate model rankings.
- The Small Sample Trap: Most graph benchmarks use only 20–40 graphs. At this scale, MMD suffers from high bias and variance, leading to unreliable rankings of which model is actually performing better.
Methods: Introducing PolyGraph Discrepancy (PGD)
The authors propose PolyGraph Discrepancy (PGD), which reframes evaluation as a classification problem.
Instead of using a fixed mathematical distance, PGD trains a powerful, hyperparameter-free classifier called TabPFN to distinguish between a set of "Reference" (real) graphs and "Generated" graphs. The graphs are first converted into vectors using standard descriptors (like orbit counts or Laplacian spectra).
The core logic is intuitive: If a classifier can easily tell your generated graphs apart from real ones, your model is doing a poor job.
- The classifier’s data log-likelihood is used to approximate the Jensen-Shannon (JS) distance.
- Because different descriptors capture different structural flaws, PGD calculates scores for multiple descriptors and performs a max-reduction. It picks the descriptor that yields the highest score (the tightest lower bound on the true distance), effectively identifying the specific structural property where the generative model is failing the most.
Datasets Evaluated
The paper rigorously evaluates PGD across several domains:
- Synthetic/Procedural: Planar graphs, Stochastic Block Models (SBM), and "Lobster" graphs.
- New Benchmarks: The authors introduce SBM-L, Planar-L, and Lobster-L, which are larger versions (4096 samples) of standard benchmarks to enable more stable evaluation.
- Real-World: Protein contact graphs and Citeseer ego-networks.
- Molecules: The standard GuacaMol and MOSES datasets (using 10,000 generated samples).
Key Insights and Results
PGD offers several distinct advantages over traditional MMD metrics, fundamentally improving how we measure generative success.
- Interpretability by Design: Unlike MMD, PGD scores are always constrained to the range $[0, 1]$. A score of 0 means the distributions are indistinguishable (perfect generation), and a 1 means they are completely disjoint.
- Hyperparameter-Free: By using TabPFN, the metric removes the "researcher degrees of freedom" involved in tuning kernels, leading to fairer, standardized comparisons between different papers.
- Identifying Specific Failures: Because PGD provides sub-scores for different descriptors, researchers can pinpoint exactly why their model is failing (e.g., "The model gets the number of edges right, but the local clustering is completely wrong").
- Tracking Training Progress & Validity: In generative modeling, "validity" (e.g., is this a legal molecule?) is a gold-standard check. PGD shows a much stronger linear correlation with validity than MMD does. As models (like DiGress) are trained for more epochs (denoising steps), PGD consistently improves. MMD metrics, conversely, sometimes show "worse" scores even as the model clearly produces more valid graphs.
- Robustness to Noise: In perturbation experiments where real data is intentionally corrupted, PGD tracked the level of noise monotonically, whereas MMD rankings often became erratic.
- Benchmark Stability: On the new "-L" datasets, PGD estimates stabilized at around 256 samples, while MMD required significantly more data to overcome its inherent bias.
Limitations and Future Work
While a significant step forward, PGD has a few limitations:
- Lower Bound Nature: PGD is a lower bound on the true distance. If evaluated using a weak set of descriptors, PGD might report a "0" (perfect) even if the graphs differ in ways those specific descriptors cannot capture.
- Sample Size: While much more robust than MMD, PGD still requires a few hundred samples to reach peak stability.
- Future Expansions: The metric is currently limited to the provided descriptors. Future work could involve using "learned" descriptors from Graph Neural Networks (GNNs) or Large Language Models to make the bound even tighter. Additionally, the authors suggest this multi-descriptor, classifier-based approach could be adapted to other fields, such as improving the sensitivity of the Frechet Inception Distance (FID) in image generation.
Summary updated