This is a PyThorh implementation of Motif-Backdoor:Rethinking the Backdoor Attack on Graph Neural Networks from Motifs, as described in our paper:
The code requires Python >=3.6 and is built on PyTorch. Note that PyTorch may need to be installed manually depending on different platforms and CUDA drivers.
We provide the datasets used in our paper:
[ "PROTEINS","AIDS" ,"NCI1","DBLP_v1"]
Training the benign model
python main.py
Training the backdoored model
python attack_main.py