Giter Site home page Giter Site logo

edisonleeeee / spikegcl Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 0.0 928 KB

[ICLR 2024] Official implementation of Spiking Graph Contrastive Learning (0️⃣1️⃣ SpikeGCL)

Home Page: https://openreview.net/forum?id=LnLySuf1vp

Python 100.00%
graph-contrastive-learning graph-neural-networks iclr spiking-neural-networks

spikegcl's Introduction

0️⃣1️⃣ SpikeGCL (Spiking Graph Contrastive Learning)

A Graph is Worth 1-bit Spikes: When Graph Contrastive Learning Meets Spiking Neural Networks

Jintang Li1, Huizhe Zhang1, Ruofan Wu2, Zulun Zhu3, Baokun Wang2, Changhua Meng2, Zibin Zheng1, Liang Chen1

1Sun Yat-sen University, 2Ant Group, 3Nanyang Technological University

arXiv (arXiv:2305.19306), OpenReview (ICLR'24)

Environments

Note

Higher versions should be also compatible.

  • numpy == 1.23.3
  • torch == 1.8+cu111
  • torch-cluster == 1.6.1
  • torch_geometric == 2.3.0
  • torch-scatter == 2.1.1
  • torch-sparse == 0.6.17
  • CUDA 11.1
  • cuDNN 8.0.5

Model and Results

SpikeGCL adopts a simple GCL architecture and is comprised of a set of peer GNN encoders and a spiking neuron.

The following tables present the performance & efficiency results for standard node classification tasks on several graph benchmark datasets.

Reproduction

  • Cora
python main.py --dataset Cora --threshold 5e-4 --outs 2 --T 64 --bn --epochs 5
  • Citeseer
python main.py --dataset Citeseer --threshold 5e-3 --T 32 --bn --epochs 5
  • Pubmed
python main.py --dataset Pubmed --threshold 5e-2 --bn --T 32 --epochs 50
  • Computers
python main.py --dataset Computers --threshold 5e-2 --outs 32 --bn --T 25
  • Photo
python main.py --dataset Photo --threshold 5e-2 --T 15 --bn --outs 8 --epochs 50
  • CS
python main.py --dataset CS --threshold 5e-1 --outs 32 --T 60 --dropout 0. --bn
  • Physics
python main.py --dataset Physics --T 25 --outs 16 --margin 1 --threshold 5e-2 --bn
  • Ogbn-arXiv
python main.py --dataset ogbn-arxiv --T 30 --outs 1 --threshold 5e-2 --no_shuffle --bn --dropout 0.
  • Ogbn-MAG
python main.py --dataset ogbn-mag --T 8 --outs 8 --hids 64 --threshold 5e-3 --no_shuffle --bn

Citation

If you find this repository useful in your research, please consider giving a star ⭐ and a citation

@inproceedings{spikegcl,
    title={A Graph is Worth 1-bit Spikes: When Graph Contrastive Learning Meets Spiking Neural Networks},
    author={Jintang Li and Huizhe Zhang and Ruofan Wu and Zulun Zhu and Baokun Wang and Changhua Meng and Zibin Zheng and Liang Chen},
    booktitle={ICLR},
    year={2024},
    url={https://openreview.net/forum?id=LnLySuf1vp}
}

spikegcl's People

Contributors

edisonleeeee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.