PyTorch Geometric High Order: A Unified Library for High Order Graph Neural Network

Xiyuan Wang, Muhan Zhang
11/28/2023
cs.LG

Official code: GraphPKU/PygHO (39 stars, MIT, last commit 2024-11-28).

Abstract

We introduce PyTorch Geometric High Order (PyGHO), a library for High Order Graph Neural Networks (HOGNNs) that extends PyTorch Geometric (PyG). Unlike ordinary Message Passing Neural Networks (MPNNs) that exchange messages between nodes, HOGNNs, encompassing subgraph GNNs and k-WL GNNs, encode node tuples, a method previously lacking a standardized framework and often requiring complex coding. PyGHO's main objective is to provide an unified and user-friendly interface for various HOGNNs. It accomplishes this through streamlined data structures for node tuples, comprehensive data processing utilities, and a flexible suite of operators for high-order GNN methodologies. In this work, we present a detailed in-depth of PyGHO and compare HOGNNs implemented with PyGHO with their official implementation on real-world tasks. PyGHO achieves up to $50\%$ acceleration and reduces the code needed for implementation by an order of magnitude. Our library is available at \url{https://github.com/GraphPKU/PygHO}.

View on arXivView PDF

Code Implementations(1)

MIT

A library for subgraph GNN based on pyg

390Shell, PythonJul 22, 20231 years agoMIT

Similar Papers

Cite this paper

@article{wang2023pytorch,
  title  = {PyTorch Geometric High Order: A Unified Library for High Order Graph Neural Network},
  author = {Xiyuan Wang and Muhan Zhang},
  year   = {2023},
  eprint = {2311.16670},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.16670v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.16670.svg)](https://codeofpaper.com/paper/2311.16670)

Discussion