Code Monkey home page Code Monkey logo

pbpfl's Introduction

Official repository for WWW 2022 paper An Accuracy-Lossless Perturbation Method for Defending Privacy Attacks in Federated Learning. This project is developed based on Python 3.6.

Install prerequisites

pip install -r requirements.txt

Download datasets

Download the "" [download link] and run 'unzip dataset.zip' at the root directory before training.

Regression experiments

All code for this part are included in "UMBD" and "ABD" subfolder. Please change to that folder before running the code.

Running demos

PBPFL training

  • Train models with PBPFL
bash pbpfl_train.sh

AVGFL training

  • Train models with traditional AVGFL
bash avgfl_train.sh

Classification experiments

All code for this part are included in "LDC" subfolder. Please change to that folder before running the code.

Running demos

PBPFL training

  • Train models with PBPFL
bash pbpfl_train.sh

AVGFL-MSE training

  • Train models with traditional AVGFL on MSE loss
bash avgfl_mse_train.sh

AVGFL training

  • Train models with traditional AVGFL on CE loss
bash avgfl_ce_train.sh

Citation

Please cite our paper in your publications if it helps your research:

@inproceedings{Yang_WWW_2022,
  title={An Accuracy-Lossless Perturbation Method for Defending Privacy Attacks in Federated Learning},
  author={Xue Yang, Yan Feng, Weijun Fang, Jun Shao, Xiaohu Tang, Shu-Tao Xia, Rongxing Lu},
  booktitle={Proceedings of the ACM Web Conference 2022},
  year={2022}
}

pbpfl's People

Contributors

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