Git Product home page Git Product logo

robust-and-fair-federated-learning's Introduction

Robust-and-Fair-Federated-Learning

Implementing the algorithm from our paper: "A Reputation Mechanism Is All You Need: Collaborative Fairness and Adversarial Robustness in Federated Learning". Accepted as Oral presentation (13.2%) at International Workshop on Federated Learning for User Privacy and Data Confidentiality in Conjunction with ICML 2021 (FL-ICML'21), view the workshop page.

๐Ÿ“‹ In this work, we propose a Robust Fair Federated Learning (RFFL) framework to simultaneously achieve adversarial robustness and collaborative fairness in Federated learning by using a reputation mechanism.

Citing

If you have found our work to be useful in your work, please consider citing it with the following bibtex:

@InProceedings{Xu2021RFFL,
    title={A Reputation Mechanism Is All You Need: Collaborative Fairness and Adversarial Robustness in Federated Learning},
    author={Xinyi Xu and Lingjuan Lyu},
    year={2021}
    booktitle={International Workshop on Federated Learning for User Privacy and Data Confidentiality in Conjunction with ICML 2021 (FL-ICML'21)},
}

Requirements

To install requirements:

conda env create -f environment.yml

๐Ÿ“‹ We recommend managing your environment using Anaconda, both for the versions of the packages used here and for easy management.

๐Ÿ“‹ Our code automatically detects GPU(s) through NVIDIA driver, and if not available it will use CPU instead.

Running the script

To run the code in the paper, run this command:

python RFFL_run.py -d mnist -N 10 -A 2 -cuda

The above command means to run MNIST dataset, with 10 honest participants and 2 adversaries.

๐Ÿ“‹ Note there are several command-line arguments which can be found in RFFL_run.py.

๐Ÿ“‹ Running RFFL_run.py starts the experiments specified by the arguments and it creates and writes to corresponding directories.

robust-and-fair-federated-learning's People

Contributors

xinyiys 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.