Code Monkey home page Code Monkey logo

scrub's Introduction

This is a Python implementation of "Towards Unbounded Machine Unlearning"

The main experiments

  • Use small_scale_unlearning.ipynb for:
    • small-scale experiemnts
    • large forget-set size experiemnts
  • Use large_scale_unlearning.ipynb for:
    • large-scale experiments
  • Use small_scale_ictest.ipynb for:
    • Interclass Confusion Metric experiemnts from pdf
  • Use large_scale_ictest.ipynb for:
    • Interclass Confusion Metric experiemnts from pdf
  • Use MIA_experiments.ipynb for:
    • Membership Inference Attack based on the model's loss values

Models choices

  • For small-scale experiments:
    • allcnn --filters = 1.0
    • resnet --filters = 0.4
  • For large-scale experiments:
    • allcnn --filters = 1.0
    • resnet --filters = 1.0

Datasets choices

  • For small-scale datasets:
    • small_cifar5
    • small_lacuna5
  • For large-scale datasets:
    • cifar10
    • lacuna10

References

We have used the code from the following two repositories:

(Selective Forgetting)[https://github.com/AdityaGolatkar/SelectiveForgetting.git]

(RepDistiller)[https://github.com/HobbitLong/RepDistiller.git]

scrub's People

Contributors

meghdadk avatar

Stargazers

Chenhao Jiang avatar Geo Ahn avatar Gal Alon avatar Songjie Xie avatar  avatar Marco Cotogni avatar Yihang Chen avatar  avatar MagicMa avatar  avatar Maria Gorinova avatar Tianyu Du avatar Scott Lowe avatar Hongbo Zhao avatar HHHHC avatar Christoforos Spartalis avatar Jyotirmaya Shivottam avatar Anmol Madaik avatar  avatar JaeSin avatar  avatar scottyyc avatar AkihisaWatanabe avatar Ley avatar Jingda Yu avatar pilot2022 avatar Brown Chen avatar Ofey avatar

Watchers

Mohit Gurnani Rajesh avatar  avatar

Forkers

saqib-sarwar

scrub's Issues

Some questions for mia attacks

i have read a part of the mia code,but I found that the logistic regression model in the code seems to be used without training for member inference attacks. Is this correct?

Correct Hyper Parameters for the "Original", "Retrain", "EUK"

First of all, Thanks for the good work.
While trying out the code I found that some of the hyperparameters are not listed in the paper or the hyperparameters detailed in the paper are not used in the experiments.

The hyperparameters for the "Original" and "Retrain" were not listed in the paper(or I couldn't find them). And for the detailed hyperparameters of "EUK" are mentioned as "same setting as Retrain baseline". Based on the main_merged.py I assumed that detailed hyperparameters of "Retrain" are [epochs 26, fixed learning rate 0.01, weight_decay 5e-4, momentum 0.9]. But In the MIA_experiments.ipynb the "EUK" baseline uses learning rate decay every 10, 15, and 20 epochs and uses 0 for the optimizer's weight_decay and the momentum.

lastly, "Finetune", "Negrad", "CFK", and "EUK" should use weight_decay of 5e-4 but it is implemented to use 0.

This got me confused. Can you provide the exact value for the hyperparameters? (including epochs, learning rate, weight_decay, momentum, lr decay)

Thank You! If I missed something let me know

Few question related to LiRA MIA

First of all, Thank you for the great work!
While trying out your work, I discovered that your repository does not include the LiRA MIA metric. May I ask for the LiRA MIA code?

Also, I've 2 questions related to LiRA MIA.
Each data example is seen exactly half of the time in the train and half of the time in the test when creating the shadow original models. Then when choosing to create 256 unlearning models shouldn't the number of shadow original models be 512?

If my understanding is correct, in LiRA MIA evaluation the Attacker needs to perform 2,560,000 unlearning to create 2,560,000 shadow unlearned models. And after, the Attacker selects 256 shadow unlearning models per example to perform the LiRA Attack. Is there a reason for creating 10k unlearned models per shadow original model instead of one? (I've read that the strength of the attacker is heavily dependent on the number of shadow original/unlearned models. But isn't the suggested MIA create Gaussian Distribution after the Attacker selects 256 models?)

All replies pointing out my understanding are welcome!
Thank you!!

Wrong Implementation of EU/CF

The implementation of EU/CF updates the 'first K' layers of the network instead of the 'final K' as proposed originally in the associated paper. Moreover, the numbers reported are for the weakest version, where only the final layer is unlearnt.

We request the authors to fix this, or mention the mistake explicitly on the repository to prevent further misreporting of our work.

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.