Giter Site home page Giter Site logo

zihangxiang / model-updates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stanleykywu/model-updates

0.0 0.0 0.0 3.48 MB

Code for the 2022 paper 'How to Combine Membership-Inference Attacks on Multiple Updated Models'

License: Apache License 2.0

Python 3.93% Jupyter Notebook 96.07%

model-updates's Introduction

model-updates

Experiments that explore privacy of model updates. Our attacks are shown effective using update information to give the adversary a significant advantage over attacks on standalone models, but also compared to a prior MI attack that takes advantage of model updates in a related machine-unlearning setting. The full paper can be found here: https://arxiv.org/abs/2205.06369

How to Reproduce Paper Figures and Results

All results can be reproduced by running pre-written scripts from the root directory. Make sure to pip install -r requirements.txt before attempting to do so. Using a GPU is highly recommended for CIFAR-10 and IMDb experiments.

FMNIST

  1. python script_FMNIST_complete.py Generates results for both single update and multi-update for the FMNIST dataset. Head to the the respective notebooks to plot all figures after script completes.

  2. python script_FMNIST_DPSGD.py Generates results for single update training with differential privacy on the FMNIST dataset. Head to the experiments/dpsgd/fashion/noise_experiments notebook to generate DPSGD plots after script completes.

CIFAR-10

  1. python script_CIFAR_complete.py Generates results for both single update and multi-update for the CIFAR-10 dataset. Head to the the respective notebooks to plot all figures after script completes.

  2. python script_CIFAR_subpop.py Generates results for single update training with drift on the CIFAR-10 dataset. Head to the same directory as above for results.

Purchase-100

  1. python script_PURCHASE_complete.py Generates results for both single update and multi-update for the Purchase-100 dataset. Head to the the respective notebooks to plot all figures after script completes.

IMDb

  1. python script_IMDB_complete.py Generates results for both single update and multi-update for the IMDb dataset. Head to the the respective notebooks to plot all figures after script completes.

Citation

If you publish work that uses code from this repository, please cite as follows:

@article{jagielski2022combine,
  title={How to Combine Membership-Inference Attacks on Multiple Updated Models},
  author={Jagielski, Matthew and Wu, Stanley and Oprea, Alina and Ullman, Jonathan and Geambasu, Roxana},
  journal={arXiv preprint arXiv:2205.06369},
  year={2022}
}

model-updates's People

Contributors

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