A PyTorch implementation of "The Devil is in the Data: Learning Fair Graph Neural Networks via Partial Knowledge Distillation".
GNNs have been shown to be unfair as they tend to make discriminatory decisions toward certain demographic groups, divided by sensitive attributes such as gender and race. While recent works have been devoted to improving their fairness performance, they often require accessible demographic information. This greatly limits their applicability in real-world scenarios due to legal restrictions. To address this problem, we present a demographic-agnostic method to learn fair GNNs via knowledge distillation, namely FairGKD. FairGKD is motivated by our empirical observation on partial data training.
FairGKD consists of a synthetic teacher and a GNN student model denoted by
- python==3.7.9
- numpy==1.21.6
- torch==1.13.1
- torch-cluster==1.5.9
- torch_geometric==2.0.4
- torch-scatter==2.0.6
- torch-sparse==0.6.9
- CUDA 11.7
To reproduce our results, please run:
bash run.sh
