Home

Awesome

RioGNN

Code for Reinforced Neighborhood Selection Guided Multi-Relational Graph Neural Networks.

Hao Peng, Ruitong Zhang, Yingtong Dou, Renyu Yang, Jingyi Zhang, Philip S. Yu.

Repo Structure

The repository is organized as follows:

Example Dataset

We build different multi-relational graphs for experiments in two task scenarios and three datasets:

DatasetTaskNodesRelation
YelpFraud Detection45,954rur, rtr, rsr, homo
AmazonFraud Detection11,944upu, usu, uvu, homo
MIMIC-IIIDiabetes Diagnosis28,522vav, vdv, vpv, vmv, homo

Run on your Datasets

To run RioGNN on your datasets, you need to prepare the following data:

How to Run

You can download the project and and run the program as follows:

1. The dataset folder \data only contains two Fraud datasets, please use the following links to download the Mimic dataset (~700MB);

Google Drive: https://drive.google.com/file/d/1WvYtNSHcvSQr8fzI9ykpgjMBSPwCTW0h/view?usp=sharing

Baidu Cloud: https://pan.baidu.com/s/1iyaOqnkyYGqo1Mdwt4QYnQ Password: vbwn

* Note that all datasets need to be unzipped in the folder \data first;

2. Install the required packages using the requirements.txt;
pip3 install -r requirements.txt
3. Run data_process.py to generate adjacency lists of different dataset used by RioGNN;
python data_process.py
4. Run train.py to run RioGNN with default settings.
python train.py

* To run the code, you need to have at least Python 3.6 or later versions.

Important Parameters

* For other dataset and parameter settings, please refer to the arg parser in train.py.

Preliminary Work

Our preliminary work, CAmouflage-REsistant Graph Neural Network (CARE-GNN), is a GNN-based fraud detector based on a multi-relation graph equipped with three modules that enhance its performance against camouflaged fraudsters.

Citation

If you use our code, please cite the paper below:

@article{peng2021reinforced,
  title={Reinforced Neighborhood Selection Guided Multi-Relational Graph Neural Networks},
  author={Peng, Hao and Zhang, Ruitong and Dou, Yingtong and Yang, Renyu and Zhang, Jingyi and Yu, Philip S.},
  journal={ACM Transactions on Information Systems (TOIS)},
  year={2021}
}