Skip to content

Code and Data for the paper: On the Expressivity and Sample Complexity of Node-Individualized Graph Neural Networks (NeurIPS 2024)

License

Notifications You must be signed in to change notification settings

BorgwardtLab/NodeIndividualizedGNNs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Individualized GNNs

This repository implements the models and the experiments in the NeurIPS 2024 paper "On the Expressivity and Sample Complexity of Node-Individualized Graph Neural Networks". The paper is available here.

Description

Graph neural networks (GNNs) employing message passing for graph classification are inherently limited by the expressive power of the Weisfeiler-Lehman (WL) test for graph isomorphism. Node individualization schemes, which assign unique identifiers to nodes (e.g., by adding random noise to features), are a common approach for achieving universal expressiveness. Here, we address the expressivity and the sample complexity of GNNs endowed with node individualization schemes.

In particular, we provide a novel individualization scheme, TinhoferW, that ensures universal expressivity while maintaining a low sample complexity. You can find the PyG transform implementing it in models/tinhofer.py.

Moreover, we provide a novel model architecture EGONN for the subgraph identification (i.e., subgraph isomorphism) task. You can find the PyG model implementing it in models/egonn.py and examples of its usage in patterns/.

Citing our work

Paolo Pellizzoni, Till Schulz, Dexiong Chen and Karsten Borgwardt. On the Expressivity and Sample Complexity of Node-Individualized Graph Neural Networks, in NeurIPS, 2024.

Usage

Run source s to load modules

  • expressivity/ contains the experiments of Section 5.1
  • vc-dim/ contains the experiments of Section 5.2
  • patterns/ contains the experiments of Section 5.3
  • covering/ contains the experiments of Section 5.4

About

Code and Data for the paper: On the Expressivity and Sample Complexity of Node-Individualized Graph Neural Networks (NeurIPS 2024)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published