SWL
[ICML 2023] Subgraph GNNs with best expressive power
Install / Use
/learn @subgraph23/SWLREADME
SWL
The official code of the paper A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Tests.
<img src="algorithm.png" alt="algorithm" style="zoom:36%;" />History
- 02/13: initial commit.
- 02/15: add training logs on ZINC-subset and ZINC-full datasets.
- 03/21: add training logs on coutning substructure dataset and ogbg-molhiv dataset.
- 05/02: relase the full code.
- 06/19: update README.
Installation
Required packages:
- torch 1.9.0
- torch-cluster 1.5.9
- torch-scatter 2.0.8
- torch-sparse 0.6.11
- torch-spline-conv 1.2.1
- torch-geometric 1.7.2
Commands
See config files in the config folder.
Training Logs
Each log file in the logs folder contains the training result of a model configuration. In each file, the i-th row contains metrics at the i-th training epoch, typically, the learning rate, training loss, validation MAE, and test MAE.
ZINC
Each file is named by the corresponding dataset (ZINC-subset or ZINC-full), model string, batch size, distance encoding hyper-parameter, and random seed, with the form logs/ZINC/<subset>.<model>.<batch size>.<max distance>.<seed>.txt. We also rerun the baseline SUN architecture on the ZINC-full dataset. The logs are saved in logs/ZINC/<policy>.<model>.<seed>.txt.
Counting Substructure
Each file is named by the model string, task name, network hidden size, batch size, learning rate, epochs, distance encoding hyper-parameter, and random seed, with the form logs/substructure/<model>-GraphCount-<task>-<hidden size>-<batch size>-<learning rate>-<epochs>-<max distance>-<seed>.txt. We also rerun the baseline SUN architecture for counting 5 cycle and 6-cycle. The logs are saved in logs/substructure/<policy>-<hop k>-<task>.csv.
Ogbg-molhiv
All log files are in the logs/ogbg-molhiv folder.
Acknowledgement
Our code is motivated by the code of SUN.
Citation
@inproceedings{zhang2023complete,
author = {Zhang, Bohang and Feng, Guhao and Du, Yiheng and He, Di and Wang, Liwei},
title = {A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Tests},
booktitle = {International Conference on Machine Learning},
year = {2023},
}
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
