GithubHelp home page GithubHelp logo

cszhangzhen / graphcta Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 5.46 MB

Collaborate to Adapt: Source-Free Graph Domain Adaptation via Bi-directional Adaptation (WWW-2024)

Python 100.00%
domain-adaptation gnns graph graph-neural-networks unsupervised-learning graph-domain-adaptation source-free-domain-adaptation source-free-graph-domain-adaptation

graphcta's Introduction

DOI

GraphCTA

Collaborate to Adapt: Source-Free Graph Domain Adaptation via Bi-directional Adaptation (WWW 2024)

This is a PyTorch implementation of the GraphCTA algorithm, which tries to address the domain adaptation problem without accessing the labelled source graph. It performs model adaptation and graph adaptation collaboratively through a series of procedures: (1) conduct model adaptation based on node's neighborhood predictions in target graph considering both local and global information; (2) perform graph adaptation by updating graph structure and node attributes via neighborhood constrastive learning; and (3) the updated graph serves as an input to facilitate the subsequent iteration of model adaptation, thereby establishing a collaborative loop between model adaptation and graph adaptation.

Requirements

  • python3.8
  • pytorch==2.0.0
  • torch-scatter==2.1.1+pt20cu118
  • torch-sparse==0.6.17+pt20cu118
  • torch-cluster==1.6.1+pt20cu118
  • torch-geometric==2.3.1
  • numpy==1.24.3
  • scipy==1.10.1
  • tqdm==4.65.0

Datasets

Datasets used in the paper are all publicly available datasets. You can find Elliptic, Twitch and Citation via the links.

Quick Start:

Just execuate the following command for source model pre-training:

python train_source.py

Then, execuate the following command for adaptation:

python train_target.py

Citing

If you find GraphCTA useful for your research, please consider citing the following paper:

@inproceedings{zhang2024collaborate,
  title={Collaborate to Adapt: Source-Free Graph Domain Adaptation via Bi-directional Adaptation},
  author={Zhang, Zhen and Liu, Meihan and Wang, Anhui and Chen, Hongyang and Li, Zhao and Bu, Jiajun and He, Bingsheng},
  booktitle={Proceedings of the ACM on Web Conference 2024},
  pages={664--675},
  year={2024}
}

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.