Giter Site home page Giter Site logo

rge's Introduction

RGE: A Repulsive Graph Rectification for Node Classification via Influence

DOI

Introduction

Official JAX implementation of ICML 2023 paper "RGE: A Repulsive Graph Rectification for Node Classification"

Overview Figure

This work scrutinizes the trend that there exists an influence estimation error of an edge group in graph influence function and this error might decrease the peroformance in graph rectification. However, for a pair of distant edges (where each edge affects the representation of different train nodes), we observe and theoretically show the estimation error is zero. Thus, we propose RGE, which eliminates distant edges at each iteration in graph rectification, and demonstrate the effectiveness of RGE on various graphs.

Commands

  • Pretraining SGC

    CUDA_VISIBLE_DEVICES=0 python -m pretrain.main \
    --dataset Cora \
    --data_dir ./data \
    --lr 0.2 \
    --weight_decay 8.5e-6
    
  • Identifying the opponent edges (lr and weight decay should be the same with HP used in pretraining SGC)

    CUDA_VISIBLE_DEVICES=0 python -m rge.main_retrain \
    --dataset Cora \
    --data_dir ./data \
    --lr 0.2 \
    --weight_decay 8.5e-6
    

Hyper-Parameters (HP) for pretraining SGC

  • Homophilous graphs
HP (SGC) Cora CiteSeer PubMed Photo Computers
learning rate 0.2 0.5 0.2 0.2 0.2
weight decay 8.5e-6 8.5e-6 8.5e-6 5e-7 1e-7
  • Heterophilous graphs
HP (SGC) Cornell Wisconsin Texas Actor Squirrel
learning rate 0.2 0.2 0.2 0.2 0.2
weight decay 2e-6 3e-5 4e-5 1e-5 1e-7

Performance of pretrainted SGC

  • Homophilous graphs
Method (Acc.) Cora CiteSeer PubMed Photo Computers
SGC 81.00 71.90 78.90 90.22 86.65
RGE 84.50 73.75 82.80 91.64 88.85
  • Heterophilous graphs
Method (Acc.) Cornell Wisconsin Texas Actor Squirrel
SGC 54.32 64.90 63.24 31.21 40.54
RGE 56.32 68.84 63.24 31.64 40.93

Dependencies

This code has been tested with

  • Python == 3.8.10
  • JAX == 0.3.17
  • Haiku == 0.0.9.dev
  • Jraph == 0.0.6.dev0
  • Pytorch == 1.13.0+cu117
  • Pytorch Geometric == 2.1.0

Acknowledgement

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No.2019-0-00075, Artificial Intelligence Graduate School Program(KAIST))

rge's People

Contributors

jaeyun-song avatar

Stargazers

 avatar Zhimeng Jiang avatar Changhun Kim avatar Sung-Yub Kim avatar

Watchers

 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.