Giter VIP home page Giter VIP logo

splitnn_fsha_torch's Introduction

Unleashing the Tiger (pytorch version)

This repository is a simple pytorch version of the original repository in TF-2.

Please give credit to the original repository github and Paper: arxiv that is recently accepted by CCS '21.

Code:

  • FSHA_torch.py: It implements the attack and a single-user version of split learning.
  • architectures_torch.py: It contains the main network architectures we used in the paper.
  • datasets_torch.py: It contains utility to load and parse datasets.

Proof Of Concepts ๐Ÿฏ:

We report a set of jupyter notebooks that act as brief tutorial for the code and replicate the experiments in the paper. Those are:

  • FSHA.ipynb: It implements the standard Feature-space hijacking attack on the MNIST dataset.

  • Migration of other funcitons in progress.....

Tensorflow/Pytorch Version Comparison:

  • main.py: Same as FSHA.ipynb.
  • main_tf.py: The original TF-2 version of FSHA.ipynb.

The pytorch version runs slower and has a slighly slower convergence performance.

Cite the work:

@misc{pasquini2020unleashing,
      title={Unleashing the Tiger: Inference Attacks on Split Learning},
      author={Dario Pasquini and Giuseppe Ateniese and Massimo Bernaschi}, 
      year={2020},
      eprint={2012.02670},
      archivePrefix={arXiv},
      primaryClass={cs.CR}
}

splitnn_fsha_torch's People

Contributors

pasquini-dario avatar

Stargazers

Joana Tirana avatar  avatar  avatar Haodong Zhao avatar Leox avatar  avatar Ege Erdogan avatar Jingtao Li avatar

Watchers

Jingtao Li avatar

Forkers

daru003

splitnn_fsha_torch's Issues

Cannot import imresize from scipy

imresize imported from scipy.misc in datasets_torch.py has been removed from scipy since version 1.3 (see related raghakot/keras-vis#209 (comment)).

Using another function to do the same job, or adding a requirements.txt file with the appropriate scipy version (e.g. 1.1) could solve the problem.

out of gpu memory

Hello, when I was running your code, the gpu memory increased with the increase of time. Do you know how to solve this bug? Looking forward to your reply

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.