Coder Social home page Coder Social logo

KVSAgg

Federated Learning

We implement our KVSAgg in a GPU friendly way and apply it to Federated Learning.

In cifar10.sh we provided an example of how to run the program. The meaning of some of the arguments are provided in the chart below:

Argument name meaning
dataset_dir directory to where you store the dataset
num_epochs total number of epochs
num_clients total number of clients
num_workers the number of clients participate each turn
num_devices the number of gpus
num_rows, num_cols in FetchSGD, it is used to set the sketch size to num_rows * num_cols
k sample size in local topk and our algorithm
typ 0 for HyperIBLT; 1,2,3,4 for CS(1,3,10,0.5); 5,6,7,8 for CSK(1,3,10,0.5)
num_buckets the width of HyperIBLT (also used to calculate the width of CS and CSK)

For FEMNIST, because that we have the orignal data preprocessed into 3597 clients, so the num_clients is always equal to 3597. We run for only 1 epoch for FEMNIST.

HyperIBLT

We implement HyperIBLT in C++ for CPU platforms and provide an example of computing the encoding and decoding efficiency of HyperIBLT.

References

Codes in the Federated_learning folder are forked from open source code of MinMax Sampling: A Near-optimal Global Summary for Aggregation in the Wide Area (https://github.com/Arimase97/MinMax-Sampling) and Secure Aggregation implementation (https://github.com/ammartahir24/SecureAggregation).

KVSAGG's Projects

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.