Git Product home page Git Product logo

byzantine-robust-optimizer's Introduction

Learning from History for Byzantine Robust Optimization

This repository contains research code for our Byzantine robust optimization paper.

Summary: We study the problem of federated and distributed learning in the presence of untrusted workers who may try to derail the training process. We first describe a simple new aggregator based on iterative centered clipping which has significantly stronger theoretical guarantees than previous methods. This aggregator is especially interesting since, unlike most preceding methods, it is very scalable requiring only O(n) computation and communication per round. Further, it is also compatible with other strategies such as asynchronous updates and secure aggregation, both of which are crucial for real world applications. Secondly, we show that the time coupled attacks can easily be overcome by using worker momentum.

Code organization

The structure of the repository is as follows:

  • codes/
    • Source code.
  • momentum-robustness/
    • Launcher scripts.
  • outputs/
    • Store the output of the launcher scripts.
  • notebooks
    • Process the outputs and make plots.

Reproduction

To reproduce the results in the paper, do the following steps

  1. Add codes/ to environment variable PYTHONPATH
  2. Install the dependencies: pip install -r requirements.txt
  3. Enter momentum-robusntess/
  • Run bash cifar10-all.sh and select option 2 / 3 / 4 / 5.
  • Run bash cifar10-CC-HP-explore.sh and select option 2.
  1. The output will be saved to the corresponding folders under outputs

Note that if the GPU memory is small (e.g. less than 16 GB), then running the previous commands may raise insufficient exception. In this case, one can decrease the level parallelism in the script by changing the order of loops and reduce the number of parallel processes.

Example results

Reference

If you use this code, please cite the following paper

@inproceedings{karimireddy2020learning,
  author = {Karimireddy, Sai Praneeth and He, Lie and Jaggi, Martin},
  title = "{Learning from History for Byzantine Robust Optimization}",
  booktitle = {ICML 2021 - Proceedings of International Conference on Machine Learning},
  year = 2021,
  url = {https://arxiv.org/abs/2012.10333}
}

byzantine-robust-optimizer's People

Contributors

saipraneet avatar liehe 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.