Datasets:
language:
- en
license:
- mit
pretty_name: MICO Membership Inference Competition -- CIFAR-10
size_categories:
- n<1K
source-datasets:
- >-
https://pytorch.org/vision/master/generated/torchvision.datasets.CIFAR10.html
tags:
- membership-inference
- privacy
- differential-privacy
task_categories:
- image-classification
viewer: false
configs:
- config_name: lo
data_files:
- split: train
path: cifar10_lo/train
- split: dev
path: cifar10_lo/dev
- split: final
path: cifar10_lo/final
- config_name: hi
data_files:
- split: train
path: cifar10_hi/train
- split: dev
path: cifar10_hi/dev
- split: final
path: cifar10_hi/final
- config_name: inf
data_files:
- split: train
path: cifar10_inf/train
- split: dev
path: cifar10_inf/dev
- split: final
path: cifar10_inf/final
MICO CIFAR-10 challenge dataset
Mico Argentatus (Silvery Marmoset) - William Warby/Flickr
Dataset Description
- Repository: https://github.com/microsoft/MICO/
For the accompanying code, visit the GitHub repository of the competition: https://github.com/microsoft/MICO/.
Getting Started
The starting kit notebook for this task is available at: https://github.com/microsoft/MICO/tree/main/starting-kit.
In the starting kit notebook you will find a walk-through of how to load the data and make your first submission. We also provide a library for loading the data with the appropriate splits. This section describes the dataset splits, model training, and answer submission format.
Challenge Construction
For each dataset and each $\varepsilon$ value, we trained 200 different models.
Each model was trained on a different split of the dataset, which is defined by three seed values: seed_challenge
, seed_training
, seed_membership
.
The diagram below illustrates the splits.
Each arrow denotes a call to torch.utils.data.random_split
and the labels on the arrows indicate the number of records in each split e.g. N = len(dataset)
:
Parameters:
- `challenge` : `2m` challenge examples (m = 100)
- `nonmember` : `m` non-members challenge examples from `challenge`
- `member` : `m` member challenge examples, from `challenge`
- `training` : non-challenge examples to use for model training
- `evaluation`: non-challenge examples to use for model evaluation
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β dataset β
ββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
βββββ β N
seed_challengeββ
βββββββββββββββββββββ΄ββββββββββββ
β 2m ββ N - 2m
βΌ ββΌ
βββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ
β challenge ββββββ rest β ββ
βββββββββββ¬ββββββββββ΄βββββββββββββββββββββ¬ββββββββββββββββββββ
βββββ 2m βββ N - 2m
βββββββββββseed_membershipββββββ seed_trainingββ
ββββββ΄βββββ βββββββββ΄ββββββββββ
β m ββ m ββββ n - m βββ N - n - m
βΌ ββΌ ββββΌ βββΌ
ββββββββββββ¬ββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββββββββ
βnonmemberββ memberβββββ training βββ evaluation β
ββββββββββββ΄ββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββββββββ
Models are trained on member + training
and evaluated on evaluation
.
Standard scenarios disclose challenge
(equivalently, seed_challenge
).
DP distinguisher scenarios also disclose training
and evaluation
(equivalently, seed_training
).
The ground truth (i.e., nonmember
and member
) can be recovered from seed_membership
.
The 200 models are split into 3 sets:
train
[model_0
...model_99
]: for these models, we provide full information (includingseed_membership
). They can be used for training your attack (e.g., shadow models).dev
[model_100
...model_149
]: these models are used for the live scoreboard. Performance on these models has no effect in the final ranking.final
[model_150
...model_199
]: these models are used for deciding the final winners. Attack performance on these models will be only be revealed at the end of the competition.
Challenge Data
The challenge data provided to participants is arranged as follows:
train/
model_0/
seed_challenge
: Given this seed, you'll be able to retrieve the challenge points.seed_training
: Given this seed, you'll be able to retrieve the training points (excluding 50% of the challenge points).seed_membership
: Given this seed, you'll be able to retrieve the true membership of the challenge points.model.pt
: The trained model. (Equivalently,pytorch_model.bin
andconfig.json
for text classification models.)solution.csv
: A list of{0,1}
values, indicating the true membership of the challenge points.
- ...
model_99
- ...
dev/
: Used for live scoring.model_100
seed_challenge
model.pt
(orpytorch_model.bin
andconfig.json
)
- ...
model_149
- ...
final/
: Used for final scoring, which will be used to determine the winner.model_150
:seed_challenge
model.pt
(orpytorch_model.bin
andconfig.json
)
- ...
model_199
:- ...
train
data is provided for your convenience: it contains full information about the membership of the challenge points.
You can use it for developing your attack (e.g. as shadow models).
You can load the public datasets and individual models and their associated challenge data using the functions provided by the mico-competition
package in the accompanying repository (i.e., load_cifar10
, load_model
, ChallengeDataset.from_path
, etc.)
Please refer to the starting kit for more information.
Predictions
You must submit predictions for dev
and final
data.
These will be used for live scoring and final scoring respectively.
Predictions should be provided in a single .zip
file containing the following structure:
dev/
: Used for live scoring.model_100
predictions.csv
: Provided by the participant. A list of values between 0 and 1, indicating membership confidence for each challenge point. Each value must be a floating point number in the range[0.0, 1.0]
, where1.0
indicates certainty that the challenge point is a member, and0.0
indicates certainty that it is a non-member.
model_101
predictions.csv
- ...
final/
: Used for final scoring, which will be used to determine the winners.model_150
predictions.csv
: Provided by the participant. A list of confidence values between 0 and 1, indicating membership confidence for each challenge point. Each value must be a floating point number in the range[0.0, 1.0]
, where1.0
indicates certainty that the challenge point is a member, and0.0
indicates certainty that it is a non-member.
- ...
The starting kit notebooks in the accompanying repository provide example code for preparing a submission.
IMPORTANT: predictions for dev
and final
models must be provided for every submission you make.
General Information
π₯π₯Winners Announced!
Welcome to the Microsoft Membership Inference Competition (MICO)!
In this competition, you will evaluate the effectiveness of differentially private model training as a mitigation against white-box membership inference attacks.
- What is Membership Inference?
- What is MICO?
- Task Details
- Submissions and Scoring
- Winner Selection
- Important Dates
- Terms and Conditions
- CodaLab Competitions
- Getting Started
- Contact
- Contributing
- Trademarks
What is Membership Inference?
Membership inference is a widely-studied class of threats against Machine Learning (ML) models. The goal of a membership inference attack is to infer whether a given record was used to train a specific ML model. An attacker might have full access to the model and its weights (known as "white-box" access), or might only be able to query the model on inputs of their choice ("black-box" access). In either case, a successful membership inference attack could have negative consequences, especially if the model was trained on sensitive data.
Membership inference attacks vary in complexity. In a simple case, the model might have overfitted to its training data, so that it outputs higher confidence predictions when queried on training records than when queried on records that the model has not seen during training. Recognizing this, an attacker could simply query the model on records of their interest, establish a threshold on the model's confidence, and infer that records with higher confidence are likely members of the training data. In a white-box setting, as is the case for this competition, the attacker can use more sophisticated strategies that exploit access to the internals of the model.
What is MICO?
In MICO, your goal is to perform white-box membership inference against a series of trained ML models that we provide. Specifically, given a model and a set of challenge points, the aim is to decide which of these challenge points were used to train the model.
You can compete on any of four separate membership inference tasks against classification models for image, text, and tabular data, as well as on a special Differential Privacy Distinguisher task spanning all 3 modalities. Each task will be scored separately. You do not need to participate in all of them, and can choose to participate in as many as you like. Throughout the competition, submissions will be scored on a subset of the evaluation data and ranked on a live scoreboard. When submission closes, the final scores will be computed on a separate subset of the evaluation data.
The winner of each task will be eligible for an award of $2,000 USD from Microsoft and the runner-up of each task for an award of $1,000 USD from Microsoft (in the event of tied entries, these awards may be adjusted). This competition is co-located with the IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) 2023, and the winners will be invited to present their strategies at the conference.
Task Details
For each of the four tasks, we provide a set of models trained on different splits of a public dataset.
For each of these models, we provide m
challenge points; exactly half of which are members (i.e., used to train the model) and half are non-members (i.e., they come from the same dataset, but were not used to train the model).
Your goal is to determine which challenge points are members and which are non-members.
Each of the first three tasks consists of three different scenarios with increasing difficulty, determined by the differential privacy guarantee of the algorithm used to train target models: $\varepsilon = \infty$, high $\varepsilon$, and low $\varepsilon$. All scenarios share the same model architecture and are trained for the same number of epochs. The $\varepsilon = \infty$ scenario uses Stochastic Gradient Descent (SGD) without any differential privacy guarantee, while the high $\varepsilon$ and low $\varepsilon$ scenarios use Differentially-Private SGD with a high and low privacy budget $\varepsilon$, respectively. The lower the privacy budget $\varepsilon$, the more private the model.
In the fourth task, the target models span all three modalities (image, text, and tabular data) and are trained with a low privacy budget.
The model architectures and hyperparameters are the same as for first three tasks.
However, we reveal the training data of models except for the m/2
member challenge points.
Task | Scenario | Dataset | Model Architecture | $\varepsilon$ | Other training points given |
---|---|---|---|---|---|
Image | I1 | CIFAR-10 | 4-layer CNN | $\infty$ | No |
I2 | CIFAR-10 | 4-layer CNN | High | No | |
I3 | CIFAR-10 | 4-layer CNN | Low | No | |
Text | X1 | SST-2 | Roberta-Base | $\infty$ | No |
X2 | SST-2 | Roberta-Base | High | No | |
X3 | SST-2 | Roberta-Base | Low | No | |
Tabular Data | T1 | Purchase-100 | 3-layer fully connected NN | $\infty$ | No |
T2 | Purchase-100 | 3-layer fully connected NN | High | No | |
T3 | Purchase-100 | 3-layer fully connected NN | Low | No | |
DP Distinguisher | D1 | CIFAR-10 | 4-layer CNN | Low | Yes |
D2 | SST-2 | Roberta-Base | Low | Yes | |
D3 | Purchase-100 | 3-layer fully connected NN | Low | Yes |
Submissions and Scoring
Submissions will be ranked based on their performance in white-box membership inference against the provided models.
There are three sets of challenges: train
, dev
, and final
.
For models in train
, we reveal the full training dataset, and consequently the ground truth membership data for challenge points.
These models can be used by participants to develop their attacks.
For models in the dev
and final
sets, no ground truth is revealed and participants must submit their membership predictions for challenge points.
During the competition, there will be a live scoreboard based on the dev
challenges.
The final ranking will be decided on the final
set; scoring for this dataset will be withheld until the competition ends.
For each challenge point, the submission must provide a value, indicating the confidence level with which the challenge point is a member.
Each value must be a floating point number in the range [0.0, 1.0]
, where 1.0
indicates certainty that the challenge point is a member, and 0.0
indicates certainty that it is a non-member.
Submissions will be evaluated according to their True Positive Rate at 10% False Positive Rate (i.e. TPR @ 0.1 FPR
).
In this context, positive challenge points are members and negative challenge points are non-members.
For each submission, the scoring program concatenates the confidence values for all models (dev
and final
treated separately) and compares these to the reference ground truth.
The scoring program determines the minimum confidence threshold for membership such that at most 10% of the non-member challenge points are incorrectly classified as members.
The score is the True Positive Rate achieved by this threshold (i.e., the proportion of correctly classified member challenge points).
The live scoreboard shows additional scores (i.e., TPR at other FPRs, membership inference advantage, accuracy, AUC-ROC score), but these are only informational.
You are allowed to make multiple submissions, but only your latest submission will be considered. In order for a submission to be valid, you must submit confidence values for all challenge points in all three scenarios of the task.
Hints and tips:
- We do realize that the score of a submission leaks some information about the ground truth.
However, using this information to optimize a submission based only on the live scoreboard (i.e., on
dev
) is a bad strategy, as this score has no relevance on the final ranking. - Pay a special attention to the evaluation metric (
TPR @ 0.1 FPR
). Your average accuracy at predicting membership in general may be misleading. Your attack should aim to maximize the number of predicted members whilst remaining below the specified FPR.
Winner Selection
Winners will be selected independently for each task (i.e. if you choose not to participate in certain tasks, this will not affect your rank for the tasks in which you do participate).
For each task, the winner will be the one achieving the highest average score (TPR @ 0.1 FPR
) across the three scenarios.
Important Dates
- Submission opens: November 8, 2022
- Submission closes:
January 12, 2023, 23:59 (Anywhere on Earth)January 26, 2023, 23:59 (Anywhere on Earth) - Conference: February 8-10, 2023
Terms and Conditions
This challenge is subject to the Microsoft Bounty Terms and Conditions.
Microsoft employees and students/employees of Imperial College London may submit solutions, but are not eligible to receive awards.
Submissions will be evaluated by a panel of judges according to the aims of the competition.
Winners may be asked to provide their code and/or a description of their strategy to the judges for verification purposes.
CodaLab Competitions
Getting Started
First, register on CodaLab for the tasks in which you would like to participate. Once registered, you will be given URLs from which to download the challenge data.
This repository contains starting kit Jupyter notebooks which will guide you through making your first submission. To use it, clone this repository and follow the steps below:
pip install -r requirements.txt
. You may want to do this in a virtualenv.pip install -e .
cd starting-kit/
pip install -r requirements-starting-kit.txt
- The corresponding starting kit notebook illustrates how to load the challenge data, run a basic membership inference attack, and prepare an archive to submit to CodaLab.
Contact
For any additional queries or suggestions, please contact mico-competition@microsoft.com.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.