Giter VIP home page Giter VIP logo

ressfl's Introduction

ResSFL framework - improving SFL's resistance to model inversion attack

Official Repository for ResSFL (resistant split federated learning)

Requirement:

tensorboard>1.15

pytorch

torchvision

thop (pip install)

Code:

  • MIA_torch.py: It implements the all utility functions of split learning,running MIA attacks and perform various defenses.
  • main_MIA.py: Entry code to train a defensive model/vanilla model.
  • main_test_MIA.py: Entry code to resume a trained model and perform MIA attack.

Proof Of Concepts:

Run scripts directly in ./reproduce/ to reproduce main results in the manuscript. You must have a GPU (CUDA-enabled) with >= 8 GB memory.

Recommend sequence to execute:

bash reproduce/ace_run_without_defense.sh
bash reproduce/ace_run_table6.sh

Comparison table:

bash reproduce/ace_run_table4.sh

Multi-client performance (with sampling, scale to 100 clients):

bash reproduce/ace_run_table2.sh
bash reproduce/ace_run_table2_sample.sh

List of additional experiments in supplementary material:

  1. Performance against Optimization-based MI attack
  2. Performance on clients with Non-iid data
  3. Extra empirical evidence on successful resistance transfer

Cite the work:

@inproceedings{li2022ressfl,
  title={ResSFL: A Resistance Transfer Framework for Defending Model Inversion Attack in Split Federated Learning},
  author={Li, Jingtao and Rakin, Adnan Siraj and Chen, Xing and He, Zhezhi and Fan, Deliang and Chakrabarti, Chaitali},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={10194--10202},
  year={2022}
}

ressfl's People

Contributors

zlijingtao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ressfl's Issues

Script file not working properly

After running bash reproduce/ace_run_without_defense.sh

BrokenPipeError: [Errno 32] Broken pipe

FileNotFoundError: [Errno 2] No such file or directory: './new_saves/baseline/ace_V2_epoch_vgg11_bn_cutlayer_4_client_1_seed125_dataset_cifar10_lr_0.05_None_both_custom_0.0_200epoch_bottleneck_None/checkpoint_f_best.tar'

raise FileNotFoundError(f"Couldn't find any class folder in {directory}.")
FileNotFoundError: Couldn't find any class folder in facescrub-dataset/32x32/train.

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.