Giter Site home page Giter Site logo

fedaware's Introduction

FedAWARE

Code for paper "Tackling Hybrid Heterogeneity on Federated Optimization via Gradient Diversity Maximization".

Dependencies

pip install -r requirement.txt

Run

python fedaware.py -num_clients 100 \
                    -com_round 500 \
                    -sample_ratio 0.1 \
                    -batch_size 64 \
                    -epochs 3 \
                    -lr 0.01 \
                    -glr 1 \
                    -dseed 37 \
                    -seed 1998 \
                    -partition [pathological/dirichlet] \
                    -dataset [mnist\fmnist\cifar10] \
                    -alpha 0.5 \
                    -startup 1 \
                    -agnostic [0\1] \
                    -preprocess 1

Citation

Please cite our paper if you found the code useful.

@article{zeng2023tackling,
  title={Tackling Hybrid Heterogeneity on Federated Optimization via Gradient Diversity Maximization},
  author={Zeng, Dun and Xu, Zenglin and Pan, Yu and Wang, Qifan and Tang, Xiaoying},
  journal={arXiv preprint arXiv:2310.02702},
  year={2023}
}

fedaware's People

Contributors

dunzeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ss3b3

fedaware's Issues

请教问题

曾博,您好。关于您论文中使用了动量去最大化Surrogate gradient diversity的部分,我有些疑问,希望能得到您的指导。本人很菜,想了解为啥使用动量而不是使用梯度,是要保护隐私吗,感觉如果有历史动量,隐私还是会泄露。还是说起加速收敛、减少震荡的作用啊(感觉这个在用梯度计算完梯度最大化,再动量也行啊)。期待您的回复,非常感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.