Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Efficient Byzantine-Robust and Provably Privacy-Preserving Federated Learning

Dependencies

In BPFL, the valid check part is coded by C++ with libsnark, and the FL part is coded by Python, so you should first deploy libsnark and pybind11, which is a lightweight header-only library that mainly to create Python bindings of existing C++ code, to your machine before running. For deployment details, please refer to libsnark and pybind11.

Requirements

  • pytorch
  • CUDA
  • numpy
  • torchvision
  • phe

Run

  1. You need to first compile the main.cpp file in the ZKP directory to obtain a dynamic link library named xxx.so and rename it as ZKP.so. Then move ZKP.so to the root directory.
  2. Run the script like this
    python bpfl.py -data_name mnist -client_all 50 -mali_num 10 -attack_type add_noise -global_epoch 300

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages