Coder Social home page Coder Social logo

finegrain_expressivity_gnn's Introduction

Fine-grained Expressivity of Graph Neural Networks

arXiv

Source code for the paper "Fine-grained Expressivity of Graph Neural Networks" that answers the following research questions:

  • Q1: (distance_preservation) To what extent do our graph metrics act as a proxy for distances between MPNN's learned vectorial representations?
  • Q2: (GNN_untrained) How do untrained MPNNs compared to their trained counterparts in terms of predictive performance?

Requirements

Q1:

  • distance_preservation/Finegrain_MPNN_evaluation.ipynb: experiments comparing graph distance using our metrics and MPNN embedding distances, using simulated SBM graphs and real-world benchmark graphs from TUDataset
    • Reproduce Figure 2, 3, 4, 5
  • distance_preservation/Prokhorov.py: code to compute Prokhorov distance/Wasserstein distance using our metrics on Iterated Degree Measures
  • distance_preservation/compute_dist_TUD.py: code to pre-compute pairwise graph distance using Prokhorov distance/Wasserstein distance for certain TUDatasets

Q2:

  • GNN_untrained/: experiments demonstrate the surprising effectiveness of untrained MPNNs compared to their trained counterparts
    • To reproduce results of MPNNs with graph size normalization (e.g., Table 1 - 3), run python GNN_untrained/main_gnn_mean.py --layer 3 --hid_dim 512 (--hid_dim 128 for Table 3)
    • To reproduce results of MPNNs without graph size normalization (e.g., Table 4), run python GNN_untrained/main_gnn_run.py --layer 3 --hid_dim 128

finegrain_expressivity_gnn's People

Contributors

chrsmrrs avatar nhuang37 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danizil

finegrain_expressivity_gnn's Issues

On library versions

Thank you for your nice work on metrics for graphs!
I would like to replicate your results, but unfortunately, I am struggling with setting environments.
I followed the instructions in README, but it didn't work.
Could you tell me the exact library versions that you used in your experiments?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.