Giter Site home page Giter Site logo

deepanshumishra49 / ndss21-model-poisoning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vrt1shjwlkr/ndss21-model-poisoning

0.0 0.0 0.0 789 KB

Code for NDSS 2021 Paper "Manipulating the Byzantine: Optimizing Model Poisoning Attacks and Defenses Against Federated Learning"

Python 2.48% Jupyter Notebook 97.52%

ndss21-model-poisoning's Introduction

A General Framework to Evaluate Robustness of Aggregation Algorithms in Federated Learning

Motivation

This repository provides a code to investigate the security of a given federated learning algorithm, and especially the security provided by robust aggregation algorithms that are used to aggregate the client updates in federated learning. The code can be used to reproduce results and conclusions from two of our works: [1] Manipulating the Byzantine: Optimizing Model Poisoning Attacks and Defensesfor Federated Learning and [2] Back to the drawing board: A critical evaluation of poisoning attacks on production federated learning.

Our attacks are untargeted poisoning attacks, i.e., they aim to reduce the accuracy of the global model on all of the test inputs. For a detailed review of different types of attacks please refer to our thorough review paper 2.

Result Highlights

Understanding the code and using the notebooks

We have given the code in the form of notebooks which are self-explanatory, because the description of each cell is given in the respective notebooks. To run the code and reproduce the results in the paper, please clone/download the repo and simply run the notebooks, preferrably on a GPU. Various evaluation dimensions are below

  • Datasets included are CIFAR10 (covers iid and cross-silo FL cases) and FEMNIST (covers non-iid and cross-device FL cases).
  • We have given codes for five state-of-the-art aggregation algorithms, which give theoretical convergence guarantees: Krum, Multi-krum, Bulyan, Trimmed-mean, Median
  • Baseline model poisoning attacks Fang and LIE.
  • Our state-of-the-art model poisoning attacks, Aggregation-tailored attacks and Aggregation-agnsotic attacks, for the above mentioned aggregation algorithms. For any other aggregation algorithms, the code allows for simple plug-and-attack framework.

Citation

@inproceedings{shejwalkar2021manipulating,
  title={Manipulating the byzantine: Optimizing model poisoning attacks and defenses for federated learning},
  author={Shejwalkar, Virat and Houmansadr, Amir},
  booktitle={NDSS},
  year={2021}
}

@inproceedings{shejwalkar2022back,
  title={Back to the drawing board: A critical evaluation of poisoning attacks on production federated learning},
  author={Shejwalkar, Virat and Houmansadr, Amir and Kairouz, Peter and Ramage, Daniel},
  booktitle={2022 IEEE Symposium on Security and Privacy (SP)},
  pages={1354--1371},
  year={2022},
  organization={IEEE}
}

ndss21-model-poisoning's People

Contributors

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