ChenJY-Count / PolyGCL

PyTorch implementation of "PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters"
9 stars 1 forks source link

PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters

This repository contains a PyTorch implementation of ICLR 2024 paper "PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters".

Environment Settings

Datasets

We provide the small datasets in the folder 'data'. You can access the heterophilic datasets and the large heterophilic graph arXiv-year via heterophilous-graphs and LINKX respectively.

Reproduce the results

On real-world datasets

You can run the following commands directly.

sh exp_PolyGCL.sh

Heterophilic datasets:

cd HeterophilousGraph
sh exp_PolyGCL.sh

Large heterophilic graph arXiv-year:

cd non-homophilous
sh exp_PolyGCL.sh

On synthetic datasets

Generate the cSBM data firstly.

cd cSBM
sh create_cSBM.sh

Then run the following command directly.

sh run_cSBM.sh

Acknowledgements

This project includes code or ideas inspired by the following repositories:

Citation

@inproceedings{
    chen2024polygcl,
    title={Poly{GCL}: {GRAPH} {CONTRASTIVE} {LEARNING} via Learnable Spectral Polynomial Filters},
    author={Jingyu Chen and Runlin Lei and Zhewei Wei},
    booktitle={The Twelfth International Conference on Learning Representations},
    year={2024},
    url={https://openreview.net/forum?id=y21ZO6M86t}
}

Contact

If you have any questions, please feel free to contact me with jy.chen@ruc.edu.cn.