Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Public implementation of ICML'19 paper "White-box vs Black-box: Bayes Optimal Strategies for Membership Inference"

License

Notifications You must be signed in to change notification settings

facebookresearch/whitebox_blackbox

Repository files navigation

Splitting data

The following script will create four splits: public (29K), private (15K), test (15K) and val (1K). The val split is used to cross-validate the performance of the all the models. The private model is trained on the private set; the attacker can then use the public set to prepare its attack, and the attack is evaluated on the private and test splits, using the private model.

python create_splits.py

Training a model

python train.py  \
--architecture smallnet \
--dataset cifar10 \
--dump_path path/to/checkpoint \
--exp_name bypass \
--optimizer sgd,lr=0.001,momentum=0.9 \
--split_train public_0 \
--transform center

Citation

If you use this code, please cite the paper

@article{sablayrolles2019white,
  title={White-box vs black-box: Bayes optimal strategies for membership inference},
  author={Sablayrolles, Alexandre and Douze, Matthijs and Ollivier, Yann and Schmid, Cordelia and J{\'e}gou, Herv{\'e}},
  journal={ICML},
  year={2019}
}

License

This repository is licensed under the CC BY-NC 4.0.

About

Public implementation of ICML'19 paper "White-box vs Black-box: Bayes Optimal Strategies for Membership Inference"

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages