Skip to content

alexbie98/fedavg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch implementation of federated averaging (FedAvg) on MNIST

Paper: Communication-Efficient Learning of Deep Networks from Decentralized Data [ICML'17].

I reproduced some of the MNIST experiments from the seminial paper of McMahan et al., 2017.

To run experiments, see the notebook fed_avg.ipynb.

See fed_avg.pdf for full experimental details and results.

Below are plots of test accuracy after t rounds of FedAvg:

  • for the iid and non-iid data setup;
  • for a CNN vs a 2 hidden-layer MLP (2NN);
  • for selecting m=10 or 50 clients each round.

iid noniid

E refers to the number of epochs for local training, for each client, for each round.

About

PyTorch implementation of federated learning on MNIST

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published