返回排行榜

shaoxiongji/federated-learning

Pythondoi.org/10.5281/zenodo.4321561

A PyTorch Implementation of Federated Learning

federated-learningdeep-learningpytorch
Star 增长趋势
Star
1.5k
Forks
392
周增长
Issues
14
5001k1.5k
2018年10月2021年5月2023年12月2026年7月
制品库PyPIpip install federated-learning
README

Federated Learning DOI

This is partly the reproduction of the paper of Communication-Efficient Learning of Deep Networks from Decentralized Data
Only experiments on MNIST and CIFAR10 (both IID and non-IID) is produced by far.

Note: The scripts will be slow without the implementation of parallel computing.

Requirements

python>=3.6
pytorch>=0.4

Run

The MLP and CNN models are produced by:

python main_nn.py

Federated learning with MLP and CNN is produced by:

python main_fed.py

See the arguments in options.py.

For example:

python main_fed.py --dataset mnist --iid --num_channels 1 --model cnn --epochs 50 --gpu 0

--all_clients for averaging over all client models

NB: for CIFAR-10, num_channels must be 3.

Results

MNIST

Results are shown in Table 1 and Table 2, with the parameters C=0.1, B=10, E=5.

Table 1. results of 10 epochs training with the learning rate of 0.01

Model Acc. of IID Acc. of Non-IID
FedAVG-MLP 94.57% 70.44%
FedAVG-CNN 96.59% 77.72%

Table 2. results of 50 epochs training with the learning rate of 0.01

Model Acc. of IID Acc. of Non-IID
FedAVG-MLP 97.21% 93.03%
FedAVG-CNN 98.60% 93.81%

Ackonwledgements

Acknowledgements give to youkaichao.

References

McMahan, Brendan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Artificial Intelligence and Statistics (AISTATS), 2017.

Cite As

Shaoxiong Ji. (2018, March 30). A PyTorch Implementation of Federated Learning. Zenodo. http://doi.org/10.5281/zenodo.4321561

相关仓库
visenger/awesome-mlops

A curated list of references for MLOps

machine-learningmlops
ml-ops.org
14k2.1k
OpenMined/PySyft

Perform data science on data that remains in someone else's server

PythonPyPIApache License 2.0deep-learningsecure-computation
openmined.org
9.9k2k
flwrlabs/flower

Flower: A Friendly Federated AI Framework

PythonPyPIApache License 2.0flowerfederated-learning
flower.ai
7k1.2k
FederatedAI/FATE

An Industrial Grade Federated Learning Framework

PythonPyPIApache License 2.0fatemachine-learning
6.1k1.6k
adap/flower

Flower: A Friendly Federated AI Framework

PythonPyPIApache License 2.0flowerfederated-learning
flower.ai
5.5k946
FedML-AI/FedML

FEDML - The unified and scalable ML library for large-scale distributed training, model serving, and federated learning. FEDML Launch, a cross-cloud scheduler, further enables running any AI jobs on any GPU cloud or on-premise cluster. Built on this library, TensorOpera AI (https://TensorOpera.ai) is your generative AI platform at scale.

PythonPyPIApache License 2.0federated-learningdeep-learning
tensoropera.ai
4.1k765
secretflow/secretflow

A unified framework for privacy-preserving data analysis and machine learning

PythonPyPIApache License 2.0differential-privacyhomomorphic-encryption
secretflow.org.cn/docs/secretflow/en/
2.7k471
TsingZ0/PFLlib

Master Federated Learning in 2 Hours—Run It on Your PC!

PythonPyPIApache License 2.0non-iidfederated-learning
pfllib.com
2.1k412
innovation-cat/Awesome-Federated-Machine-Learning

Everything about federated learning, including research papers, books, codes, tutorials, videos and beyond

federated-learningmachine-learning
2.1k282
chaoyanghe/Awesome-Federated-Learning

FedML - The Research and Production Integrated Federated Learning Library: https://fedml.ai

federated-learningmachine-learning
2k332
youngfish42/Awesome-FL

Comprehensive and timely academic information on federated learning (papers, frameworks, datasets, tutorials, workshops)

PythonPyPICreative Commons Attribution Share Alike 4.0 Internationalawesomedeep-learning
youngfish42.github.io/Awesome-FL
2k222
alibaba/FederatedScope

An easy-to-use federated learning platform

PythonPyPIApache License 2.0federated-learningmachine-learning
federatedscope.io
1.5k262