Giter Club home page Giter Club logo

cloak-www-21's Introduction

Not All Features Are Equal: Discovering Essential Features for Preserving Prediction Privacy

Code for the WWW21 paper, Cloak.

The model checkpoints used to produce the results are provided at https://doi.org/10.5281/zenodo.4540871.

All the code is available in the form of Jupyter notebooks, in the code directory in this repo. You need to first download all the checkpoints and numpy folders from the link above, and then extract them and place them in their corrosponding directories in the code folder.The code and numpy files have the same directory structure. They each contain 5 Folders named exp1-trade-off, exp2-adversary, exp3-black-box, exp4-fairness and exp5-shredder which are related to the results in the experiments sectoin in the same order.

For acquiring the datasets, you can have a look at the \texttt{acquire_datasets.ipynb} notebook, available in the code directory.

In short, each notebook that has cloak in its name will start by loading the required datasets and then creating a model. Then, the model is trained based on the experiments and using the hyperparameters provided in the paper's appendix.

Finally, you can run a test function that is provided to evaluate the model.

For Experiment2, at the end of the training notebooks there is also an script that generates the original and noisy representations for mutual information estimation.

For seeing how the mutual information is estimated, you can run the notebooks that have mutual_info in their names.

You need not have run the training before hand, if you place the provided .npy files in the correct directories. For the mutual information estimation you will need to download the ITE toolbox. The link is provided in the code.

If you have any questions, please email Fatemeh Mireshghallah at [email protected].

Citation

If you use our code or find the material in the paper helpful, please cite this work using the following bib entry:

@inproceedings{www2021-cloak-mireshghallah, title={Not All Features Are Equal: Discovering Essential Features for Preserving Prediction Privacy}, author={Fatemehsadat Mireshghallah and Mohammadkazem Taram and Ali Jalali and Ahmed Taha Elthakeb and Dean Tullsen and Hadi Esmaeilzadeh}, booktitle={Proceedings of The Web Conference 2021}, Month = {April}, year={2021} , }

cloak-www-21's People

Contributors

mireshghallah avatar

Stargazers

Vittorio Prodomo avatar TBT avatar Shawn Chen avatar Wei Zong avatar Brown Chen avatar Jaiyoung Park avatar Xu Hong Bo avatar (Mo) Mohamed Hmini avatar Ofey avatar Shayekh Bin Islam avatar Tamas Madl avatar

Watchers

James Cloos avatar  avatar

Forkers

19stevejobs88

cloak-www-21's Issues

About Training

Thank you for your great work. I met a problem that it could not converge when running cifar-100-cloak.ipynb in 'exp1-trade-off' when I train the parameters of NoisyActivation. I have placed the file in the corresponding directory as required.

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.