adrienbenamira / membership_inference_attack Goto Github PK
View Code? Open in Web Editor NEWImplementation of the paper : "Membership Inference Attacks Against Machine Learning Models", Shokri et al.
Implementation of the paper : "Membership Inference Attacks Against Machine Learning Models", Shokri et al.
Hi,
Thank you for supplying code for this Membership Inference Attack, I've stumbled upon an issue I'm having when trying to recreate the results shown in the paper for the CIFAR10 dataset. When running the main.py script with a copy of the config file found in the results section folder called 'overfitting_CIFAR10_overfitting_2019_05_11_09_48_18' and adding a small print statement to report the best accuracy found after training the (target) model for the specified amount of epochs, my accuracy is much lower than the accuracy reported. The accuracy of the target model, gained by printing the 'best_acc' variable from the train_model function in trainer.py, after training for 100 epochs is only 32.7%. If I train the used model (Net_cifar10) myself with the same parameters I only achieve around 60% accuracy after 100 epoch.
Could you maybe test this yourself or explain why my performance might differ from the reported performance?
Thanks for your code! But I have some questions about the dataloader.py. In the test circumstance, the shadow dataset's data index is [test_size:], but the target index is [test_size*(num+1):test_size*(num+2)]๏ผ I don't understand why did you slice the dataset like this, the data and the targets seem to be inconsistent?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.