Coder Social home page Coder Social logo

mia-safecompress's Introduction

"Safety and Performance, Why not Both? Bi-Objective Optimized Model Compression toward AI Software Deployment" has been accepted by ASE2022 !!! [Arxiv] [ASE]

SafeCompress Framework

SafeCompress

MIA-SafeCompress

This code is an instance of our SafeCompress framework called MIA-SafeCompress against membership inference attacks (MIAs)

Requirements

  • Python 3.7
  • pytorch 1.8
  • cuda 10.2
  • datetime
  • numpy
  • torchvision
  • itertools

Quick Start

We take vgg with sparsity=0.05 on CIFAR100 for example You can obtain the task acuracy (Task Acc) for vgg by running the following command:

python main.py --sparse --seed 18 --sparse_init ERK  --multiplier 1 --lr 0.1 --density 0.05 --update_frequency 4000 --epochs 300 --model vgg-c --data cifar100 --decay_frequency 30000 --batch-size 128 --n_class 100

To perform membership inference attacks (to obtain MIA Acc), you can run:

python mia_main.py --density 0.05 --epochs 100 --model vgg-c --data cifar100 --batch-size 128 --n_class 100

if it is helpful, please cite our paper:

@inproceedings{zhu2022safety,
  title={Safety and Performance, Why not Both? Bi-Objective Optimized Model Compression toward AI Software Deployment},
  author={Zhu, Jie and Wang, Leye and Han, Xiao},
  booktitle={Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering},
  pages={1--13},
  year={2022}
}

Acknowledgement

This code is based on ITOP

mia-safecompress's People

Contributors

jiepku avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.