Skip to content

About

Graph Embedding Methods Evaluation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph_Embedding_Eval2025

This repository contains the full experimental pipeline for a systematic evaluation of whole-graph embedding methods on real-world graph classification benchmarks.
The project benchmarks unsupervised structural descriptors and supervised graph neural networks across multiple complementary tasks, following a unified and reproducible protocol.

The work was conducted in the context of the Information Systems course at NTUA and accompanies a detailed experimental report.


Methods Evaluated

We compare three representative whole-graph embedding paradigms:

  • Graph2Vec – unsupervised, subgraph-based embeddings
  • NetLSD – unsupervised, spectral graph signatures
  • GIN (Graph Isomorphism Network) – supervised graph neural network

Unsupervised embeddings are evaluated using downstream classifiers, while GIN is trained end-to-end.


Datasets

Experiments are conducted on standard graph classification benchmarks from TUDataset:

  • MUTAG
  • ENZYMES
  • IMDB-MULTI

These datasets span different domains (chemistry, biology, social networks) and vary in size and complexity.


Evaluation Tasks

Each embedding method is evaluated along four axes:

1. Graph Classification

  • Embeddings used as input to an SVM (Graph2Vec, NetLSD)
  • End-to-end supervised learning (GIN)
  • Metrics: Accuracy, Weighted F1-score, ROC-AUC
  • Hyperparameter tuning with Optuna
  • Multiple random seeds for robustness

2. Clustering

  • k-means and Spectral Clustering on graph embeddings
  • Metrics: Adjusted Rand Index (ARI), Silhouette score
  • Qualitative visualization with t-SNE and UMAP

3. Stability / Robustness Analysis

  • Controlled perturbations:
    • Edge removal and addition
    • Node attribute shuffling (for GIN)
  • Metrics:
    • Embedding stability (mean cosine similarity)
    • Accuracy degradation under perturbations
  • Fixed-seed, deterministic perturbation protocol

4. Efficiency

  • Embedding generation time
  • Training time
  • Hyperparameter tuning overhead

Implementation Details

  • Graph2Vec, NetLSD: KarateClub
  • GIN: PyTorch Geometric
  • Classification & clustering: Scikit-learn
  • Hyperparameter tuning: Optuna
  • Execution environment: Google Colab (GPU for GIN)

All experiments use fixed random seeds to ensure reproducibility.


Key Findings (High-Level)

  • GIN achieves the highest classification performance, especially on MUTAG and ENZYMES.
  • NetLSD provides exceptional stability and robustness to structural perturbations.
  • Graph2Vec serves as a lightweight and efficient baseline but is sensitive to corpus changes.
  • Accuracy, clustering quality, efficiency, and robustness are not strongly correlated, highlighting important practical trade-offs.

Reproducibility

All experiments are fully reproducible using the provided notebooks and fixed seeds.
Results reported in the accompanying report can be regenerated by executing the notebooks in the notebooks/ folder.


Report

A detailed analysis of the experimental setup, results, and discussion is provided in the accompanying PDF report.


Authors

  • Angeliki Spanou-Kapantoni
  • Charalambos-Ioannis Sfiris

School of Electrical and Computer Engineering
National Technical University of Athens

References

About

Graph Embedding Methods Evaluation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages