Giter VIP home page Giter VIP logo

barfed's Introduction

BARFED: Byzantine Attack Resistant Federated Averaging Based on Outlier Elimination

This repository is the official implementation of BARFED: Byzantine Attack Resistant Federated Averaging Based on Outlier Elimination. The framework and full methodology are detailed in our manuscript.

Install required packages

pip install -r requirements.txt

for pip environment. OR

conda env create -f environment.yml

To create a conda virtual environment from an environment.yml file. Please see here for more details.

How to run

We performed the experiments for label flipping and Byzantine attacks on MNIST, Fashion MNIST, and CIFAR10 datasets. We compared our results with the median method. The file name list for each data set is as follows. The default setting of experiments is NON-IID organized with a 20% malicious participant ratio.

Dataset Attack Type Method File Name
MNIST Byzantine BARFED mnist_byz_barfed.py
MNIST Byzantine Median mnist_byz_median.py
MNIST Byzantine No Defense mnist_byz_attack.py
MNIST Label Flipping BARFED mnist_lf_barfed.py
MNIST Label Flipping Median mnist_lf_median.py
MNIST Label Flipping No Defense mnist_byz_attack.py
Fashion MNIST Byzantine BARFED fashion_byz_barfed.py
Fashion MNIST Byzantine Median fashion_byz_median.py
Fashion MNIST Byzantine No Defense fashion_byz_attack.py
Fashion MNIST Label Flipping BARFED fashion_lf_barfed.py
Fashion MNIST Label Flipping Median fashion_lf_median.py
Fashion MNIST Label Flipping No Defense fashion_lf_attack.py
CIFAR10 Byzantine BARFED cifar_byz_barfed.py
CIFAR10 Byzantine Median cifar_byz_median.py
CIFAR10 Byzantine No Defense cifar_byz_attack.py
CIFAR10 Label Flipping BARFED cifar_lf_barfed.py
CIFAR10 Label Flipping Median cifar_lf_median.py
CIFAR10 Label Flipping No Defense cifar_lf_attack.py

Citation

Please use the following BibTeX entry for citation:

@misc{isikpolat2021barfed,
      title={BARFED: Byzantine Attack-Resistant Federated Averaging Based on Outlier Elimination}, 
      author={Ece Isik-Polat and Gorkem Polat and Altan Kocyigit},
      year={2021},
      eprint={2111.04550},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

barfed's People

Contributors

eceisik avatar gorkemp 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.