Leon022 / EVE

Evil vs Evil: Using Adversarial Examples to Against Backdoor Attack in Federated Learning
3 stars 0 forks source link

EVE

In this repository, code is for our paper EVE: Evil vs Evil: Using Adversarial Examples to Against Backdoor Attack in Federated Learning

Installation

Install Python>=3.6.0 and Pytorch>=1.4.0

Usage

Prepare the dataset:

MNIST and CIFAR-10 dataset:

Code structures

Running Federated Learning tasks

Command line tools

python main.py --dataset mnist --model lenet5 --num_users 20 --epoch 50 --iid False --attack_start 4 --attack_methods CBA --attacker_list 2 5 7 9 --aggregation_methods EVE --detection_size 50 --gpu 0

Check out parser.py for the use of the arguments, most of them are self-explanatory.