Coder Social home page Coder Social logo

proxyfl's Introduction

ProxyFL

Code accompanying the paper "Decentralized Federated Learning through Proxy Model Sharing" published in Nature Communications.

Authors: Shivam Kalra*, Junfeng Wen*, Jesse C. Cresswell*, Maksims Volkovs, Hamid R. Tizhoosh†

  • * Denotes equal contribution
  • † University of Waterloo / Vector Institute

Prerequisite

  • Python 3.9
conda create -n ProxyFL python=3.9
conda activate ProxyFL
  • PyTorch 1.9.0
conda install pytorch=1.9.0 torchvision=0.10.0 numpy=1.21.2 -c pytorch
  • mpi4py 3.1.2
conda install -c conda-forge mpi4py=3.1.2
  • opacus 0.14.0
pip install 'opacus==0.14.0'
  • matplotlib 3.4.3
conda install -c conda-forge matplotlib=3.4.3

Run experiment

Download data via

bash download_data.sh

Then run the script

bash run_exp.sh

Citation

If you find this code useful in your research, please cite the following paper:

@article{kalra2021proxyfl,
    author={Kalra, Shivam and Wen, Junfeng and Cresswell, Jesse C. and Volkovs, Maksims and Tizhoosh, H. R.},
    title={Decentralized federated learning through proxy model sharing},
    journal={Nature Communications},
    year={2023},
    month={May},
    day={22},
    volume={14},
    number={1},
    pages={2899},
    issn={2041-1723},
    doi={10.1038/s41467-023-38569-4}
}

proxyfl's People

Contributors

jessecresswell avatar junfengwen avatar

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.