RGE
An official implementation of "RGE: A Repulsive Graph Rectification for Node Classification via Influence" (ICML 2023) in JAX.
Install / Use
/learn @Jaeyun-Song/RGEREADME
RGE: A Repulsive Graph Rectification for Node Classification via Influence
Introduction
Official JAX implementation of ICML 2023 paper "RGE: A Repulsive Graph Rectification for Node Classification"

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))
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate 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
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
