inspire-group / ModelPoisoning

Code for "Analyzing Federated Learning through an Adversarial Lens" https://arxiv.org/abs/1811.12470
146 stars 37 forks source link

The default value of 'arg.mal' is True #15

Open 2wenty opened 2 years ago

2wenty commented 2 years ago

Hi, I am trying to understand your code. But there is a problem that bothers me, why the default value of 'arg.mal' is True? In my opinion, if this value is True, then the attack will be carried out. However, in your README, you wrote that 'To run federated training with 10 agents and standard averaging based aggregation, use python dist_train_w_attack.py --dataset=fMNIST --k=10 --C=1.0 --E=5 --T=40 --train --model_num=0 --gar=avg' So this code allows malicious clients to participate in training? Or just forgot to add --mal = False? This question has been puzzling me for a long time, and I am looking forward to get your reply soon. All the best!