This repository is the official implementation of the paper:
You can install all requirements with:
pip install -r requirements.txt- Training target and shadow models.
python main.py --pre_train both --U_method retrain --dataset_name cifar10 --net_name resnet18 --num_epochs 50 --proportion_of_group_unlearn 0.02 --trials 3 --observations 5 --device cuda:0
python main.py --pre_train both --U_method retrain --dataset_name cifar100 --net_name resnet18 --num_epochs 50 --proportion_of_group_unlearn 0.02 --trials 3 --observations 5 --device cuda:0
python main.py --pre_train both --U_method retrain --dataset_name tinyimagenet --net_name resnet18 --num_epochs 50 --proportion_of_group_unlearn 0.02 --trials 3 --observations 5 --device cuda:0
python main.py --pre_train both --U_method retrain --dataset_name cinic10 --net_name resnet18 --num_epochs 50 --proportion_of_group_unlearn 0.02 --trials 3 --observations 5 --device cuda:0- TC_UMIA
python main.py --attack_method TC_MIA --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method TC_MIA --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method TC_MIA --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method TC_MIA --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:02.1 U_leak (baseline)
python main.py --attack_method U_Leak --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method U_Leak --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method U_Leak --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method U_Leak --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:02.2 Double attack (baseline)
python main.py --attack_method Double_Attack --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method Double_Attack --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method Double_Attack --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0
python main.py --attack_method Double_Attack --U_method retrain --dataset_name cifar10 --net_name resnet18 --trials 3 --proportion_of_group_unlearn 0.02 --observations 5 --device cuda:0